[ http://mc4j.org/jira/browse/STS-292?page=comments#action_10761 ] 
            
Sebastian Hennebrueder commented on STS-292:
--------------------------------------------

The tags requires the parent to access the action and to display localized 
titles. Therefore it is not possible to remove the check.

What about improving the Javascript updater and to remove a rendered form tag 
from the returned spartial.

In my opinion, we should close this issue.

Sebastian

> 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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to