webtier@glassfish.java.net

Re: [webtier] navigation rule without form ?

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Tue, 22 Dec 2009 13:03:24 -0500

You'd need to use <ui:include>, but I don't think you can actually
change the entire view within a form --

On Mon, Dec 21, 2009 at 2:29 AM, Felipe Gaucho <fgaucho_at_gmail.com> wrote:
> 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+ Java
>>>>> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>