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 Naming containers confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 16308
    
  22

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Naming containers confusion