Joe Shannow

Ranch Hand
+ Follow
since Dec 01, 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 Joe Shannow

Hi,

I have <h:inputText> on form and what I need is to execute some method from backing bean on BLUR:
Is it possible to do it using onblur attribute? Or ajax?
12 years ago
JSF

Ilari Moilanen wrote:#{loginUser} is a simple managed bean (related to custom login procedure) as I stated above. But when I did some rechecks on this problem now I realized that the actual problem is not only the @ViewScoped bean.
When I check the presence of loginUser normally then it is present no matter if the calling bean is @RequestScoped, @SessionScoped or @ViewScoped. But when I use AJAX call (with f:ajax) then the loginUser is not present if the calling bean is @ViewScoped. This looks like a bug in the implementation of @ViewScoped. And the bug may be only present in the implementation that I use (MyFaces 2.0.1 and 2.0.2).

I may check if the behavior is changed when using the Mojarra implementation...

EDIT: I tested it and for some reason I can not get Mojarra implementation (2.0.1) do the ajax call at all. I do not have time to find what the reason is so this problem remains unresolved.

EDIT2: Argh, tested this with Mojarra 2.0.3 and the ajax call worked but the loginUser remains as null (although it is in the session). So this may be intended for some reason. Can not understand what the reason might be but nevertheless...



Did you find the solution? I have exactly the same problem.. @ManagedProperty is working fine, ajax doesn't (object is null)
12 years ago
JSF
Sorry, I wasn't sure where to put it, thanks

I've tried but it doesn't work.

I've add those components styleClass="input"
but my jQuery method to redirect ENTER to TAB key doesn't focus to selectOneMenu (when it step on it) and instead of focus it submits the button



13 years ago
JSF
Hello,

how can I find the JSF <h:selectOneMenu> component using by jquery methods?
I can find <h:inputText styleClass="input"> only:
Any advice? Thank you
13 years ago
JSF
Hello,

how can I find the JSF <h:selectOneMenu> component using by jquery methods?
I can find <h:inputText styleClass="input"> only:
Any advice? Thank you
13 years ago
JSF
Hello,

i have a cosmetic problem. I'm using
(+ getters and setters)

for inner logic of application. And in the JSF I'm calling it for rendering or disabling components, for example
And it works. But it seems to me a bit ugly.
Is there some other way to achieve the same functionality?

I'm looking for more elegant solution. Because JSF wants it private + getters and setters, and the other JAVA class wants it private STATIC + get, sets. So I sometimes need to use two booleans for one thing and it makes a bit of mess...

Thank you
13 years ago
JSF
OK, problem is in @SessionScoped bean. Using @ViewScoped helped
13 years ago
JSF
And the Error message:

Followed by tree of components.
I thing there's nothing duplicated in code, but dataTable create a new columns and after that it's really duplicated
13 years ago
JSF
Hi,

I have a problem using HtmlDataTable for viewing data from database.

When I create <h:dataTable> component, the table has sometimes (not always) twice number of columns.
It is shown correctly and after several refreshes (without move in dtb or something) there is for example 6 columns instead of 3 and application (sometimes) become unstable.
Since this time I can't work with table because it reports "duplicate Id for a component"..

Simple example:

And java.class

I have two working similar modules, and the third doesn´t work
Have you ever met this kind of problem?

Thanks
13 years ago
JSF
Thank you Cesar, it's very nice and simple working solution!!!
Thank you Tim for BLUR event, it's enough for me now
13 years ago
JSF
Thank you very much, Tim.

So I'll try to explore third (other faces) and second option (using jQuery, onkeypress event and call servlet by get method..?).


13 years ago
JSF
Thanks for tip. But i know nothing about ajax for now :-)
13 years ago
JSF
hi,

is possible to solve this problem?
- I have one h:inputText in a form - user add here for example ID of person
- and beside is the disabled h:inputText where will be shown a NAME of person (from data table ID,NAME)
- immediately after filling the first input but WITHOUT submitting a form

do you have some experience? thanks
13 years ago
JSF
I think I understand what did you tell me, but I not able to use it for now.
Could you tell me exactly how can I do this?
13 years ago
JSF
Hello,

I know how to redisplay value of <h:inputtext> after reload page using by redisplay="true" attribute.
But how to keep the value in the <h:inputText> after using Submitt button???

Do you have some suggestions?
Thank you
13 years ago
JSF