1) If your command link is hard-coded, and you don't want to update or
validate the model, use immediate
2) Use output link as you really aren't executing an action so therefore
don't need to use a command link
3) use <t:saveState value="#{yourBean.datalist}" />

-Andrew

On 12/10/06, Po Po <[EMAIL PROTECTED]> wrote:

Hello,

I've a case using datatable and commandlink.
my jsp contain a datatable and commandlink. datatable
and commandlink doesn't have relation.

<t:datatable>
...
</t:datatable>

<t:commandlink action="test" value="test"/>

datatable will bound to property datalist in the
backbean. the datalist is getting the content from
query.

...
private List datalist;
public List getDatalist() {
  List list = ... //do query to database
  return list;
}
...

And the commandlink has static link "test" declare in
faces-config.xml

all of this is working properly.

But my concern is when i click the commandlink, JSF
also call method getDatalist(). how to prevent this?
Because this is take a resource.

Thanks,
Popo










____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it
now.

Reply via email to