aspose file tools*
The moose likes JSF and the fly likes Problem with h:panelGroup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with h:panelGroup" Watch "Problem with h:panelGroup" New topic
Author

Problem with h:panelGroup

vaithee sub
Greenhorn

Joined: Mar 12, 2004
Posts: 20
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

Joined: Jun 11, 2002
Posts: 140
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

Joined: Mar 12, 2004
Posts: 20
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

Joined: Jun 11, 2002
Posts: 140
No probs vaithee

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

cheers
Darryl
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with h:panelGroup