This content has been marked as final.
Show 4 replies
-
1. Re: init process for HtmlSelectOneMenu
gonorrhea Jun 2, 2009 1:26 AM (in response to gonorrhea)this worked:
<action execute="#{manageEquipment.init}" if="#{not manageEquipment.isInitComplete()}"/>
not sure if this is the best solution, but now the method is only called once (the boolean is set at the end of the init() method).
-
2. Re: init process for HtmlSelectOneMenu
kapitanpetko Jun 2, 2009 3:44 AM (in response to gonorrhea)You could use the on-postback attribute:
<action execute="#{action.loadStuff}" on-postback="false"/>
Or you could use a factory method to create the list that is backing up your HtmlSelectOneMenu.
HTH
-
3. Re: init process for HtmlSelectOneMenu
gonorrhea Jun 2, 2009 5:21 PM (in response to gonorrhea)I am using Seam 2.0.2-FP
cvc-complex-type.3.2.2: Attribute 'on-postback' is not allowed to appear in element 'action'.
-
4. Re: init process for HtmlSelectOneMenu
kapitanpetko Jun 2, 2009 6:18 PM (in response to gonorrhea)For Seam 2.0 you can use this (on-postback is just a more convenient way to write this):
<action execute="#{action.loadStuff}" if="#{empty param['javax.faces.ViewState']}"/>