U are asking, because JSF 1.2 has it ? On 9/28/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > No, > > http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_subform.html > > -Matze > > On 9/28/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > Does the subform then have a prependId attribute? > > > > regards, > > > > Martin > > > > On 9/28/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > On 9/28/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > > > @Stephen: tr:subform is a naming-container? ok. interesting. wonder why. > > > > > > that allows you to reuse IDs inside your subforms. > > > > > > > > > > > @Matze: Why would he want to update the full form? > > > I tried and it only worked that way. Isn't the real question, why > > > using two forms in one page? > > > Tobago, for instance has only one form, that is rendered with their > > > <tc:page /> component. > > > > > > I think now, that Stephen uses a subForm, this solution is IMO more > > > correct. > > > > > > -M > > > > > > > > regards, > > > > > > > > Martin > > > > > > > > On 9/28/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > > > > > On 9/28/07, Stephen Friedrich <[EMAIL PROTECTED]> wrote: > > > > > > Thanks a lot for all the answers. > > > > > > The duplicate id on form was actually a left-over from > > > > > > trial-and-error. > > > > > > I still don't understand why it did not work (without an id at the > > > > > > form). > > > > > > Sure, PPR works across forms, does it? > > > > > > > > > > I think you need to say partialTriggers="departments" on the second > > > > > form. > > > > > > > > > > -M > > > > > > > > > > > > > > > > > Anyway this version works fine: > > > > > > > > > > > > | <tr:form> > > > > > > | <tr:subform id="selectForm"> > > > > > > | <tr:selectOneChoice id="departments" label="Department" > > > > > > | > > > > > > value="#{scoreEntryHome.department}" autoSubmit="true"> > > > > > > | > > > > > > | <s:selectItems > > > > > > value="#{scoreEntryHome.allowedDepartments}" > > > > > > | var="department" > > > > > > label="#{department.name}"/> > > > > > > | </tr:selectOneChoice> > > > > > > | </tr:subform> > > > > > > | > > > > > > | <tr:subform> > > > > > > | <tr:table var="scoreEntry" > > > > > > value="#{scoreEntryHome.scoreEntries}" > > > > > > | partialTriggers=":selectForm:departments"> > > > > > > > > > > > > Can somebody please add it to the tag docs that > > > > > > tr:selectOneChoice's autoSubmit does PPR?! > > > > > > > > > > > > Also it should be possible to switch to regular submit. > > > > > > E.g. server-side error logs are more useful - an exception during a > > > > > > PPR request is logged, but without giving the nested, original > > > > > > exception. > > > > > > Also currently individual component messages are not shown as a > > > > > > result of PPR. > > > > > > > > > > > > > tr:form isn't a namingcontainer > > > > > > > > > > > > On 9/28/07, Martin Marinschek <[EMAIL PROTECTED]> wrote: > > > > > > > Hi Stephen, > > > > > > > > > > > > > > do this: > > > > > > > > > > > > > > > > > > > > > <tr:form id="departmentForm" > > > > > > > > <tr:selectOneChoice id="departments" label="Department" > > > > > > > > > > > > > > value="#{scoreEntryHome.department}" > > > > > > > autoSubmit="true"> > > > > > > > > > > > > > > <s:selectItems > > > > > > > value="#{scoreEntryHome.allowedDepartments}" > > > > > > > var="department" > > > > > > > label="#{department.name}"/> > > > > > > > </tr:selectOneChoice> > > > > > > > > > > > > > > <tr:commandButton id="SaveButton" text="Update" > > > > > > > action="#{scoreEntryHome.save}"/> > > > > > > > </tr:form> > > > > > > > > > > > > > > <tr:form> > > > > > > > <tr:table var="scoreEntry" > > > > > > > value="#{scoreEntryHome.scoreEntries}" > > > > > > > > > > > > > > partialTriggers="::departmentForm:departments"> > > > > > > > > > > > > > > <tr:column headerText="Name"> > > > > > > > <tr:selectBooleanCheckbox > > > > > > > value="#{scoreEntry.name}"/> > > > > > > > </tr:column> > > > > > > > > > > > > > > with :: you can get out of your naming-container up one level and > > > > > > > then > > > > > > > back in again with : and name. > > > > > > > > > > > > > > regards, > > > > > > > > > > > > > > Martin > > > > > > > > > > > > > > On 9/28/07, Richard Yee <[EMAIL PROTECTED]> wrote: > > > > > > > > You might try not using multiple forms and also not having the > > > > > > > > form > > > > > > > > id="departments" and the selectOneChoice also set to > > > > > > > > "departments" > > > > > > > > > > > > > > > > -Richard > > > > > > > > > > > > > > > > Stephen Friedrich wrote: > > > > > > > > > It seems that autoSubmit from a tr:selectOneChoice always > > > > > > > > > uses PPR. > > > > > > > > > I can't get other components to update, though. This is what > > > > > > > > > I tried: > > > > > > > > > > > > > > > > > > <tr:form id="departments" > > > > > > > > > > <tr:selectOneChoice id="departments" > > > > > > > > > label="Department" > > > > > > > > > > > > > > > > > > value="#{scoreEntryHome.department}" > > > > > > > > > autoSubmit="true"> > > > > > > > > > > > > > > > > > > <s:selectItems > > > > > > value="#{scoreEntryHome.allowedDepartments}" > > > > > > > > > var="department" > > > > > > label="#{department.name}"/> > > > > > > > > > </tr:selectOneChoice> > > > > > > > > > > > > > > > > > > <tr:commandButton id="SaveButton" text="Update" > > > > > > > > > action="#{scoreEntryHome.save}"/> > > > > > > > > > </tr:form> > > > > > > > > > > > > > > > > > > <tr:form> > > > > > > > > > <tr:table var="scoreEntry" > > > > > > value="#{scoreEntryHome.scoreEntries}" > > > > > > > > > partialTriggers="departments"> > > > > > > > > > > > > > > > > > > <tr:column headerText="Name"> > > > > > > > > > <tr:selectBooleanCheckbox > > > > > > > > > value="#{scoreEntry.name}"/> > > > > > > > > > </tr:column> > > > > > > > > > > > > > > > > > > On the server scoreEntryHome.setDepartment() gets correctly > > > > > > > > > called with > > > > > > the > > > > > > > > > newly selected department, but the table won't update. > > > > > > > > > > > > > > > > > > I added the "Update" button just for testing, and of course > > > > > > > > > it works > > > > > > fine. > > > > > > > > > > > > > > > > > > What am I doing wrong this time? ;-) > > > > > > > > > > > > > > > > > > Alternatively: Is there a way to disable PPR for autoSubmit? > > > > > > > > > Oh, and additionally: It should be documented in the tag > > > > > > > > > description > > > > > > that > > > > > > > > > autoSubmit does PPR. > > > > > > > > > > > > > > > > > > (Trinidad 1.0.2, MyFaces 1.1.5, Facelets from VCS, Seam 1.2.1 > > > > > > > > > on Tomcat > > > > > > 5.5.17) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > http://www.irian.at > > > > > > > > > > > > > > Your JSF powerhouse - > > > > > > > JSF Consulting, Development and > > > > > > > Courses in English and German > > > > > > > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Matthias Wessendorf > > > > > > > > > > > > further stuff: > > > > > > blog: http://matthiaswessendorf.wordpress.com/ > > > > > > mail: matzew-at-apache-dot-org > > > > > > > > > > > > > > > > > > > > > -- > > > > > Matthias Wessendorf > > > > > > > > > > further stuff: > > > > > blog: http://matthiaswessendorf.wordpress.com/ > > > > > mail: matzew-at-apache-dot-org > > > > > > > > > > > > > > > > > -- > > > > > > > > http://www.irian.at > > > > > > > > Your JSF powerhouse - > > > > JSF Consulting, Development and > > > > Courses in English and German > > > > > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > > -- > > > Matthias Wessendorf > > > > > > further stuff: > > > blog: http://matthiaswessendorf.wordpress.com/ > > > mail: matzew-at-apache-dot-org > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > -- > Matthias Wessendorf > > further stuff: > blog: http://matthiaswessendorf.wordpress.com/ > mail: matzew-at-apache-dot-org >
-- Matthias Wessendorf further stuff: blog: http://matthiaswessendorf.wordpress.com/ mail: matzew-at-apache-dot-org

