aspose file tools
The moose likes JSF and the fly likes Custom tag use in <h:dataTable> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Custom tag use in <h:dataTable>" Watch "Custom tag use in <h:dataTable>" New topic
Author

Custom tag use in <h:dataTable>

Andy Holm
Ranch Hand

Joined: Jul 03, 2008
Posts: 86
I would like to use a custom component within my <h:dataTable>. The problem is the value for "number" below doesn't seem to be passed in correctly. It is blank.
Using an outputText tag works, however. What needs to be changed in the custom tag to make it work?

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Does it extend UIComponent? It should.
You're using JSP EL instead of JSF (Unified) EL. This is indeed not going to work.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Andy Holm
Ranch Hand

Joined: Jul 03, 2008
Posts: 86
I misspoke in my original post. What I meant to say was I am trying to use a custom tag within a dataTable, and that is not working. What should I be doing instead to get this custom tag functionality? Do you have a link with an example?
Andy Holm
Ranch Hand

Joined: Jul 03, 2008
Posts: 86
Any suggestions?
suresh dasari
Ranch Hand

Joined: Oct 05, 2009
Posts: 120

Hi,

I am also facing the same problem, normal inputtext control is working in datatable whereas custom component of input text control is not working.
the problem I am facing is:
when I used input text inside the datatable page is submiting prefectly and I am able to retrive the input value in the backing bean after submiting the page but when I used a custom input text inside the datatable page is not submiting as there is an issue with custom component.

thanks for any help???


Sun Certified Java Programmer with 93 percent
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Custom tag use in <h:dataTable>
 
Similar Threads
Iterating over Arraylist in jsf application
Help on JSF Custom tag
Problem with h:datatable
Custom Tag Issue
How to handle a list in JSF 2