webtier@glassfish.java.net

Re: [webtier] navigation rule without form ?

From: Felipe Gaucho <fgaucho_at_gmail.com>
Date: Mon, 21 Dec 2009 08:29:06 +0100

But how to change tge view inside foo?

On 21.12.2009, at 08:08, "Lincoln Baxter, III"
<lincolnbaxter_at_gmail.com> wrote:

> For that, you need to use an <h:form> tag, like so:
>
> <h:form id="demo">
> <h:panelGroup layout="block" id="foo">
> </h:panelGroup>
>
> <h:commandLink action="#{someBean.actionMethod}">
> <f:ajax execute="@this" render="foo" />
> </h:commandLink>
> </h:form>
>
> This will trigger the action to be called, and will re-render the div
> with id="foo".
>
> 2009/12/21 Felipe Gaúcho <fgaucho_at_gmail.com>:
>> * and my solution so far is reloading all the page.. it would be nice
>> to have an example with ajax for reloading only 1 area on the page
>> (the contents of a <DIV> element only)....
>>
>>
>> 2009/12/21 Felipe Gaúcho <fgaucho_at_gmail.com>:
>>> yes:
>>>
>>> <h:link
>>> target="#grid-bag-layout" outcome="/faces/
>>> press.xhtml"
>>> value="#{msg['press']}" />
>>>
>>> * but for some reason it stops to wok after a while in Firefox in
>>> Ubuntu....... (not sure if it is my implementation problem or
>>> another
>>> bug in firefox for linux)
>>>
>>> On Mon, Dec 21, 2009 at 1:25 AM, Lincoln Baxter, III
>>> <lincolnbaxter_at_gmail.com> wrote:
>>>> Using h link?
>>>>
>>>> Lincoln Baxter III
>>>> http://ocpsoft.com
>>>> http://scrumshark.com
>>>> Keep it simple.
>>>>
>>>> On Dec 20, 2009 12:18 PM, "Felipe Gaúcho" <fgaucho_at_gmail.com>
>>>> wrote:
>>>>
>>>> thanks....... I fixed with pure HTML .. it works :)
>>>>
>>>> On Sun, Dec 20, 2009 at 4:37 PM, Lincoln Baxter, III
>>>>
>>>> <lincolnbaxter_at_gmail.com> wrote: > All Ajax events require a
>>>> form, because
>>>> they issue a post to the ...
>>>>
>>>> --
>>>>
>>>> ------------------------------------------ Felipe Gaúcho 10+ J
>>>> ava Programmer
>>>> CEJUG Senior A...
>>>
>>>
>>>
>>> --
>>> ------------------------------------------
>>> Felipe Gaúcho
>>> 10+ Java Programmer
>>> CEJUG Senior Advisor
>>>
>>
>>
>>
>> --
>> ------------------------------------------
>> Felipe Gaúcho
>> 10+ Java Programmer
>> CEJUG Senior Advisor
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>