This content has been marked as final. 
    
Show                 3 replies
    
- 
        1. Re: pages.xml in Seam3\seam-faces?lightguard Dec 25, 2010 11:39 PM (in response to aareshchanka)I believe it's still being looked at. IIRC correctly we're trying to find a more type-safe approach (possibly enum based). In the meantime, please look at http://download.oracle.com/docs/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/pdldocs/facelets/f/event.html for the equivalent of page actions in JSF2. You should also take a look at PrettyFaces (http://ocpsoft.com/prettyfaces/) for a possible solution (and more user-friendly URLs)
- 
        2. Re: pages.xml in Seam3\seam-faces?lightguard Dec 25, 2010 11:43 PM (in response to aareshchanka)f:phaseListener may also be helpful 
- 
        3. Re: pages.xml in Seam3\seam-faces?pouria62 Jan 23, 2011 1:01 AM (in response to aareshchanka)hi experts today i encountered another problem with selectmanycheckbox ;the snippet code including
 <h:selectManyCheckbox value="#{conversationBean.oneList}">
 <s:selectItems value="#{conversationBean.anotherList}" var="something" label="#{something.name}">
 </s:selectItems>
 </h:selectManyCheckbox>
 and now i need to persist a list of selected(checked) from conversationBean.anotherList into conversationBean.oneList . i don,t know how to? please F1 me.(i mean i,m really get in trouble and really need your help)
 more details of my problem is :
 my xhtml tags :
 <rich:dataTable var="_se" value="#{positionTypeSeverityConversation.GetSeverityTypeName()}">
 <h:column>
 <h:outputText value="#{_se.name}" />
 </h:column>
 <h:column>
 <h:selectManyCheckbox id="severityList" onchange="submit()"
 value="#{positionTypeSeverityConversation.?">
 ----> here i dont know what to place with ? (?=someKinfOfList)
 <s:selectItems var="_seList"
 value="#{positionTypeSeverityConversation.GetSeverityList(_se.id)"
 label="#{_se.name}" />
 <s:convertEntity />
 </h:selectManyCheckbox>
 </h:column>
 </rich:dataTable>
 </h:panelGrid>
 </rich:panel>
 <h:commandButton id="save" value="Save"
 action="#{positionTypeSeverityConversation.save()}"
 style="FONT-FAMILY: 'Abyssinica SIL';" />
 <s:button view="/setting/hr/PositionType.xhtml" id="cancelAdd"
 value="Cancel">
 <f:param name="positionTypeId" value="#{positionTypeId}" />
 </s:button>
 with this tag ---> <s:selectItems var="_seList"
 value="#{positionTypeSeverityConversation.GetSeverityList(_se.id)"
 label="#{_se.name}" /> i fill list check box. and user can select of them.my problem is to sending id's of severityhai's which was selected to
 ---> <h:selectManyCheckbox id="severityList" onchange="submit()"
 value="#{positionTypeSeverityConversation.?">. and atleast i should persist severity's at PositionTypeSeverity table.well i have 3 tables 1-Severity 2-SeverityType 3-PositionTypeSeverity and 1-Severity with 2-SeverityType has n--->1 relation And 1-Severity with 3-PositionTypeSeveity has 1---->n relation.
 @Stateful
 @Scope(ScopeType.CONVERSATION)
 @Name("positionTypeSeverityConversation")
 public class PositionTypeSeverityConversationBean implements
 PositionTypeSeverityConversation, Serializable {
 private static final long serialVersionUID = -3604911984259043624L;
 @Logger
 private Log log;
 @In
 private EntityManager entityManager;
 private PositionTypeSeverity positionTypeSeverity;
 private SeverityType severityType;
 @SuppressWarnings("unchecked")
 public List<SeverityType> GetSeverityTypeName(){
 return (List<SeverityType>) this.entityManager.createQuery(
 " from SeverityType s ("
 . getResultList();
 {
 @SuppressWarnings("unchecked")
 public List<SeverityType> GetSeverityList(long id) {
 return (List<Severity>) this.entityManager.createQuery(
 " from Severity s where s.severityType.id = :id("
 . setParameter("id", id(
 . getResultList();
 {
 ...
 with a hql query i did select from Severity and show the list in ---><s:selectItems var="_seList"
 value="#{positionTypeSeverityConversation.GetSeverityList(_se.id)"
 label="#{_se.name}" /> and do not know how to persist severity's which selectd . i need a java method to persist them.and i know i should send id of the severity's which selected to a list but i couldnt find good example most people use static list to show items and send a name to selectmanycheckbox value;
 
     
    