incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luka Surija <luka.sur...@iytim.hr>
Subject Re: how do I refresh a table component after selecting and deletingone or more rows ?
Date Wed, 25 Apr 2007 07:55:58 GMT
If you want to use PPR you can add on actionListener method following 
lines to resolve the problem:

public void myAction(ActionEvent event){

    // action code

    RequestContext requestContext = RequestContext.getCurrentInstance();
    
requestContext.addPartialTarget(event.getComponent().findComponent("trTableId"));
}

and this action will refresh only tr:table with id="trTableId".

Edmond B. Mulemangabo wrote:
> Problem solved; thank you.
>
> Simon Lessard wrote:
>
>   
>> Add "table:discard_selected" as partialTarget, tr:table is a naming
>> container, and I don't think we have a children trigger detection algorithm
>> implemented yet.
>>     
>
> Thank you for the information.
> I didn't have to use partialTarget; I , instead, added an "action"
> attribute to my commandButton component to force page refresh.
>
>   
>> Also, you should not keep a a bound component in session (using binding
>> attribute). I read that you want to keep the bean session scoped, so you'll
>> have to split it in two beans:
>>     
>
> I've removed the binding attribute from the table component.
>
> regards.
>
> --
> Edmond/
>
>   


Mime
View raw message