that's what is done (beginConversationButton):

  <f:ajax render="@form" />


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-02 10:51 GMT+01:00 Thomas Andraschko <andraschko.tho...@gmail.com>:
> Hey Romain,
>
> AFAIR the default for the render attribute of f:ajax is @none, so therefore
> it's expected. You would need to set it to e.g. render="@form"
>
> 2015-01-02 10:33 GMT+01:00 Romain Manni-Bucau <rmannibu...@gmail.com>:
>
>> Hi guys,
>>
>>
>> in cdi tcks there is:
>>
>> <h:form id="ajaxForm">
>>  <h:inputHidden value="#{javax.enterprise.context.conversation.id}"
>> id="conversationId" />
>>  <h:inputText value="#{storm.strength}" id="stormStrength" />
>>  <h:commandButton action="#{storm.beginConversation}"
>>   value="Begin conversation" id="beginConversationButton">
>>   <f:ajax render="@form" />
>>  </h:commandButton>
>>  <h:commandButton value="Thunder" id="thunderButton">
>>   <f:ajax execute="stormStrength" />
>>   <!-- Rerender the whole form - conversation id is part of form
>> action attribute -->
>>   <!-- f:param name="cid"
>> value="#{javax.enterprise.context.conversation.id}" /-->
>>  </h:commandButton>
>> </h:form>
>>
>> seems when ajax rendering is triggered h:inputHidden is not refresh,
>> is it expected?
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>

Reply via email to