You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shale.apache.org by "Abdul Subahan (JIRA)" <ji...@apache.org> on 2006/09/29 04:14:25 UTC

[jira] Created: (SHALE-297) Client Validation on objects within JSF Datatable

Client Validation on objects within JSF Datatable
-------------------------------------------------

                 Key: SHALE-297
                 URL: http://issues.apache.org/struts/browse/SHALE-297
             Project: Shale
          Issue Type: Bug
    Affects Versions: 1.0.2
         Environment: Shale 1.0.2, JDK 1.5.0_05, myfaces tomahawk 1.1.3, weblogic 9.2, Windoxs XP Professional 
            Reporter: Abdul Subahan 


Unable to validate objects which are inside the jsf datatable.

Below Sample code causes javascript and ignores total javascript validation.

        <t:dataTable id="data" styleClass="standardTable"
          var="ilist"  value="#{test.arr}" >
            <t:columns value="#{test.arr}" var="column">
                <h:inputText  value="#{test.salary}" />
                    <s:commonsValidator type="required" arg="Salary" server="true" client="true"/>
            </t:columns>
        </t:dataTable>

-- 
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-297) Client Validation on objects within JSF Datatable

Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/SHALE-297?page=all ]

Gary VanMatre resolved SHALE-297.
---------------------------------

    Fix Version/s: 1.0.3
       Resolution: Duplicate

This is a duplicate of SHALE-65 fixed in Shale 1.0.3.  You can find this build here: http://people.apache.org/dist/shale/v1.0.3/

A recent summary of Validator fixes:
http://www.nabble.com/Shale-validation-with-custom-rules-t2333950.html#a6500400

> Client Validation on objects within JSF Datatable
> -------------------------------------------------
>
>                 Key: SHALE-297
>                 URL: http://issues.apache.org/struts/browse/SHALE-297
>             Project: Shale
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>         Environment: Shale 1.0.2, JDK 1.5.0_05, myfaces tomahawk 1.1.3, weblogic 9.2, Windoxs XP Professional 
>            Reporter: Abdul Subahan 
>             Fix For: 1.0.3
>
>
> Unable to validate objects which are inside the jsf datatable.
> Below Sample code causes javascript and ignores total javascript validation.
>         <t:dataTable id="data" styleClass="standardTable"
>           var="ilist"  value="#{test.arr}" >
>             <t:columns value="#{test.arr}" var="column">
>                 <h:inputText  value="#{test.salary}" />
>                     <s:commonsValidator type="required" arg="Salary" server="true" client="true"/>
>             </t:columns>
>         </t:dataTable>

-- 
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] Commented: (SHALE-297) Client Validation on objects within JSF Datatable

Posted by "Gary VanMatre (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SHALE-297?page=comments#action_38310 ] 
            
Gary VanMatre commented on SHALE-297:
-------------------------------------

I suspect that the reason that your example didn't work using the 1.0.3 shale build has to do with your dependencies.

The shale validator requires commons validator 1.3.  You can see a working example of what you have reported in the shale-usecases.  You can find that here: http://people.apache.org/dist/shale/v1.0.3/shale-usecases-1.0.3.zip

There are some difference between this example and the fragment you have posted.  This example uses myfaces 1.1.1 and doesn't use the tomahawk components.

However, I modified this example in my own testbed to use myfaces 1.1.3 and tomahawk 1.1.3.  I even tested using the super slick <t:columns> component and I didn't see any problems.

A snippet of the javascript from this test bed:
function tomSubview_tomForm_required() { 
this[0] = new Array("tomSubview:tomForm:tomDataTable:0:_idJsp33:0:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
this[1] = new Array("tomSubview:tomForm:tomDataTable:0:_idJsp33:1:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
this[2] = new Array("tomSubview:tomForm:tomDataTable:1:_idJsp33:0:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
this[3] = new Array("tomSubview:tomForm:tomDataTable:1:_idJsp33:1:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
this[4] = new Array("tomSubview:tomForm:tomDataTable:2:_idJsp33:0:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
this[5] = new Array("tomSubview:tomForm:tomDataTable:2:_idJsp33:1:_idJsp34", "CPT is required.", new Function("x", "return {arg:'CPT'}[x];"));
	}


Please take a look the shale-usecases.war in the 1.0.3 archive above and compare it with your example.  That might help isolate your particular problem.

> Client Validation on objects within JSF Datatable
> -------------------------------------------------
>
>                 Key: SHALE-297
>                 URL: http://issues.apache.org/struts/browse/SHALE-297
>             Project: Shale
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>         Environment: Shale 1.0.2, JDK 1.5.0_05, myfaces tomahawk 1.1.3, weblogic 9.2, Windoxs XP Professional 
>            Reporter: Abdul Subahan 
>             Fix For: 1.0.3
>
>
> Unable to validate objects which are inside the jsf datatable.
> Below Sample code causes javascript and ignores total javascript validation.
>         <t:dataTable id="data" styleClass="standardTable"
>           var="ilist"  value="#{test.arr}" >
>             <t:columns value="#{test.arr}" var="column">
>                 <h:inputText  value="#{test.salary}" />
>                     <s:commonsValidator type="required" arg="Salary" server="true" client="true"/>
>             </t:columns>
>         </t:dataTable>

-- 
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] Commented: (SHALE-297) Client Validation on objects within JSF Datatable

Posted by "Abdul Subahan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SHALE-297?page=comments#action_38297 ] 
            
Abdul Subahan  commented on SHALE-297:
--------------------------------------

Hi, I tried my example with Shale 1.0.3 as you advised and I still get the same problem. I use tomahawk 1.1.3 and declare the jsf extension as

<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

I also even tried with tomahawk 1.1.5 and it doesn't work. In SHALE-65 the overview says the lib should include commons-chain.jar, which I am not including. Will that be an issue? Pls reply.

> Client Validation on objects within JSF Datatable
> -------------------------------------------------
>
>                 Key: SHALE-297
>                 URL: http://issues.apache.org/struts/browse/SHALE-297
>             Project: Shale
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>         Environment: Shale 1.0.2, JDK 1.5.0_05, myfaces tomahawk 1.1.3, weblogic 9.2, Windoxs XP Professional 
>            Reporter: Abdul Subahan 
>             Fix For: 1.0.3
>
>
> Unable to validate objects which are inside the jsf datatable.
> Below Sample code causes javascript and ignores total javascript validation.
>         <t:dataTable id="data" styleClass="standardTable"
>           var="ilist"  value="#{test.arr}" >
>             <t:columns value="#{test.arr}" var="column">
>                 <h:inputText  value="#{test.salary}" />
>                     <s:commonsValidator type="required" arg="Salary" server="true" client="true"/>
>             </t:columns>
>         </t:dataTable>

-- 
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] Commented: (SHALE-297) Client Validation on objects within JSF Datatable

Posted by "Craig McClanahan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/SHALE-297?page=comments#action_38299 ] 
            
Craig McClanahan commented on SHALE-297:
----------------------------------------

Could you do the Shale developers a favor and try an eperiment?  Try including commonx-chain-xxx.jar explicitly in your build script (even though it *should* be included implicitly), and see if that addresses the exception yiou are seeing.  If this fixes the problem, then it's a pretty straightforward issue of updating the dependencies in a pom.xml file.  If not, then more research is warranted.


> Client Validation on objects within JSF Datatable
> -------------------------------------------------
>
>                 Key: SHALE-297
>                 URL: http://issues.apache.org/struts/browse/SHALE-297
>             Project: Shale
>          Issue Type: Bug
>    Affects Versions: 1.0.2
>         Environment: Shale 1.0.2, JDK 1.5.0_05, myfaces tomahawk 1.1.3, weblogic 9.2, Windoxs XP Professional 
>            Reporter: Abdul Subahan 
>             Fix For: 1.0.3
>
>
> Unable to validate objects which are inside the jsf datatable.
> Below Sample code causes javascript and ignores total javascript validation.
>         <t:dataTable id="data" styleClass="standardTable"
>           var="ilist"  value="#{test.arr}" >
>             <t:columns value="#{test.arr}" var="column">
>                 <h:inputText  value="#{test.salary}" />
>                     <s:commonsValidator type="required" arg="Salary" server="true" client="true"/>
>             </t:columns>
>         </t:dataTable>

-- 
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