ITeye博客

tonytony3的博客

tonytony3 · 共 4 篇文章

[置顶] spring security 3 多页面登录 小秘密小运气

首先 多谢这两篇文章的作者 一:http://www.iteye.com/topic/1113842 多页面登录 二:http://blog.csdn.net/k10509806/article/details/6436987 filter测试 如果跟着上面都不成功 实现多页面登录需求的话, 下面可能的好的哦! 最近,好想搞 spring security 3 前后台 多页面登录,跟着他们来配 不起用! 我的 MyLoginUrlEntryPoint implements AuthenticationEntryPoint就是进不去commence方法 ,,,观察后 , 和我的运气 测试得到了…

2011-10-25 19:51 · spring security 3.1 · 评论(1)

listview 左滑弹出删除按钮,需要折腾一下

基本上关键点在, 1事件, android:longClickable="true" android:descendantFocusability="blocksDescendants" 这个是在item子控件返回true 而使onInterceptTouchEvent 不停有事件来, 2 layout ,的设计,onLayout方法,relativeonLayout好像比较难达到这种拖后还有显示删除按钮 3,一些回调接口,方便toggle import android.annotation.SuppressLint; import android.content.Context; impo…

2015-07-10 10:30 · android · 评论(0)

android 下拉刷新 view移动 原理 总结

上网搜了一大堆,各种实现,下拉移动的方式,总结如下 1 headView.setPadding 改变listview里的header的高度 2 layout(int l, int t, int r, int b) 3 offsetTopAndBottom 4 scrollto 移动它 这个一般需要自定义viewgroup layout PS: button.scrollTo button.scrollB 移动的是button里面的文字 5 mHeaderView.setLayoutParams(mHeaderViewParams); 改变它上面的高度 mHeaderView是listview…

2014-07-30 09:18 · 评论(2)

就是因为一个注解 就一个上午

@Transactional public class BaseDaoImpl implements BaseDao { protected Logger log = LoggerFactory.getLogger(getClass()); // HibernateTemplate protected SessionFactory sessionFactory; @Resource public void setSessionFactory(SessionFactory sessionFactory) { System.out.println("the set sesionF"); this…

2011-11-04 13:17 · spring security 3.1 hibernate getSession sessionFactory.getCurrentSession · 评论(0)