This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Naming containers confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Naming containers confusion" Watch "Naming containers confusion" New topic
Author

Naming containers confusion

Marco Noronha
Ranch Hand

Joined: Oct 30, 2012
Posts: 50
Hello...

I am in a puzzle with those naming containers...

The problem is that I want to update by ajax components that are inside composite components.
I have it working for one case, but I want to add another function and I can´t figure out what is the path I should update.

I Have the composite components: filter.xhtml, datatable.xhtml, and confirmDelete.xhtml

I created another that is: crud.xhtml that has all three of those...

This case, IT WORKs. Because this is the deal:


I have the ID crud for that comp.
And inside the Filter, for eg I update like this:


or the data table (remember, it is inside another datatable):




Pretty easy...


But now I want to use the filter and datatable for another function, witch is LOOK UP.

The idea is: I have a lookup.xhtml that has two fields and one button.
First field is a text so the person types the ID of the entity...
Secound field is a disable just to show the entity name, eg.
The third is a button that opens up a dialog so the person can use the filter and datatable and select one entity.

So, lets look at the lookup component:



Well, I´m trying, but I got:



And I tryed passing ":responsavelLookup:filterForm" "mainForm:responsavelLookup:filterForm" or ":mainForm:responsavelLookup:filterForm"..

All same errors

Maybe this is an easy thing for advanced JSF developers, but it is very hard for me.
Sorry ...

Thanks in advanced for the help!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15949
    
  19

I don't know about PrimeFaces, but the basic JSF h:inputText tag cannot accept an EL expression for the id= attribute, only a String constant.

Customer surveys are for companies who didn't pay proper attention to begin with.
Marco Noronha
Ranch Hand

Joined: Oct 30, 2012
Posts: 50
Tim Holloway wrote:I don't know about PrimeFaces, but the basic JSF h:inputText tag cannot accept an EL expression for the id= attribute, only a String constant.


Thanks for the answer, but I don´t think that is the problem.
 
 
subject: Naming containers confusion
 
Similar Threads
Problem with RichFaces Calendar control
Ignore server side validation
Can't reRender richfaces datatable from modal panel
Hibernate I18N Repeated column with composite IDs
page framents, tabs, duplicate ID errors