-
Galleries

-
Recent Posts
Recent Comments
- qiutian on 成功的小孔成像相机作品展示
- Winder on 成功的小孔成像相机作品展示
- qiutian on Hello new world!
- Mr WordPress on Hello new world!
Archives
Categories
tag cloud
alfresco Alfresco Explorer auto scrolling Bokeh browser CRM datatable fancy design file checksum flash form submit game cover ie6 internet explorer iPad jailbreak java javascript java server face jsf md5 mistakes page pagination paging Photography pinhole camera popup window ps3 stats street fighter street fighter charaters submit usage value variable web design web design tools 游戏封面 翻页 街霸 街霸人物Meta
Media RSS
Tag Archives: form submit
JSF中与POPUP(弹出)窗口交换数据的两种方式。
很多人都知道,用:popup = window.open(url, name, features);
popup.focus();可以弹出一个新的浏览器的窗口,这是一个十分方便常用的功能。但是如何在JSF中与弹出窗口交换数据?是很多人关心的问题。这里基于Core JSF书中的例子,谈到两个方法,列举到这里,希望对有需求的人有所帮助。
第一种方法较为简单,和所有其他的基于网络编程语言一样,使用URL链接来提交你所需要的变量和变量值。比如我们的例子中,使用:
Posted in 网络开发 [Web-based Development]
Tagged form submit, java server face, javascript, jsf, popup window, submit, value, variable
Leave a comment
让Alfresco Explorer中表单提交后不回到页面顶端
无论新的surf怎么好,起码现在还仍然不太成熟,老的Alfresco Explorer虽然技术较为落后,但是功能和各方面仍然比新的UI成熟很多。
如果你经常使用alfresco explorer来进行文档和记录管理和编辑,你会发现当你在同一个页面中有多个form的时候,每次form提交该页面都会自动回到首页,如果你的页面很长,这个问题很是烦人。(其实在使用ajax list or space or whatever picker等UI的时候都会有同样的问题,增加和删除项后form提交会导致页面回到顶端)
在alfresco.war的web.xml中有一个项可以修复该问题。编辑web.xml,找到:
Source code <context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
<description>
If true, a javascript function will be rendered that is able to restore the
former vertical scroll on every request. Convenient feature if you [...]
Posted in 网络开发 [Web-based Development]
Tagged alfresco, Alfresco Explorer, auto scrolling, form submit
Leave a comment