tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Blower (JIRA)" <...@tapestry.apache.org>
Subject [jira] Updated: (TAPESTRY-2408) FormInjector doesn't work properly if the content contains multiple form elements
Date Tue, 06 May 2008 10:01:55 GMT

     [ https://issues.apache.org/jira/browse/TAPESTRY-2408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andy Blower updated TAPESTRY-2408:
----------------------------------

    Description: 
I've been trying to use FormInjector to create a dynamic form and not getting very far. To
demonstrate this problem I've taken the FormInjectorDemo integration test and simply taken
it out of the border element. It works fine until I add a t:label component in the block.
It seems to me that as soon as there is more than one kind of component in the injected block,
the inserted HTML is just "<li class="t-beaneditor-row"/>" without any form elements.
Two textfields work, and a textfield and an 'any' component work, but not label or radio with
a textfield. I suspect it's all form components.

I'll attach the modified demo. Remove the label component to see it working. (Just remove
the "t:" before the label) Add back in to see it broken again.

  was:
I've been trying to use FormInjector to create a dynamic form and not getting very far. To
demonstrate this problem I've taken the FormInjectorDemo integration test and simply taken
it out of the border element. It works fine until I add a t:label component in the block.
It seems to me that as soon as there is more than one kind of component in the injected block,
the inserted HTML is just "<li class="t-beaneditor-row"/>" without any form elements.
Two textfields work, and a textfield and an 'any' component work, but not label or radio with
a textfield. I suspect it's all form components.

I'll attach the modified demo. Remove the label component to see it working. Add back in to
see it broken again.


> FormInjector doesn't work properly if the content contains multiple form elements
> ---------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2408
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2408
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.12
>         Environment: tapestry-core-5.0.12-20080424.110110-44.jar
>            Reporter: Andy Blower
>         Attachments: FormInjectorDemo.java, FormInjectorDemo.tml
>
>
> I've been trying to use FormInjector to create a dynamic form and not getting very far.
To demonstrate this problem I've taken the FormInjectorDemo integration test and simply taken
it out of the border element. It works fine until I add a t:label component in the block.
It seems to me that as soon as there is more than one kind of component in the injected block,
the inserted HTML is just "<li class="t-beaneditor-row"/>" without any form elements.
Two textfields work, and a textfield and an 'any' component work, but not label or radio with
a textfield. I suspect it's all form components.
> I'll attach the modified demo. Remove the label component to see it working. (Just remove
the "t:" before the label) Add back in to see it broken again.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message