This content has been marked as final.
Show 7 replies
-
1. Re: RichFaces 3.2.1: h:commandLInk not working.
djkrite Jun 10, 2008 1:16 PM (in response to djkrite)Looks like I was able to hack around this using a4j:jsFunction and a4j:commandLink.
-
2. Re: RichFaces 3.2.1: h:commandLInk not working.
sergeysmirnov Jun 10, 2008 1:26 PM (in response to djkrite)what version you have upgraded from?
-
3. Re: RichFaces 3.2.1: h:commandLInk not working.
nohacks Jun 10, 2008 2:34 PM (in response to djkrite)Looks like I was able to hack around this using a4j:jsFunction and a4j:commandLink.
I have a problem that sounds like this...how did you do the hack???
Phil -
4. Re: RichFaces 3.2.1: h:commandLInk not working.
djkrite Jun 10, 2008 3:55 PM (in response to djkrite)"SergeySmirnov" wrote:
what version you have upgraded from?
RichFaces 3.2.0
I'm also using Facelets 1.1.12"nohacks" wrote:
how did you do the hack???
Above the main h:form that contained the rich:dataTable, rich:simpleTogglePanel, and h:commandLink I put an a4j:form with a a4j:jsFuction that looks like this:<a4j:form> <a4j:jsFunction name="editService" action="#{BackingBean.editService}"> <a4j:actionparam name="param1" assignTo="#{BackingBean.serviceKey}" /> </a4j:jsFunction> </a4j:form>
Instead of the h:commandLink I use an a4j:commandLink that looks like this:<a4j:commandLink onclick="editService('#{item.serviceKey}')" value="Edit">
Hope this helps.
TK -
5. Re: RichFaces 3.2.1: h:commandLInk not working.
nohacks Jun 10, 2008 4:09 PM (in response to djkrite)Hi djkrite,
Thanks for your quick response...I will try it out and let you know if it works..
Phil -
6. Re: RichFaces 3.2.1: h:commandLInk not working.
sergeysmirnov Jun 10, 2008 5:18 PM (in response to djkrite)I do not see the evidence in the code snippet above (not enough info), but h:commandLink should not work after re-rerendering due the architectural specific of it. That is why a4j:htmlCommandLink (together with a4j:form) is added to the library.
-
7. Re: RichFaces 3.2.1: h:commandLInk not working.
djkrite Jun 11, 2008 10:03 AM (in response to djkrite)I see. I was able to get it working correctly with just a4j:commandLink w/ajaxSingle="true" inside an h:form tag.
Thank you,
TK