-
1. Re: Correct behavior of the rendered attribute with a datatable
gorgorotom Aug 24, 2009 2:16 PM (in response to charliepower76)Hi, i experiment the same bug, and it's really bored...
<s:div style="float:left;margin:15px;" id="div1"> <s:link view="/admin/societie.xhtml" border="0" id="bt1" rendered="#{bean.canSomething()}" > <h:graphicImage value="/test.png" style="border:0px" /> <h:outputText value="#{language.getText('accueil.societiesManagement')}" style="display:block;" /> </s:link> </s:div>
public boolean canSomething() { valueOfHell++; System.out.println("debut canSomething...."+valueOfHell); if (valueOfHell==2){ System.out.println("je retourne FAUX"); return false; } System.out.println("fin canSomething...."+valueOfHell); return true; }
i declare valueOfHell in static way....my class in on scopetype equal scope.SESSION
so why, i have 5 call of canSomething ?
if i try 'to hack' and return true value if i'm on the second calling, no wayit's really a big bug i guess, not acceptable for a framework like seam...i wanna a patch, i'm sure we're not alone in this case
-
2. Re: Correct behavior of the rendered attribute with a datatable
gorgorotom Aug 24, 2009 2:21 PM (in response to charliepower76)on my console i have...
13:55:53,177 INFO debut canSomething....1
13:55:53,177 INFO fin canSomething....1
13:55:53,178 INFO debut canSomething....2
13:55:53,178 INFO fin canSomething....2
13:55:53,178 INFO je retourne FAUX
13:55:53,180 INFO debut canSomething....3
13:55:53,180 INFO fin canSomething....3
13:55:53,181 INFO debut canSomething....4
13:55:53,181 INFO fin canSomething....4SO, i never see something like that
this pb occur a real performance problem in my application
-
3. Re: Correct behavior of the rendered attribute with a datatable
gorgorotom Aug 24, 2009 2:24 PM (in response to charliepower76)13:55:53,177 INFO debut canManageSocieties....1 13:55:53,177 INFO fin canManageSocieties....1 13:55:53,178 INFO debut canManageSocieties....2 13:55:53,178 INFO fin canManageSocieties....2 13:55:53,178 INFO je retourne FAUX 13:55:53,180 INFO debut canManageSocieties....3 13:55:53,180 INFO fin canManageSocieties....3 13:55:53,181 INFO debut canManageSocieties....4 13:55:53,181 INFO fin canManageSocieties....4