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.

Reply via email to