shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary VanMatre (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SHALE-297) Client Validation on objects within JSF Datatable
Date Fri, 29 Sep 2006 17:20:15 GMT
    [ 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

        

Mime
View raw message