-
1. Re: if and choose unusable in rich:dataTable
mcmurdosound Mar 20, 2012 3:03 PM (in response to giant2)1 of 1 people found this helpfulJust use the rendered attribute of your h:outputText components!
<h:outputText value="blah" rendered="#{myTestValue eq 'hello'}"/>
or ui:fragment rendered=...
-
2. Re: if and choose unusable in rich:dataTable
giant2 Mar 21, 2012 4:21 AM (in response to mcmurdosound)Thanks Christian, but your solution is applicable only for "simple" layouts. If I must test many things before create the outoutText or inputText or comboBox or... it's very hard to apply. (I post a simple example of the problem for simplify the comprehension)
But my doubt is that I use THE SAME code in another piece of my xhtml project and goes ok, why in this situation (with <rich:... and not with <s:div...) it doesn't work?
Be or not to be, that's the question!
:-)
-
3. Re: if and choose unusable in rich:dataTable
giant2 Mar 22, 2012 7:48 AM (in response to giant2)find the problem.
richtable execute and create a table structure, the table is populated with data only in another time. In the moment table create the structure c:if/choose/when are executed, but in my case they doesn't meet any data because is present only the table structure.
So I cannot test the data in the cell for making a particular choice.
Intead of using the richtable now I use a simple table and all goes even if there are some problem on the foreach I use to ciclyng over the data visualized.
So if you mixes richfaces and jstl pay attention about this thing. Data where jstl can use are only "simple" and not linked to richfaces manipulated.