buffer with input fields is including in all form submissions on page
---------------------------------------------------------------------
Key: MYFACES-212
URL: http://issues.apache.org/jira/browse/MYFACES-212
Project: MyFaces
Type: Bug
Versions: 1.0.9 beta
Reporter: Rob Decker
A buffer like this:
<x:buffer into="#{searchParams}">
<h:inputHidden value="#{searchBean.searchType}"/>
<h:inputHidden value="#{searchBean.searchField}"/>
<h:inputHidden value="#{searchBean.searchValue}"/>
<h:inputHidden value="#{searchBean.created}"/>
<h:inputHidden value="#{searchBean.createdStartDate}">
<f:convertDateTime type="date" dateStyle="short"/>
</h:inputHidden>
<h:inputHidden value="#{searchBean.createdEndDate}">
<f:convertDateTime type="date" dateStyle="short"/>
</h:inputHidden>
<h:inputHidden value="#{searchBean.modified}"/>
<h:inputHidden value="#{searchBean.modifiedStartDate}">
<f:convertDateTime type="date" dateStyle="short"/>
</h:inputHidden>
<h:inputHidden value="#{searchBean.modifiedEndDate}">
<f:convertDateTime type="date" dateStyle="short"/>
</h:inputHidden>
<h:inputHidden value="#{searchBean.resultsPerPage}"/>
</x:buffer>
has it's inputs submitted with all forms in view.
I was using this to store the search
parameters for the different forms. My understanding was that it made a string
that
was written to the page with say, outputText. It is not inside any of the form
tags
and is just a top level element in the page (inside view after I stripped the
page of
tiles). But apparently when I submit a form on the page it includes all these
hidden
inputs from the buffer (because in the last incarnation I never wrote the
buffer back
to the page).
So there is a bug at least in that myfaces is including form fields that are
not
inside form elements but are otherwise in the component heirarchy in all forms
on the
page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira