I use shale and I was wondering if there is there an easy way to know in a 
backing bean on the postback that the user actually pressed a commandLink that 
navigates to another page than the one the backing bean is for. I want to avoid 
unecessary database calls.

Let me give you an example. Let's say I have a table with rows (populated from 
the database) and I have on each row a commandLink to delete that row. On the 
same page I have another commandLink to navigate to another page. If I delete 
the row the table has to be populated as early as possible for the deleteRow 
event to be fired. However, if I navigate to another page I don't want to query 
that table from the database which would happen even if I set immediate to true 
for the commandLink that navigates the other page. Of course I have the option 
of using a hidden link to delete the row but ...

                
---------------------------------
Have a question? Yahoo! Canada Answers. Go to Yahoo! Canada Answers  

Reply via email to