RichFaces: TabPanel and param

I am currently dealing with rich: tabPanel in my JSF 2.0 based web application. I am facing a very strange problem related to my richface component. Basically, I print the same things on each panel (here is the show schedule table, the tab contains the day, and the contents of the tab contain a different number of hours).

Therefore, I have something like this:

<rich:tabPanel> <c:forEach items="#{show}" var="hour" ...> <rich:tab> <a4j:commandLink ...> <a4j:param value="hour.something" assignTo="#{bean.method}" /> </a4j:commandLink> </ ..... > 

When I click on the first command link when my web page is displayed, this is normal. But when I select another tab, and I click on the command link, the "bean. Method" is not a call. I need to press a second time to make a function call.

Finally, when I put tabPanel as "switchtype = server", it works very well (without clicking 2 times).

But this is not the goal, I want to use client mode. I see that on JIRA richfaces v3 this problem is solved by JIRA JBoss . But more information (except for the comment, but it does not work).

If someone can help, that would be great.

Hello,

+4
source share
1 answer

The problem is that you are using nested forms (the form inside the form). This is not recommended in JSF . Even in HTML it is not valid. Delete one form and it will work.
Read this post .

+2
source

Source: https://habr.com/ru/post/1447632/


All Articles