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

Ben Gunter closed STS-292.
--------------------------


> Stripes tag library requiring stripes:form tag and using AJAX
> -------------------------------------------------------------
>
>                 Key: STS-292
>                 URL: http://www.stripesframework.org/jira/browse/STS-292
>             Project: Stripes
>          Issue Type: New Feature
>          Components: Tag Library
>    Affects Versions: Release 1.4.1
>            Reporter: Mark Eagle
>            Assignee: Ben Gunter
>             Fix For: Release 1.5
>
>
> I am using Stripes and AJAX together to provide dynamic updates to div 
> elements in our application.  I use Prototype's Ajax.Updater to make calls to 
> a Stripes action and return refreshed information in a div.  The information 
> that I want to return is via a ForwardResolution with a partial (similar to 
> Rails) using a JSP.  This JSP usually has fields that are in the middle of a 
> form from the calling page.  The problem is that I would like to use the 
> stripes form tag elements such as stripes:text, stripes:hidden, 
> stripes:select etc.  However, when the ForwardResolution tries to update the 
> div content I get messages like this:
> javax.servlet.ServletException: InputTag of type 
> [net.sourceforge.stripes.tag.InputHiddenTag] must be enclosed inside a 
> stripes form tag.
> While I understand that the Stripes tag library expects/validates form 
> elements to be enclosed in a form tag it forces me to make workarounds in my 
> partials.  For example I have to replace my form elements with html 
> equivalents and specify values from the actionBean.  Here is what it looks 
> like in my returning JSP:
> <input type="text" name="comment"
>                    value="${actionBean.comments}"
>                    size="40"
>                    maxlength="250"/>
> Is it possible to relax the form element tags not to throw this message.  
> Maybe an appropriate solution would be to add another attribute to the tag to 
> override this behavior (maybe ajax="true") so that we can have consistency in 
> the JSP pages for partials.  I am open to suggestions and ideas on this one.
> Thanks,
> Mark Eagle

-- 
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