Refresh template variables

Asked by Slts

Hi, is there anyway to update the content of already rendered template variables? Here's my scenario:

When the page is first requested, the controller renders the (java.util.List) "group" variable to the template. Eventually, the user triggers a ajax request (I'm using JQuery) that causes this variable to change in the controller. But then if I inspect "group" variable in the template it's not updated with it's actual state (even though I do renderArgs.put("group", newValue)).

I hope I made myself clear.

Cheers!

Question information

Language:
English Edit question
Status:
Solved
For:
play framework Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume Bort
Solved:
Last query:
Last reply:
Revision history for this message
Best Guillaume Bort (guillaume-bort) said :
#1

Hi,

Please post to the group.

On Tue, Mar 2, 2010 at 3:36 PM, Slts
<email address hidden> wrote:
> New question #102950 on play framework:
> https://answers.launchpad.net/play/+question/102950
>
> Hi, is there anyway to update the content of already rendered template variables? Here's my scenario:
>
> When the page is first requested, the controller renders the (java.util.List) "group" variable to the template. Eventually, the user triggers a ajax request (I'm using JQuery) that causes this variable to change in the controller. But then if I inspect "group" variable in the template it's not updated with it's actual state (even though I do renderArgs.put("group", newValue)).
>
> I hope I made myself clear.
>
> Cheers!
>
> --
> You received this question notification because you are a member of play
> framework developers, which is an answer contact for play framework.
>

Revision history for this message
Slts (saltas) said :
#2

Sorry to bother you, but where is that group?

Revision history for this message
Slts (saltas) said :
#3

Thanks Guillaume Bort, that solved my question.

Revision history for this message
Slts (saltas) said :
#4

Found it :)