[ 
http://www.stripesframework.org/jira/browse/STS-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-144.
--------------------------


> There should be a way for developers to use dynamic attributes with Stripes' 
> custom tags
> ----------------------------------------------------------------------------------------
>
>                 Key: STS-144
>                 URL: http://www.stripesframework.org/jira/browse/STS-144
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Tag Library
>            Reporter: Tim Fennell
>            Assignee: Tim Fennell
>             Fix For: Release 1.3
>
>
> The current Stripes taglib does not allow attribute beyond the standard HTML 
> attributes for the tag and a couple of Stripes-specific attributes.  However, 
> it's often the case that the easiest way to integrate with an AJAX framework 
> is through a custom attributes on tags, e.g.
>     <input type="text" dojoType="DatePicker"/>
> With the Stripes tags you can't do this!  There are a number of good reasons 
> for not supporting this.  They mainly boil down to the fact that IDEs and the 
> JSP compiler will catch a lot more errors if dynamic attributes are off.  And 
> it makes it much harder to produce invalid HTML ;)
> The solution I think we'll go with is to have the tag classes support dynamic 
> attributes and to provide two tld files.  That way anyone who doesn't need 
> dynattrs can use the standard taglib, and anyone who does can use the other 
> taglib where necessary.  The two should interact seamlessly, allowing for 
> things like:
> <%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld"; %>
> <%@ taglib prefix="sd 
> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"; %>
> <s:form action="/ViewAccount.action">
>     <s:checkbox name="foo">
>     <sd:text name="foo" dojoType="DatePicker"/>
>     ....
> </s:form>

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to