You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Reynolds (JIRA)" <ji...@apache.org> on 2006/05/24 20:40:16 UTC
[jira] Created: (SHALE-180) [Shale] generates
JavaScript for components that are not rendered
[Shale] <s:commonsValidator/> generates JavaScript for components that are not rendered
---------------------------------------------------------------------------------------
Key: SHALE-180
URL: http://issues.apache.org/struts/browse/SHALE-180
Project: Shale
Type: Bug
Components: Core
Versions: Nightly
Reporter: James Reynolds
Priority: Minor
The validator fires for an h:inputText that isn't rendered.
This is what I have on my page:
<h:outputText value="Last Name:"/>
<h:outputText value="#{sessionScope.visit.user.lastName}"
style="font-weight:bold;"
rendered="#{!members$myAccount.editName}"/>
<h:inputText id="lastName" value="#{sessionScope.visit.user.lastName}"
rendered="#{members$myAccount.editName}"
binding="#{members$myAccount.lastNameInput}"
required="true">
<s:commonsValidator type="required"
arg="Last name"
server="true"
client="true"/>
<h:message for="lastName" errorClass="errorText"/>
</h:inputText>
The inputText boxes are not rendered unless the user clicks a "Update
Name" button that changes the boolean "editName" property. The problem
is that the Update Name button is triggering the validation on the
un-rendered InputText control.
I suppose the form's onSubmit event caller assumes the existence of
the Input boxes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (SHALE-180) [Shale]
generates JavaScript for components that are not rendered
Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/SHALE-180?page=all ]
Gary VanMatre resolved SHALE-180:
---------------------------------
Fix Version: 1.0.3
Resolution: Fixed
Assign To: Gary VanMatre
Thanks for the help James! This patch will be in the shale 20060527 nightly build.
> [Shale] <s:commonsValidator/> generates JavaScript for components that are not rendered
> ---------------------------------------------------------------------------------------
>
> Key: SHALE-180
> URL: http://issues.apache.org/struts/browse/SHALE-180
> Project: Shale
> Type: Bug
> Components: Core
> Versions: Nightly
> Reporter: James Reynolds
> Assignee: Gary VanMatre
> Priority: Minor
> Fix For: 1.0.3
>
> The validator fires for an h:inputText that isn't rendered.
> This is what I have on my page:
>
> <h:outputText value="Last Name:"/>
> <h:outputText value="#{sessionScope.visit.user.lastName}"
> style="font-weight:bold;"
> rendered="#{!members$myAccount.editName}"/>
> <h:inputText id="lastName" value="#{sessionScope.visit.user.lastName}"
> rendered="#{members$myAccount.editName}"
> binding="#{members$myAccount.lastNameInput}"
> required="true">
> <s:commonsValidator type="required"
> arg="Last name"
> server="true"
> client="true"/>
> <h:message for="lastName" errorClass="errorText"/>
> </h:inputText>
>
>
> The inputText boxes are not rendered unless the user clicks a "Update
> Name" button that changes the boolean "editName" property. The problem
> is that the Update Name button is triggering the validation on the
> un-rendered InputText control.
>
> I suppose the form's onSubmit event caller assumes the existence of
> the Input boxes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (SHALE-180) [Shale]
generates JavaScript for components that are not rendered
Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/SHALE-180?page=all ]
Gary VanMatre resolved SHALE-180:
---------------------------------
Fix Version: 1.0.3
Resolution: Fixed
Assign To: Gary VanMatre
Thanks for the help James! This patch will be in the shale 20060527 nightly build.
> [Shale] <s:commonsValidator/> generates JavaScript for components that are not rendered
> ---------------------------------------------------------------------------------------
>
> Key: SHALE-180
> URL: http://issues.apache.org/struts/browse/SHALE-180
> Project: Shale
> Type: Bug
> Components: Core
> Versions: Nightly
> Reporter: James Reynolds
> Assignee: Gary VanMatre
> Priority: Minor
> Fix For: 1.0.3
>
> The validator fires for an h:inputText that isn't rendered.
> This is what I have on my page:
>
> <h:outputText value="Last Name:"/>
> <h:outputText value="#{sessionScope.visit.user.lastName}"
> style="font-weight:bold;"
> rendered="#{!members$myAccount.editName}"/>
> <h:inputText id="lastName" value="#{sessionScope.visit.user.lastName}"
> rendered="#{members$myAccount.editName}"
> binding="#{members$myAccount.lastNameInput}"
> required="true">
> <s:commonsValidator type="required"
> arg="Last name"
> server="true"
> client="true"/>
> <h:message for="lastName" errorClass="errorText"/>
> </h:inputText>
>
>
> The inputText boxes are not rendered unless the user clicks a "Update
> Name" button that changes the boolean "editName" property. The problem
> is that the Update Name button is triggering the validation on the
> un-rendered InputText control.
>
> I suppose the form's onSubmit event caller assumes the existence of
> the Input boxes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira