File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes problem with findComponent() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problem with findComponent()" Watch "problem with findComponent()" New topic
Author

problem with findComponent()

lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
i try to use this code to get the inputText but it always return me a null value.

code in managed bean:
String cidUserId= (String) component.getAttributes().get("userIdHidd");
UIInput userIdInput = (UIInput)context.getViewRoot().findComponent(cidUserId); // this line return me a null value
String userId= userIdInput.getValue();


code in UI:




Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

ooops...
lynn fann
Ranch Hand

Joined: Oct 15, 2006
Posts: 115
oopz,sorry just now that post was incomplete. i have fill in more information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with findComponent()
 
Similar Threads
Dynamic Component in JSF
findcomponent returns null value
creating a table component dynamically
Group Validations inside data table
Custom validator not validating