Chris, I haven't used the trinidad subForm, but I'm guessing the Tomahawk subForm is based on it. In t:subForm, you can have buttons outside of your subForm submit the subForm, and you can specify multiple sets of subForms for the button to submit.
On 4/5/07, Chris Gibbons <[EMAIL PROTECTED]> wrote:
Yes I could on this page, the problem that I have though is on a different more complex page that I have, I have two of these panelRadio components and to get it to work without triggering the validations, I have to enclose both groups in subforms, the problem arises that my submit button for the page lies outside these areas, and the fields inside the subform groups don't update their information to the backing bean. Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Wessendorf Sent: Thursday, April 05, 2007 9:04 AM To: [email protected] Subject: Re: Question on PPR and panelRadio component Ah, now I think I see. the panelRadio is doing a submit. Have you tried using subform ? -M On 4/5/07, Chris Gibbons <[EMAIL PROTECTED]> wrote: > Here one my pages that is causing the issue. The "memberMain.xhtml" > template basically just has a tr:document in it and a tr:form and a > tr:messages component. Like I said other pages that have PPR enabled > components work fine and don't trigger validations on non PPR > components, but panelRadio and all similar components do > Chris > > > > > <ui:composition template="memberMain.xhtml" > xmlns="http://www.w3.org/1999/xhtml" > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:f="http://java.sun.com/jsf/core" > xmlns:c="http://java.sun.com/jstl/core" > xmlns:h="http://java.sun.com/jsf/html" > xmlns:tr="http://myfaces.apache.org/trinidad"> > > > <f:loadBundle id="bundle" var="text" > basename="#{baseBean.bundleName}" /> > > <ui:define name="title"> > #{text.submitResumePage_title} > </ui:define> > > <ui:define name="memberBody"> > > #{submitResumeBean.jobListing.tagLine} > <br/> > <br/> > <tr:inputText id="title" > value="#{submitResumeBean.resumeTitle}" > label="#{text.resume_title}" required="true" > requiredMessageDetail="#{text.resume_title_required}"/> > <br /> > <tr:inputText id="emailAddress" > value="#{submitResumeBean.emailAddress}" > label="#{text.email_address}" required="true" > requiredMessageDetail="#{text.resume_email_required}" > binding="#{submitResumeBean.emailField}" /> > <br /> > <tr:inputText id="confirmEmail" > value="#{submitResumeBean.confirmEmailAddress}" > label="#{text.confirm_email_address}" > validator="#{submitResumeBean.emailValidator}"> > <tr:validateRegExp > pattern="[EMAIL PROTECTED],}$" > > messageDetailNoMatch="#{text.invalid_email}" /> > </tr:inputText> > <br /> > > <tr:panelRadio id="test" position="top" > label="#{text.sumbit_method}" > > binding="#{submitResumeBean.radioComponent}"> > <tr:showDetailItem id="component1" > text="#{text.uploaded_resume}"> > > <tr:inputFile id="input1" > label="#{text.resume_file}" > > value="#{submitResumeBean.file}" > > validator="#{submitResumeBean.fileExtensionValidator}" /> > <br /> > <tr:outputText > value="#{text.resume_upload_warning}" /> > </tr:showDetailItem> > <tr:showDetailItem id="component2" > text="#{text.pasted_resume}"> > > <tr:inputText id="input2" > value="#{submitResumeBean.pastedResume}" > > label="#{text.paste_resume}" rows="40" columns="80" /> > > > </tr:showDetailItem> > > </tr:panelRadio> > <br /> > <button id="button" jsfc="tr:commandButton" > text="#{text.submit_resume}" > action="#{submitResumeBean.submit}" /> > </ui:define> > </ui:composition> > > Thanks for looking at this Matthias > > Chris > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Matthias Wessendorf > Sent: Thursday, April 05, 2007 8:44 AM > To: [email protected] > Subject: Re: Question on PPR and panelRadio component > > I think I can't follow you.. > can you mail a simple example ? > > .Matthias > > On 4/5/07, Chris Gibbons <[EMAIL PROTECTED]> wrote: > > Yes I do and it is triggering the messages. These type of components > > seem to be triggering a full page submit for some reason, I have a > > inputText on the same page that is filled with default data, and if I > > change it, then click the panelRadio button, the validation messages > get > > fired, if I fill in the data so the validation messages get fired, the > > textbox with the default data that I changed, gets changed back to the > > default. And it doesn't have any partialTriggers set on that specific > > component. > > > > Chris > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of > > Matthias Wessendorf > > Sent: Thursday, April 05, 2007 2:53 AM > > To: [email protected] > > Subject: Re: Question on PPR and panelRadio component > > > > sounds like the validation for required=true is triggered. > > do you have <tr:messages/> on the page, to "see" these validation > > faces messages? > > > > a way around might be immediate or subform > > > > -M > > > > On 4/3/07, Chris Gibbons <[EMAIL PROTECTED]> wrote: > > > I have a page with a couple of inputText components with the > attribute > > > required="true" set on all of them, then I have a panelRadio > > component. > > > If I leave the required inputText values blank, the panelRadio > doesn't > > > work, it submits , but doesn't update the contents. However if I > > remove > > > the required="true" attribute, everything works fine. Is this a bug > > or > > > intended functionality? > > > > > > > > > > > > Chris > > > > > > > > > > > > -- > > Matthias Wessendorf > > http://tinyurl.com/fmywh > > > > further stuff: > > blog: http://jroller.com/page/mwessendorf > > mail: mwessendorf-at-gmail-dot-com > > > > > -- > Matthias Wessendorf > http://tinyurl.com/fmywh > > further stuff: > blog: http://jroller.com/page/mwessendorf > mail: mwessendorf-at-gmail-dot-com > -- Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com
