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

Problem with h:panelGroup

 
vaithee sub
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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.
 
Darryl Nortje
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
No probs vaithee

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

cheers
Darryl
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic