Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Naming containers confusion

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Saloon Keeper
Posts: 25455
178
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic