- 浏览: 76307 次
- 性别:
- 来自: 北京
最新评论
-
Durian:
乱七八糟的
Smart GWT Sample (Form) -
jelver:
怎么不能编辑回复呢,郁闷,
不过我在直接修改html没有用,只 ...
GWT and Smart GWT -
jelver:
非常感谢您的这段提示:
另外sc目录下有一个文件init ...
GWT and Smart GWT -
ysihaoy:
是的,我今天也遇到了这个问题,很麻烦。本想搞搞恶作剧,可是go ...
设置gmail邮件服务器,改变发件人
文章列表
最近发现记忆力越来越差了,有关request的相关参数总是记不住,用一次查一次,今天发现了一个总结的不错,记下来:
以 Tomcat 服务器“http://localhost:8080/vote/test.jsp
”为例说明:
request.getScheme()
—— http
request.getServerName() —— localhost
request.getServerPort() ——
8080
request.getContextPath() —— /vote
request.getProtocol() ——
HTTP/1.1
req ...
1)
<
h:form
>
<
h:panelGrid
columns
=
"2"
>
<
c:forEach
items
=
"${mapBean.testMap}"
var
=
"entry"
>
<
h:outputText
value
=
"${entry.key}"
/& ...
Form Validate; Form Field display&hide; input field filter; input field mask;Select box联动;
定制Validator;扩展DataSource Field Type;multiple forms
1. Form Validate
private Widget validateTest() {
DataSource dataSource = new DataSource();
DataSourceText ...
刚刚接触GWT,记录一下自己的问题:
1.今天把Smart GWT 和GWT-Ext弄混了,
我也注意到了下面:
GWT-Ext is no longer under active development and has been superseded by Smart GWT . Assistance will be provided to existing users of GWT-Ext looking to migrate to Smart GWT
但是下载时,下载了GWT-Ext 2.0.5 http://gwt-ext.com/download/ ,
以为它们会相互兼容呢, ...
太晕了,一直以为这两个是同样的方法呢,今天在前台添加了参数<param, 用getRequestMap()死活得不到,才想到查查这两个方法的区别:与JSP的getParameter/getAttribute相同
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();
FacesContext.getCurrentInstance().getExternalContext().getRequestMap();
The first contains all r ...
1.建立一个java project, 如client
2.右键project client-->new-->Other-->WebService-->Web Service Client
3.在service definition,输入WSDL URL,把WebService或本地wsdl文件
com.sun.faces.renderkit.RenderKitUtils.getCommandLinkOnClickScript(RenderKitUtils.java:934)
最近刚接触JSF,遇到一个问题,折磨了一两天,终于解决了,但是不知道原因,先记下来,等项目不忙了,再研究,
JSP code:
<h:outputLabel for="name" value="Name: " styleClass="required"/>
<a4j:region renderRegion ...
- 2009-09-11 11:44
- 浏览 1567
- 评论(0)
javax.servlet.ServletException: class org.richfaces.component.html.HtmlDatascroller (id="j_id_jsp_1731599958_11pc5") did not find parent form. javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
上面异常的原因是:datatable 和 dataScrollor一定要包含在form中
RichFaces中利用DataTable和dataScroller(基于r ...
- 2009-08-25 14:15
- 浏览 2747
- 评论(0)
jboss有个特点,在本机启动之后,只能在本机的网页访问 http://localhost:8080,在其他机器上访问不了jboss服务。
解决方法如下: 在目录jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer下,编辑文件server.xml, <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" 将${jboss.bind.address}改为0.0.0.0就可以了 ...
- 2009-08-18 17:40
- 浏览 2576
- 评论(0)
JSF datatable radio
正确方式:
<rich:dataTable id="clientsTable" style="width:96%;" value="#{agencyEditBean.clients}" var="client"> <rich:column style="text-align:center;width:20%;"> ...
- 2009-08-18 14:57
- 浏览 1445
- 评论(0)
安装sqlserver2008 restore数据 1433端口
最近有一个项目是优化客户原来的系统:
第一步是先建立开发环境,导入客户原来表中的数据,本来很easy的事,没想到却很很的郁闷了两天:
首先询问客户得知,客户安装的是sqlserver2008
1.找了一个sql2008,安装一切顺利,restore客户的数据,提示如下错误信息:
The database was backed up on a server running version 10.00.1600. That is incompatible with this server, which ...
最近安装了一个sqlserver2008,卸载时没卸载干净,相应的服务没有删除,所以再安装sqlserver时,总报错,最后只能手式删除了:
用sc.exe这个Windows命令 开始——运行——cmd.exe sc delete "服务名" (如果服务名中间有空格,就需要前后加引号) 如: sc delete MSSQLSERVER
- 2009-08-12 15:18
- 浏览 1706
- 评论(0)
80端口被占用
在开发过程中启动某个服务,经常会出现端口被占用的情况,可通过以下方法解决:
我最近安装josso,启动jboss时提示80端口被占用:
1.先用命令 netstat -ano 看一下各个端口占用和进程PID。
2.然后在任务管理器里,查看进程。(注意:默认情况下,进程的PID是不显示的,你在菜单的查看->选择列里可以选上PID来 显示)
3.发现是skype在使用80,关闭skype后,再启动jboss,OK。
4.jboss启动成功后,再运行skype.
- 2009-08-10 12:10
- 浏览 1042
- 评论(0)
m2eclipase安装 maven 权威指南中文版
手动把jar文件添加到maven的repository:
在window xp下,maven repository的默认目录为:C:\Documents and Settings\<username>\.m2\repository
设置maven_home and path
在cmd模式下,转到jar文件所在的目录后,执行以下命令:
mvn install:install-file -Dfile=m4uapi.jar -DgroupId=messagemedia -DartifactId=m4uapi -D ...
- 2009-08-07 18:01
- 浏览 941
- 评论(0)
最近做了一个小程序,用javamail收发邮件,邮件服务器用的是gmail,关于javamail和gmail服务器的设置,很简单就不说了。我想动态改变发件人from,可是用了各种方式,都没能成功,最后google了一下,原来如果想动态改变发件人,需要在gmail帐号中添加备用发件人,具体方法见google文档:http://mail.google.com/support/bin/answer.py?hl=zh-CN&ctx=mail&answer=22370
问题勉强解决了,但感觉这样还是不爽,不知是否还有其它解决方案。
- 2009-07-22 10:18
- 浏览 4317
- 评论(1)