Monthly Archives: August 2010

JSF中与POPUP(弹出)窗口交换数据的两种方式。

很多人都知道,用:popup = window.open(url, name, features);
popup.focus();可以弹出一个新的浏览器的窗口,这是一个十分方便常用的功能。但是如何在JSF中与弹出窗口交换数据?是很多人关心的问题。这里基于Core JSF书中的例子,谈到两个方法,列举到这里,希望对有需求的人有所帮助。

第一种方法较为简单,和所有其他的基于网络编程语言一样,使用URL链接来提交你所需要的变量和变量值。比如我们的例子中,使用:

  • Share/Bookmark
Posted in 网络开发 [Web-based Development] | Tagged , , , , , , , | Leave a comment

JSF中为DataTable增加翻页功能

初学JSF的大概都会遇到这么个问题,从Bean中将数据读取出来以后,用DataTable在页面上显示。是很常用的数据内容输出的方法,但是DataTable本身没有翻页的功能。如何给DataTable增加翻页呢?这里分享一下CoreJSF 3rd Edition中的pager demo来完成这个数据分页。其思路可以扩展到各种大量数据需要翻页的情况。

不想自己实现这个翻页的朋友,可以使用各种UI Framework中自带的翻页组件。比如Apache Tomahawk 中的 dataScroller 具体实现方法其实和这里要谈到的类似。

  • Share/Bookmark
Posted in 网络开发 [Web-based Development] | Tagged , , , , , , | Leave a comment

Five tips to convert more customers

By Netregistry

If you’ve opened your ecommerce store and are ready to sell online, one of the biggest
challenges is trying to convince site visitors to become customers. The internet is a browsing
medium, allowing potential customers to flit from online store to online store, looking for the
cheapest price or best bargain, until they decide to make a purchase. Therefore, it is important
to provide an online store that recognises this.

Unlike the real world, where the presence of a helpful sales assistant can sometimes [...]

  • Share/Bookmark
Posted in 商业金融 | Leave a comment

How to make your customers love you

In a bricks-and-mortar store, customers can be served with a smile and a helping hand.

However, in the online world, there are many other factors to consider, such as dealing with postage and delivery issues and handling online queries. Luke Telford talks with two people from online stores about the challenges they face and how they use their service strategies to ensure their customers are taken care of online, all the time.

Monsterthreads: tailoring your style
“Effective communication is essential in business, and [...]

  • Share/Bookmark
Posted in 商业金融 | Leave a comment

2010 CWE/SANS Top 25 Most Dangerous Software Errors

http://cwe.mitre.org/top25/#Listing

  • Share/Bookmark
Posted in Uncategorized | 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 [...]

  • Share/Bookmark
Posted in 网络开发 [Web-based Development] | Tagged , , , | Leave a comment

5 easy ways to keep your customers

David Binning

3 August 2010

The more useful information you know about your customers, the better you can understand and address their needs.

Chosen carefully and implemented intelligently, a customer relationship management (CRM) system can help you gain powerful insights into what makes your customers tick.

The key to getting customer relationship management right is in deciding the best questions to ask and then figuring out what to do with the answers. Before you begin asking your customers questions though, ask yourself some:

* Who [...]

  • Share/Bookmark
Posted in 商业金融 | Tagged | Leave a comment

买了个多功能电子相框,好像叫做iPad啊? 还不错。

18th-Aug-2010: 新的3.2.2出来了,暂时不能越狱,大家注意如果你越狱了,iTune叫你升级新版注意点“否”,在iTunes的功能设置选项中有禁止自动更新的选项,注意调整。

10th-Aug-2010: 这年头的电子相框还能“越狱”,昨晚上越狱成功,中途出现白苹果,不过现已修复。还有这个相框是基于Unix操作系统的,怪不得还挺贵 lolz

越狱后装了IPA补丁,很可能会白苹果,不过可以重新刷回来,
步骤如下: 1。进入刷机模式:按HOME+电源 10秒,然后放开电源继续按HOME,直到ITUNES连接界面出现
2。打开ITUNES会有显示一个IPAD需要恢复。
3。按提示确认恢复。
4。下载恢复固件后,自己手动关机
5。把ITUNES的帐号换成美国帐号,不然下面就进不去恢复的服务器。
6。再重复1~3,之后会出现连接服务器,连上后恢复,成功。

一般下载是30分钟(400M)恢复是15分钟。
以上是昨天恢复出厂设置的经过,请大家参考。

1,下载iPad 3.2固件;http:/ /appldnld.apple.com.edgesuite.net/content.info.apple.com/iPad/061-7987.20100403.mjiTr/iPad1,1_3.2_7B367_Restore.ipsw 文件大小:456.8mb
2,将开机就只能显示一个大白苹果的IPAD用数据线链接到安装有iTunes的电脑,这时候的显示还是卡在一个白苹果的界面。
3,同时按住圆点+开/关机键直到IPAD黑屏,松开开/关机键大约7秒左右直到Itunes检测到连接为止即进入DFU模式,
4,此时看到iTunes会显示有一个等待恢复的ipad。
5,按住键盘shift后点击iTunes恢复按钮,会出现一个对话框,此时请选择之前下载的固件文件进行恢复。
6,恢复进程约5分钟。耐心等待。。。您心爱的ipad马上就要回到您身边了。

9th-Aug-2010: 买了个多功能电子相框,好像叫做iPad啊? 还不错。

  • Share/Bookmark
Posted in 科技小东东 [Tech Gadget] | Tagged , | Leave a comment

Will the Real Browser Stats Please Stand Up?

Recently, Mashable published an article entitled “IE6 Finally Nearing Extinction”, announcing that IE6 usage in the United States and Europe has finally dropped below 5%.

That news probably warmed the cockles of the hearts of web designers everywhere. Thus, it seems designers and developers now have even more incentive to stop supporting IE6, following the pattern set by Google, notably with regards to YouTube.

The stats in the Mashable article are based on StatCounter Global [...]

  • Share/Bookmark
Posted in 网页 & 平面设计 | Tagged , , , , | Leave a comment

CSS Hack

This tutorial is written by David Hammond, a 20-year-old web technology enthusiast from California who is currently juggling this site, work, college, and other pet projects. He mantains the site Web Devout educating people on web development and standards.

Dealing with browser inconsistencies often makes up a majority of the work for a web designer. Sometimes there is no reasonable way to accomplish a desired layout in all major web browsers without the use of some special exception rules for certain [...]

  • Share/Bookmark
Posted in 网页 & 平面设计 | Leave a comment