I am finding problem in rendering the panelGroupLayout while selecting a
value from the selectOneChoice. can you please let me know where is the
problem...
<td align="left">
<tr:selectOneChoice id="fileCode1Id"
value="#{workPackageBean.currentLpanTreeNode.inputpremiumDetailsManagedBean.filCode1}"
autoSubmit="true"
valueChangeListener="#{workPackageBean.currentLpanTreeNode.inputpremiumDetailsManagedBean.showCanadianRegulation}"
>
<tr:selectItem value=""
label="null"/>
<tr:selectItem value="CR"
label="CR"/>
<tr:selectItem value="FR"
label="FR"/>
</tr:selectOneChoice>
</td>
<tr:panelGroupLayout partialTriggers="fileCode1Id"
rendered="#{workPackageBean.currentLpanTreeNode.inputpremiumDetailsManagedBean.filCode1
== workPackageBean.currentLpanTreeNode.inputpremiumDetailsManagedBean.cr}">
<div class="textLabel" style="width: 100%; margin: 5px 10px; float: left;
">
<tr:outputText value="#{rbk.label_cndianrgultn}"/>
</div>
</tr:panelGroupLayout>
The manage bean follows....
public void showCanadianRegulation(ValueChangeEvent event)
{
// String message="home:upperRightPane:inputpremiumdetail";
String value = (String) event.getNewValue();
CoreInputText inptTxtvar = (CoreInputText)
event.getComponent().findComponent("grossPremiumAmount");
String textVal = (String) inptTxtvar.getValue();
if("null".equals(value) || value==null || value.equals(""))
{
this.setFilCode1(null);
System.out.println("setFilCode1==="+getFilCode1());
System.out.println("NULL VALUE..");
}
else if (value.equals("CR") && Integer.parseInt(textVal) > 0)
{
this.setFilCode1("CR");
this.setCr("CR");
this.setCheckString(checkText);
}
}
--
View this message in context:
http://camel.465427.n5.nabble.com/TRINIDAD-PPR-rendering-tp4684620p4684620.html
Sent from the Camel - Users mailing list archive at Nabble.com.