Hi,
Thanks for reply. It works now. Actually I am new to JSF, hence I face
this issue. Thanks a lot.
nperkins wrote:
>
> Someone correct me if I'm wrong but I believe your problem is due to the
> fact that tr:table is a naming container and so you have to use a fully
> qualified id, in your case "tb10:categories", for the components outside
> the naming container. This is a common problem using the
> partialTriggers mechanism and I believe that the Trinidad Development
> Guide has a pretty good discussion of it.
> http://myfaces.apache.org/trinidad/devguide/ppr.html
>
>
> Nate Perkins
> General Dynamics C4 Systems
>
> -----Original Message-----
> From: GTrivedi [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 04, 2008 5:05 AM
> To: [email protected]
> Subject: MyFaces - Trinidad - Partial Page Rendering [PPR]
>
>
> Hi everyone,
>
> Here is the problem I am facing. Below given is the code I am using for
> PPR.
>
> ------------------------------------------------------------------------
> --------------
> <tr:table id="tbl0" value="Ajax Example" var="radioGroup">
> <tr:column>
> <tr:selectOneRadio autoSubmit="true" id="categories"
> value="Select Type"
> valueChangeListener="#{shopBuildServiceBean.ajaxExample}"
> layout="horizontal">
> <f:selectItem itemLabel="Option1" itemValue="1"/>
> <f:selectItem itemLabel="Option1" itemValue="2"/>
> <f:selectItem itemLabel="Option1" itemValue="3"/>
>
> </tr:selectOneRadio><br/>
> </tr:column>
>
> <tr:column>
> <tr:outputText id="abc" partialTriggers="categories"
> value="#{shopBuildDataBean.assemblyLengthSize}"></tr:outputText>
> </tr:column>
>
> </tr:table>
>
> <tr:table partialTriggers="categories" id="tbl2" value="Ajax Example2"
> var="radioGroup2">
> <tr:column>
> <tr:commandButton text="Put One Back"
> disabled="#{shopBuildDataBean.assemblyLengthSize ge 501}"
> partialTriggers="categories"/>
> </tr:column>
> </tr:table>
>
> ------------------------------------------------------------------------
> ---
> In above given code when I submit the request by clicking on any of the
> option button above I get response and display a number in the
> <tr:outputText....../>. But I am putting partialTriggers="categories" in
> second table also. But there I am not getting response as expected. I
> mean to say if the number I get through the action method
> [shopBuildServiceBean.ajaxExample] >= 501 the button in second table
> should get disabled otherwise it should get enabled.
>
> I am wondering that why it doesn't respond in the second table. One more
> important thing is, if I put <tr:commandButton ...../> tag in first
> table itself then it works fine.
>
> My action method [shopBuildServiceBean.ajaxExample] is generating random
> number between 1 & 1000.
>
> Please reply ASAP.
>
> Thank you very much.
>
> -----
> Gautam Trivedi
> Programmer Analyst
> --
> View this message in context:
> http://www.nabble.com/MyFaces---Trinidad---Partial-Page-Rendering--PPR--
> tp19308786p19308786.html
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>
>
>
-----
Gautam Trivedi
Programmer Analyst
--
View this message in context:
http://www.nabble.com/MyFaces---Trinidad---Partial-Page-Rendering--PPR--tp19308786p19324975.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.