[JBoss Seam] - RichFaces and login-required="true" in pages.xml
by j99976
Hi,
There seems to be an issue where if you set login-required="true" against view-id="*" in pages.xml, the colours of the RichFaces components fail to render. There is no error.
Its easy to replicate, use seam-gen to generate a new project, then go to the url. It looks ok. Then modify the first in pages.xml to add login-required="true":
<page view-id="*" login-required="true">
<rule if-outcome="home">
<redirect view-id="/home.xhtml"/>
When you reload the app ( I even tried rebuilding), the RichFaces skin has disappeared. You may need to refresh to see this. When you remove the login-required attribute, the skin is back when you reload.
I found this in Seam 2.0 CR2, and its in CR3 as well. Maybe its a RichFaces issue?
Do I need to submit a JIRA ticket in Seam or Richfaces?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099359#4099359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099359
18Â years, 6Â months
[JBoss Seam] - Re: Seam + Richfaces + Pageflow problem
by sebasfiorent
"pete.muir(a)jboss.org" wrote : Post the pageflow and the relevant xhtml snippets.
For the first issue, it's simple. I think that is a new feature within pageflow.xsd. The feature would be "abort" pageflow or "stay in page" (which means to issue a null outcome, so ajax4jsf recognizes and can make ajax responses).
For the second one (the one which richfaces cannot navigate using seam pageflow) the xhtml is:
A.XHTML
| <h:panelGroup id="wizard">
| <a:include id="idInclude" viewId="B.XHTML" />
| </h:panelGroup>
|
And B.XHTML is:
| <tr:panelBox id="idPanel12" background="medium" inlineStyle="width:100%">
| <trh:rowLayout id="idPanel13" width="100%">
| <trh:cellFormat id="idPanel14" halign="center">
| <tr:panelGroupLayout id="idPanel15" layout="horizontal">
| <f:facet name="separator">
| <tr:spacer width="10" height="1" />
| </f:facet>
| <a:commandButton value="Siguiente >>" style="float:left" action="next" reRender="wizard"/>
| <a:commandButton value="Limpiar" style="float:right" />
| </tr:panelGroupLayout>
| </trh:cellFormat>
| </trh:rowLayout>
| </tr:panelBox>
|
|
And the jpdl is:
| <page name="A" view-id="/A.xhtml">
| <transition name="next" to="B">
| </transition>
| </page>
|
| <page name="B" view-id="/B.xhtml">
| <transition name="first" to="A">
| </transition>
| </page>
|
Using JPDL doesn't work,as alexsmirnov pointed to me in richfaces forum (see my previous post in this topic).
But if I use faces-config.xml, it works. This is the relevant faces-config.xml:
| <navigation-rule>
| <from-view-id>/A.xhtml</from-view-id>
| <navigation-case>
| <from-outcome>next</from-outcome>
| <to-view-id>/B.xhtml</to-view-id>
| </navigation-case>
| </navigation-rule>
| <navigation-rule>
| <from-view-id>/B.xhtml</from-view-id>
| <navigation-case>
| <from-outcome>first</from-outcome>
| <to-view-id>/A.xhtml</to-view-id>
| </navigation-case>
| </navigation-rule>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099356#4099356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099356
18Â years, 6Â months
[JBoss Seam] - Sorting Detail data in Master/Detail
by griffitm
All,
I have some seam generated pages show master/detail records. If you've used seamgen generate-entities to create entities and pages then you know what I mean. If I have a relationship between 2 tables (A) Status and (B) Deliverables -- I start from the status page viewing a list. This list can be sorted by clicking on the table headers, which re-executes the SQL query passing the order by clause based on the table header.
However, if I drill down into a single status and you see all the deliverables associated with the selected record, these records appear in a random order.
Is there an easy way to provide the related child data (Deliverables -- joined or sub-query) in a ordered fashion? The data is loaded from the collection that is part of the master entity, not in a separate SQL query.
Any help would be appreciated
Best Regards,
MG
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099349#4099349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099349
18Â years, 6Â months