myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer" <awi...@gmail.com>
Subject Re: [Trinidad] PPR from table cells failure
Date Wed, 08 Aug 2007 20:31:08 GMT
User code should almost never call partialUpdateNotify(), just
addPartialTarget().  And I doubt the renderResponse() call
is relevant either.

The real thing is just that you have to include the id of the
table in partialTriggers:

<tr:table id="theTable">
   <tr:column>
         <tr:commandLink id="suggester" partialSubmit="true"...
   ...
   </tr:table>
<tr:selectOneListbox id="suggestion" partialTriggers="theTable:suggester">

-- Adam



On 8/8/07, sandeep gururaj <sandeep.gururaj@chordiant.com> wrote:
> I encountered this problem too. Here's how I worked around this issue.
>
> a) Create a binding for your ListBox "suggestion" in the bean (Say,
> suggestionBinding).
> b) In the action or actionListener or the like (returnListener in case
> you are using a Dialog) of the "suggester", do the following at the end.
>
> RequestContext.getCurrentInstance().addPartialTarget(suggestionBinding);
> RequestContext.getCurrentInstance().partialUpdateNotify(suggestionBindin
> g);
> FacesContext.getCurrentInstance().renderResponse();
>
> Hope this helps!
>
> ~Sandeep
>
> -----Original Message-----
> From: Renzo Tomaselli [mailto:renzo.tomaselli@tecnotp.it]
> Sent: Wednesday, August 08, 2007 1:00 PM
> To: MyFaces Discussion
> Subject: [Trinidad] PPR from table cells failure
>
> Hi, I wonder how I can trigger PPR from inside a table cell, since it
> appears not working - I guess because of some id mismatch.
> I have something like:
>
> <tr:table ...
>     <tr:column>
>           <tr:commandLink id="suggester" partialSubmit="true"...
>     ...
>     </tr:table>
> <tr:selectOneListbox id="suggestion" partialTriggers="suggester">
>
> then I get a warning from Trinidad as soon as I click on any table link:
>
> Could not find partial trigger suggester from
> CoreSelectOneListbox[UIXEditableFacesBeanImpl, id=suggestion]
>
> However, if I place the trigger component also outside the table, then
> PPR works properly and there is no warning., even while clicking on any
> link inside the table.
> I guess this issue has something to do with real trigger name, which is
> <container>:<rowIndex>:suggester, but I thought Trinidad should take
> care of matching these ids against a partialTrigger attribute. If not,
> how can I workaround it ?
>
> -- Renzo
>
>

Mime
View raw message