org.apache.myfaces.trinidad.component.UIXInput
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985764#3985764
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3985764
___
jboss-user
Atm you can't use s:validateAll with trinidad.
s:validateAll iterates over all it's children looking for instances of UIInput
(which superclasess all input components) - which normally works.
However Trinidad uses the custom UIXInput as it's superclass for all input
components, so
If someone tells me exactly what is the name of their UIInput class, I can
workaround this problem in Seam ;-)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985552#3985552
Reply to the post :
This is because validation is failing in the Hibernate layer, instead of the
Seam layer. You need the constraints to be enforced by s:validate/.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985272#3985272
Reply to the post :
Thanks, Gavin.
I modified the inputText tags in 'register.xhtml' as follows.
From:
| table border=0
| s:validateAll
| ...
| tr
|tdPassword/td
|tdtr:inputText value=#{user.password} secret=true
|
Actually s:validateAll/ adds an s:validate/ to every instance of UIInput in
the tree. If the trinidad inputText is not a UIInput, then it will be missed.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3985300#3985300
Reply to the post :
Understood...thanks Gavin. I believe that tr:input* / are UIComponents.
The feeling I get here is: only use standard JSF for form
components/validation.
Maybe something should go in the doco regarding this, especially since Trinidad
is now mentioned explicitly (ch 16):
anonymous wrote :
|
Just tried this with Beta2 and jboss4.0.5ga.
All is great when valid input is presented to the Register New User form.
If, however just a single character is entered into each field, hibernate
validation cuts in (good) and the browser is shown an error 500 (bad), thus:
| HTTP Status 500 -
Thank you for the example. But I still can't work with trinidad. My command
buttons just don't post the form!
tr:commandButton text=Register action=#{someAction}/ is rendered to
something like this:
button type=button onclick=submitForm(somethinghere)Register/button
If I provide attribute
Hello,
the uploaded trinidad example is just the adf example (also found at the wiki)
converted to trinidad. I must state that i am not the author of the adf example.
The uploaded example works for me on JBoss AS 4.0.4GA and on JBoss 4.0.5GA
Yes, the mentioned warning is rendered, but the button
I tried both Opera 9.02 and IE6 on WinXP SP2.
Thanks.
Pawel Kaczor
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980412#3980412
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980412
11 matches
Mail list logo