Hi

I'm just experimenting with the <s:validate> validator component provided as 
part of the seam-ui library.  The code checks to see that a valid value 
attribute by looking for a value attribute of

{model.field}

and determines the model from that by stripping off the .field part.

My problem is that I've passed the value to the tag source file as a atttribute 
e.g.

test-tag.xhtml

  | <ui:composition xmlns="http://www.w3.org/1999/xhtml";
  |     xmlns:ui="http://java.sun.com/jsf/facelets";
  |     xmlns:h="http://java.sun.com/jsf/html";
  |     xmlns:s="http://jboss.com/products/seam/taglib";
  |     >
  |     <h:inputText value="#{value}"> 
  |         <s:validate />
  |     </h:inputText>
  | </ui:composition>
  | 

test.xhtml

  | ...
  | <my:test-tag value="#{model.field}" />
  | ...
  | 

which causes the <s:validate> to throw a runtime exception as the attribute is 
not an value binding.

Anyone had a similar problem; any suggestions on how to get this to work?

Peter

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3942831#3942831

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3942831


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to