[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1008) Page description of unused page is accessed
by Christian Bauer (JIRA)
Page description of unused page is accessed
-------------------------------------------
Key: JBSEAM-1008
URL: http://jira.jboss.com/jira/browse/JBSEAM-1008
Project: JBoss Seam
Issue Type: Bug
Components: Core
Reporter: Christian Bauer
Priority: Minor
This was triggered by a change in the last 10 days (sorry, don't know when):
<pages login-view-id="/loginRequired.xhtml">
<page view-id="/docEdit.xhtml" login-required="true" no-conversation-view-id="/message.xhtml">
<description>Edit Document '#{documentHome.instance.name}'</description>
<page view-id="/loginRequired.xhtml" action="#{browser.redirectToLastBrowsedPageWithConversation}"/>
I'm not logged in and I access /docEdit.xhtml. I see a redirect to /loginRequired.xhtml and my browser.redirectFoo() fires this redirect.returnToCapturedView(). The navigation etc. works fine, but I get an exception in the log earlier:
Accessing /docEdit.xhtml (this is actually another redirect before this):
19:15:17,276 DEBUG [Lifecycle] >>> Begin web request
19:15:17,277 DEBUG [SeamPhaseListener] after phase: RESTORE_VIEW(1)
19:15:17,277 DEBUG [Manager] Found conversation id in request parameter: 3
19:15:17,277 DEBUG [Manager] Restoring conversation with id: 3
19:15:17,277 DEBUG [AbstractSeamPhaseListener] After restoring conversation context: ConversationContext(3)
19:15:17,277 DEBUG [AbstractSeamPhaseListener] committing transaction after phase: RESTORE_VIEW(1)
19:15:17,278 DEBUG [SeamPhaseListener] before phase: RENDER_RESPONSE(6)
19:15:17,278 DEBUG [AbstractSeamPhaseListener] beginning transaction prior to phase: RENDER_RESPONSE(6)
19:15:17,282 DEBUG [Manager] redirecting to: /wiki/loginRequired.seam?cid=3&clr=true
19:15:17,283 DEBUG [SeamPhaseListener] after phase: RENDER_RESPONSE(6)
19:15:17,286 DEBUG [ResourceBundle] loaded resource bundle: messages
19:15:17,287 DEBUG [ResourceBundle] resource bundle missing: ValidatorMessages
19:15:17,291 DEBUG [ResourceBundle] loaded resource bundle: org/hibernate/validator/resources/DefaultValidatorMessages
19:15:17,300 DEBUG [AbstractSeamPhaseListener] committing transaction after phase: RENDER_RESPONSE(6)
>>> 19:15:17,340 DEBUG [RootInterceptor] intercepted: documentHome.POST_CONSTRUCT
>>> 19:15:17,342 DEBUG [RootInterceptor] intercepted: documentHome.create
>>> 19:15:17,343 DEBUG [RootInterceptor] intercepted: wikiLinkResolver.POST_CONSTRUCT
>>> 19:15:17,343 DEBUG [RootInterceptor] intercepted: nodeDAO.POST_CONSTRUCT
>>> 19:15:17,356 DEBUG [RootInterceptor] intercepted: userDAO.POST_CONSTRUCT
19:15:17,360 WARN [Interpolator] exception interpolating string: Edit Document '#{documentHome.instance.name}'
javax.faces.el.EvaluationException: Cannot get value for expression '#{documentHome.instance.name}'
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
at org.jboss.seam.core.Expressions$1.getValue(Expressions.java:57)
at org.jboss.seam.core.Interpolator.interpolateExpressions(Interpolator.java:88)
at org.jboss.seam.core.Interpolator.interpolate(Interpolator.java:67)
at org.jboss.seam.pages.Page.renderDescription(Page.java:100)
at org.jboss.seam.core.Manager.prepareBackswitch(Manager.java:1056)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.afterRender(AbstractSeamPhaseListener.java:220)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:116)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
So the /loginRequired.xhtml call results in creation of documentHome, apparently to get the page description of /docEdit.xhtml. But since I'm not logged in, documentHome can't be constructed (the authenticatedUser injection doesn't work).
I know I shouldn't even show the 'Edit Document' button if the user isn't logged in, but I don't see why the page description is needed if I'm redirecting "over" the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 1 month
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1007) seam-gen integrated with entityConverter to implement foreign-key constraints with selectList
by Jeffrey Constantin (JIRA)
seam-gen integrated with entityConverter to implement foreign-key constraints with selectList
---------------------------------------------------------------------------------------------
Key: JBSEAM-1007
URL: http://jira.jboss.com/jira/browse/JBSEAM-1007
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Reporter: Jeffrey Constantin
Priority: Optional
Have seam-gen "optionally" generate selectlist (<h:selectOneMenu>) tags in generated application based on foreign-key constraints in the data model -OR- user-entered meta data (like data-type mapping in Eclipse IDE).
Given a data model with foreign-key constraints enabled, seam-gen could recognize the relationship and automatically build the proper tags as explained in the SeamEntityConverter page ("http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter")
COPIED FROM SeamEntityConverter PAGE:
--------------------------------------------------------------------------
If you create or edit the record of an employee, you want to set the department. This list of available departments has to be fetched from the database. You can do this by defining a query object in components.xml:
<framework:entity-query name="departments" ejbql="select d from Department d" />
Now you can use the seam component "departments" with the s:selectitems tag:
<h:selectOneMenu value="#{employee.department}">
<s:selectItems value="#{departments.resultList}" var="department" label="#{department.name}"/>
<ec:convertEntity />
</h:selectOneMenu >
---------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 1 month