-
1. Re: Please help me, urgent, waiting online
pmuir Jan 20, 2007 6:58 PM (in response to seto)Do you have the el extension correctly working elsewhere in your app? I take it product is null if you debug the call to selectProduct?
-
2. Re: Please help me, urgent, waiting online
seto Jan 20, 2007 7:20 PM (in response to seto)If the product is null and the product.name won't display correctly, right? I admit that it should be some mistake I haven't notice, but I can't find it.
-
3. Re: Please help me, urgent, waiting online
pmuir Jan 20, 2007 7:26 PM (in response to seto)That wasn't really what I was asking. I was trying to check whether you had the EL extensions that Seam uses to support passing parameters to action methods in EL correctly set up.
-
4. Re: Please help me, urgent, waiting online
seto Jan 20, 2007 7:40 PM (in response to seto)el extension?
the el-api.jar and el-ri.jar?
I set up it just as the booking example<application> <display-name>HongYang</display-name> <module> <web> <web-uri>hongyang.war</web-uri> <context-root>/hongyang</context-root> </web> </module> <module> <ejb>hongyang.jar</ejb> </module> <module> <java>jboss-seam.jar</java> </module> <module> <java>el-api.jar</java> </module> <module> <java>el-ri.jar</java> </module> </application>
-
5. Re: Please help me, urgent, waiting online
seto Jan 20, 2007 7:44 PM (in response to seto)Or tell me how I could set up the extensions correctly. I don't use the parameter elsewhere
-
6. Re: Please help me, urgent, waiting online
seto Jan 20, 2007 7:56 PM (in response to seto)If you means the configuration mentioned in the documentation, I just set up as the booking example.
<context-param> <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name> <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value> </context-param>
-
7. Re: Please help me, urgent, waiting online
shane.bryzak Jan 20, 2007 8:27 PM (in response to seto)EL parameters are simply an alternative to using @In. The parameters will be evaluated as value expressions, so they already need to exist in some scope when the action method is invoked. Using them to list objects in a collection using a <ui:repeat> tag won't produce a list of items that can each be clicked to select that item.
-
8. Re: Please help me, urgent, waiting online
seto Jan 21, 2007 12:37 AM (in response to seto)I used the dataTable making no effect either. It seems that it isn't the problem of the tag.
-
9. Re: Please help me, urgent, waiting online
christian.bauer Jan 21, 2007 2:58 AM (in response to seto)It's a problem of you not understanding the JSF lifecycle and processing phases :)
Chapter 9: http://java.sun.com/javaee/5/docs/tutorial/doc/ -
10. Re: Please help me, urgent, waiting online
seto Jan 21, 2007 10:43 AM (in response to seto)Thanks for shane.bryzak, I realize the problem now. But I don't know how to solve it. To solve the problem I have to use the pull style restful method?
-
11. Re: Please help me, urgent, waiting online
seto Jan 21, 2007 11:12 AM (in response to seto)Thanks for shane.bryzak's and christian.bauer's help, I realize the problem now. To solve the problem, I have to use the pull style programming?
-
12. Re: Please help me, urgent, waiting online
seto Jan 22, 2007 3:47 AM (in response to seto)Some one help me?
-
13. Re: Please help me, urgent, waiting online
shane.bryzak Jan 22, 2007 6:33 AM (in response to seto)I recommend you use a dataTable. There's plenty of sample code within the Seam examples, I'd take a look at the Booking example first.
-
14. Re: Please help me, urgent, waiting online
seto Jan 22, 2007 10:52 AM (in response to seto)No, I means that the datatable wouldn't help either. Because the parameter to pass is the sub-objects in the datamodel ProductCCList. It isn't a datamodel, so the parameter passing not work. Just as christian.bauer said, the parameter should be the varible in the scope, so the product list don't work. So what else can be used except pull style?