Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Naming containers confusion

 
Marco Noronha
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Marco Noronha
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic