myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: PPR, dialog and validation problem
Date Fri, 31 Oct 2008 16:41:12 GMT
Can you post a full jspx page, or even better, a unified diff file
that can be used to reproduce the issue on the trinidad trunk_1.2.x
trididad-demo project?

On Thu, Oct 30, 2008 at 8:14 AM, Tomas Havelka <Tomas.Havelka@berit.cz> wrote:
>
> All inputs or all components? I've tried to enclose all inputs with the
> subform with default attribute as you proposed before, but with the same
> result. Maybe Facelets broke this. I'm using Facelets 1.1.14 and Trinidad
> 1.0.9.
>
>
> Andrew Robinson-5 wrote:
>>
>> Make sure that all of your input components are in at least 1 subform.
>> That is why I showed the default subform at the top of the tree.
>>
>> -Andrew
>>
>> On Thu, Oct 30, 2008 at 7:26 AM, Tomas Havelka <Tomas.Havelka@berit.cz>
>> wrote:
>>>
>>> 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-tp19801822p20246980.html
>>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/PPR%2C-dialog-and-validation-problem-tp19801822p20247849.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message