You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Börcsök József <bo...@sch.bme.hu> on 2007/02/19 12:26:51 UTC

Re: [jira] Commented: (TAPESTRY-1278) wrong clientId with multiple forms

It's not portlet, only a simple web application.

As I can see, clientId works on form submit (the value is correct in
rewind and render phase too), but it fails without rewind phase (form is
not submitted, so it has render and no rewind).

On Mon, 2007-02-19 at 03:17 -0800, Andreas Andreou (JIRA) wrote:
>     [ https://issues.apache.org/jira/browse/TAPESTRY-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474132 ] 
> 
> Andreas Andreou commented on TAPESTRY-1278:
> -------------------------------------------
> 
> in render mode? is this portlet related?
> 
> > wrong clientId with multiple forms
> > ----------------------------------
> >
> >                 Key: TAPESTRY-1278
> >                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1278
> >             Project: Tapestry
> >          Issue Type: Bug
> >          Components: Framework
> >    Affects Versions: 4.1.2
> >         Environment: Java6, NetBeans, Linux, Glassfish V1
> >            Reporter: József Börcsök
> >         Assigned To: Andreas Andreou
> >            Priority: Minor
> >
> > getClientId() returns only a part of the generated id with multiple forms (using org.apache.tapestry.form.MultipleFormSupportFactory, see https://issues.apache.org/jira/browse/TAPESTRY-1274) in render phase if no submit was before.
> > I have 2 forms on a page and I'd like to generate the client ids into the HTML output. With org.apache.tapestry.form.MultipleFormSupportFactory the component ids are generated fine (with the form prefix) but getClientId skips that prefix, so it returns only "text" instead of "Form_0:text" or "Form_1:text". After submit one of the forms the getClientId returns correct values (in listener and render) in the submitted form, but the other one is still wrong.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org