Stripes tag library requiring stripes:form tag and using AJAX
-------------------------------------------------------------

                 Key: STS-292
                 URL: http://mc4j.org/jira/browse/STS-292
             Project: Stripes
          Issue Type: New Feature
          Components: Tag Library
    Affects Versions: Release 1.4.1
            Reporter: Mark Eagle
         Assigned To: Tim Fennell


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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to