[JBoss Portal] - PortletLogin
by Haydee
I have read the article ?PortletLogin? and have tried to prove it but my problem is that I have a JSP page. How could I do it???
Thanks
.
| .
| .
| <table border=0 cellspacing=4 cellpadding=2>
| <tr>
| <td colspan=2>
| <img src='<%=request.getContextPath()%>/images/logo/AlfrescoLogo200.png' width=200 height=58 alt="Alfresco" title="Alfresco">
| </td>
| </tr>
|
| <tr>
| <td colspan=2>
| <span class='mainSubTitle'><h:outputText value="#{msg.login_details}" />:</span>
| </td>
| </tr>
|
| <tr>
| <td>
| <h:outputText value="#{msg.username}"/>:
| </td>
| <td>
| <%-- input text field, with an example of a nested validator tag --%>
| <h:inputText id="user-name" value="#{LoginBean.username}" validator="#{LoginBean.validateUsername}" style="width:150px" />
|
| </td>
| </tr>
|
| <tr>
| <td>
| <h:outputText value="#{msg.password}"/>:
| </td>
| <td>
| <%-- password text field, with an example of a validation bean method --%>
| <%-- the validation method adds a faces message to be displayed by a message tag --%>
| <h:inputSecret id="user-password" value="#{LoginBean.password}" validator="#{LoginBean.validatePassword}" style="width:150px" />
| </td>
| </tr>
|
| <tr>
| <td>
| <h:outputText value="#{msg.language}"/>:
| </td>
| <td>
| <%-- language selection drop-down --%>
| <h:selectOneMenu id="language" value="#{LoginBean.language}" style="width:150px" onchange="document.forms['loginForm'].submit(); return true;">
| <f:selectItems value="#{LoginBean.languages}" />
| </h:selectOneMenu>
| </td>
| </tr>
|
| <tr>
| <td colspan=2 align=right>
| <h:commandButton id="submit" action="#{LoginBean.login}" value="#{msg.login}" />
| </td>
| </tr>
|
| <tr>
| <td colspan=2>
| <%-- messages tag to show messages not handled by other specific message tags --%>
| <h:messages style="padding-top:8px; color:red; font-size:10px" layout="table" />
| </td>
| </tr>
| </table>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956955#3956955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956955
19 years, 9 months
[JBoss Seam] - Re: JBoss Seam is just a toy in front of the user using Spri
by christian.bauer@jboss.com
First, I don't think that its about pure functionality, or that one software has more features than another stack. This is a very restricted way to compare things.
When it comes to web application development I'd look for simplicity, and how this is defined. To me, simplicity means that:
- easy things are easy to do
- difficult things are still easy to do
- the 90% common case can be implemented without effort
- the 10% more difficult problems can be solved in an elegant fashion
Seam delivers most of this today even though it is quite young. I think it has the right balance of features for the 90/10 scenario. Naturally, some features and options could mature a little, but that will happen.
When it comes to integration of Java EE 5.0, Seam delivers deep integration at the level of the programming models, which makes it unique AFAIK. (Hence the Web Beans JSR to bring this back into the standards.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956953#3956953
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956953
19 years, 9 months
[JBoss jBPM] - Re: JBPM without starter kit
by Viegas
I have instaled a new Jboss 4.0.4, then I have runed the ant from the eclipse to deploy JBPM into the server (the build was sucessful), after I have made the changes described in chapter 8 of the manual, I get the following errors in the server:
anonymous wrote : 11:21:08,836 DEBUG [CommandExecutorThread] command 'null' threw exception. rolli
|
| ng back transaction
|
| java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager
|
| .()V from class org.hibernate.cache.EhCacheProvider
|
| at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
|
| at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:
|
| 180)
|
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
|
| a:1213)
|
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory
|
| (DbPersistenceServiceFactory.java:90)
|
| at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPers
|
| istenceService.java:74)
|
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistence
|
| Service.java:79)
|
| at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPe
|
| rsistenceService.java:234)
|
| at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:417)
|
| at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
|
| at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceF
|
| actory.java:32)
|
| at org.jbpm.svc.Services.getService(Services.java:136)
|
| at org.jbpm.svc.Services.getMessageService(Services.java:172)
|
| at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExec
|
| utorThread.java:111)
|
| at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.
|
| java:79)
|
and when I try to acess the localhost:8080/jbpm I get the error
anonymous wrote :
| type Exception report
|
| message
|
| description The server encountered an internal error () that prevented it from fulfilling this request.
|
| exception
|
| org.apache.jasper.JasperException: Exception in JSP: /index.jsp:4
|
|
|
| 1: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
|
| 2: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
|
| 3:
|
| 4: <jsp:forward page="faces/login.jsp" />
|
|
|
|
|
| Stacktrace:
|
| org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
|
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
|
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
|
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
|
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
|
| org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
|
| org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
|
| org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
|
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
| root cause
|
| javax.servlet.ServletException: Cannot get value for expression '#{userBean.userSelectItems}'
|
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
|
| org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
|
| org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
|
| org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
|
| org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
|
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
|
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
|
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
|
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
|
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
|
| org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55)
|
| org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
|
| org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
|
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
|
need help please
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956950#3956950
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956950
19 years, 9 months