Hello,

the prefered method is with the renderPartialy attribute.

Regards

Bernd

Helmut Swaczinna wrote:
Hi Yazid,

you can not reload the selectOnechoice directly but the enclosing panel:

Tobago.reloadComponent(':page:sheetRuleConfigPopup:type2Pan','@autoId'')

Should also work with renderPartialy.

Regards
Helmut


----- Original Message ----- From: "yazid" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 21, 2007 12:38 PM
Subject: [Tobago] Compoment Refresh inside a popup



Hi All;
I've two selectOnechoice inside a Popup; the selected value of the first
refresh the second list.
But one I select a value in the fist list; all my page is being refreshed. I
want to refresh only the seconde list, not the whole page.

Please help;




Here's the code :
***************
<tx:selectOneChoice label="Type" readonly="false"
                            value="#{bean.type}" id="type"  tip="">
<f:selectItems value="#{bean.typeItems}"/>
<f:facet name="change"  >
<tc:command action="#{bean.typeChanged}" immediate="false"

onclick="Tobago.reloadComponent(:page:sheetRuleConfigPopup:type2Pan:subTy1,'@autoId'')"/>
</f:facet>
</tx:selectOneChoice>

<tc:panel id="type2Pan" >
   <tx:selectOneChoice label="SubType" readonly="false"
value="#{bean.subType}" id="subTy1"  tip="">
<f:selectItems value="#{bean.subTypeItems}"/>
</tx:selectOneChoice>
</tx:selectOneChoice>
</tc:panel>

********************
I've tried also with renderPratiavly param in the command tag;
--
View this message in context: http://www.nabble.com/-Tobago--Compoment-Refresh-inside-a-popup-tf3789411.html#a10716422
Sent from the MyFaces - Users mailing list archive at Nabble.com.





Reply via email to