users@javaserverfaces.java.net

commandLink skips action when rendered=false

From: Roger Keays <roger.keays_at_ninthavenue.com.au>
Date: Wed, 10 Oct 2007 16:39:49 +1000

Hi,

We have a bit of a chicken and egg problem here:

   <h:commandLink value="next" rendered="${not empty results}">
     <f:actionListener type="example.GetNextResults"/>
   </h:commandLink>

Since we're using the request scope for results this value is empty when
the commandLink is decoded and the event and actionListener aren't queued.

Any suggestions?

Cheers,

Roger
-- 
------------------------------------
Ninth Avenue Software
p: +61 7 3137 1351 (UTC +10)
f: +61 7 3102 9141
w: http://www.ninthavenue.com.au
e: info_at_ninthavenue.com.au
------------------------------------