DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30511>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30511

Struts-faces form input with rendered attribute set

           Summary: Struts-faces form input with rendered attribute set
           Product: Struts
           Version: Nightly Build
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Struts-Faces Library
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a JSF form like this:

<s:form action="/saveServer" onsubmit="return validateServerForm(this);">
...
<h:inputText id="dns" value="#{serverForm.dns}" rendered="#{serverForm.mtc 
== 'edit'}"/>
...
</s:form>

When the page displays, if the mtc attribute is equals to 'edit', this text 
field displays.
If I submit the form in my action class, I try to get this value using:

(String)serverForm.get( "dns" ) )

And it always return an empty String.

If I remove the 'rendered="#{serverForm.mtc == 'edit'}"' from the inputText 
tag, the value from the form is correctly transmitted to the Action class.

I guess this is a struts-faces bug or Am I missing something here?
Thanks a lot

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to