javier pavon

Greenhorn
+ Follow
since Mar 03, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by javier pavon

I want to add a class to the input with validation error, so I have created a class that implements PhaseListener, and in the method BeforePhase I do this


So, facesContexts return me the ids with messages (validation problems), but if findcomponent return me null;

This happens only withs lists/datatables, for example, if the id = formValidacion:listaPrescripciones:0:j_id511, dont work, but if I sent formValidacion:listaPrescripciones:j_id511 give me the component!!! why??

And, if I add a 'error' class to ui component, like this


If I pass formValidacion:listaPrescripciones:j_id511, then jsf add error class to all the same components in the list/row, not for the row
Any help please?
13 years ago
JSF
i have done a custom validation, i have followed this steps:

1.- Create class that implement Validator interface

2.- Register the validator en faces-config.xml

3.- Use the validator




And the problem it's that dont execute the validate method, but the required standar message is show.

anybody could help me?

Thanks a lot
13 years ago
JSF
any ideas?
14 years ago
JSF
The construct for my backing bean it is called twice, so i need a method what will be call only once for init the bean parameters (database, webservices...), do this twice is very slow.

On internet i have said the annotation @postconstruct, but it is not working for me.

In my bean i have the constructor and the init method




I am using jsf 1.2, this is my header faces-config



and in the web.xml




I dont know why in the init method annotated with @postConstruct it is not ever call.
14 years ago
JSF
I try this and it's work perfectly!!!


Thank very much for your help, i hope i can help to anybody too. ;)
14 years ago
JSF
Where is it this tag? jsf core? i dont found it
14 years ago
JSF
in reply to Akaine Harga, if i remove the rendered, the button works, but i need it ;(
14 years ago
JSF
a lot of thanks for your replys!!!

The scope for the Bean it´s request, i cannot use session scope ;( and i need the rendered, because when the condition it´s false i dont want show the panelgroup.

I´m use richfaces, but in this example only i am using h:commanbutton.


The problem:
When i push the button "botonOutside", the panelgroup will be render another time, the condition will be false and the button will be dissapear and the aplicattion dont navigate. Why the panelgroup render when i push the button?

I need a button inside a panelgruop with a rendered condition for navigation.

Please, any help?

14 years ago
JSF
I have this code



I have two buttons, one inside of a panelgroup with a rendered condition and other outside.

When I open the page, two buttons are rendered because the condition is true, but when i click in the buttons, only the button "botonInside" works, the seconds button dont navigate and also will be disappear.

It is because, when i push the button "botonOutside", i dont know why but the panelgruop its rendered another time, before that navigation and then the condition its false.



Anybody know why after push the button the panelgroup it will be render another time? why the button "botonOutside" dont navigate???


Please, i need help.

Thanks
14 years ago
JSF