• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

Problem with h:panelGroup

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using IBM implementation of jsf.
When I nest the h:input tag inside the h:panelGroup which is nested inside h:form tag, I get a compile time error that h:input should be inside h:form tag. Is there a way of getting it to work? I want to throw a h:panelGroup tag inside h:inputText for implemnenting ajax style validation.

<h:form>
<h:panelGroup>
<h:inputText id="test" value="#{myBean.value}"/>
</h:panelGroup>
</h:form>
Any help will be appreciated.
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi vaithee

This doesn't make any sense. I Am not using IBM's jsf, but am doing this all the time. To my mind h:form renders a normal html form element.

h:panelGroup renders a <span> element

and h:inputText renders a normal <input type="text" element.

That most definately possible in html, so why not in IBM's JSF.

There must be something else wrong. Unless IBM have done something horribly wierd.

Can you send the actual compile time error here. Are you getting the error in your IDE only, or when you navigate to the page in the browser??

cheers
Darryl
 
vaithee sub
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Darryl,
You are right. It is just the rad that is giving error. When I actually publish it to server (with error), it seems to running fine without eny runtime errors. Thanks for the clarification.
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No probs vaithee

I also use IBM products so I know about the joys.... ;-)

cheers
Darryl
 
Why does your bag say "bombs"? The reason I ask is that my bag says "tiny ads" and it has stuff like this:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic