Well, I've tried this solution before you proposed it to me, but I'm still
getting validation error within all inputs in page (enclosed with common
tr:form), which are required :(


arobinson74-2 wrote:
> 
> It has been a long time since I have used tr:subform, but I think this
> should work:
> 
> <tr:subform default="true" id="mainSubform">
>   <tr:panelLabelAndMessage for="streetText" label="Street/Number"
>     showRequired="true">
>     <tr:inputText id="streetText" simple="true" label="Street"
>       required="true"
>       value="#{oxViewController.applicant.street}"
>       partialTriggers="addressLink"/>
>     <tr:inputText simple="true" label="Number" columns="5"
>       required="true" inlineStyle="margin-left:3px;"
>       value="#{oxViewController.applicant.streetNumber}"
>       partialTriggers="addressLink"/>
>     <f:facet name="end">
>       <tr:subform id="addressSubform">
>         <tr:commandLink id="addressLink" action="dialog:address"
>           partialSubmit="true" useWindow="true"
>           windowWidth="600" windowHeight="745"
>           shortDesc="Search for address"
>           returnListener="#{oxViewController.addressLink_returnListener}">
>           <tr:image source="#{skinImages['button-lens.gif']}"/>
>         </tr:commandLink>
>       </tr:subform>
>     </f:facet>
>   </tr:panelLabelAndMessage>
>   <tr:inputText label="City"
>     value="#{oxViewController.applicant.city}"
>     columns="40" required="true"
>     partialTriggers="addressLink"/>
>   <tr:inputText label="Zip"
>     value="#{oxViewController.applicant.zip}"
>     columns="10" required="true"
>     partialTriggers="addressLink"/>
> </tr:subform>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PPR%2C-dialog-and-validation-problem-tp19801822p20246981.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to