Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF+tiles+newbie = navigation problem.

843842Aug 30 2005
Hi all,

I've got two pages: test.jsp, filter.jsp.
I've got JSF forms on both of them.
Code for the form is:
-------------
<f:view>
<h:form>
<p>
Riigi id: <h:inputText value="#{backing_test.id}"/>
</p>
<p>
Kood: <h:inputText value="#{backing_test.kood}"/>
</p>
<p>
<h:commandLink action="#{backing_test.goFilter}" value="action" />
<h:commandButton value="push me" action="#{backing_test.goFilter}"/>
</p>
</h:form>
</f:view>
-------------

The idea was that I enter data into form, push the button and I'm forwarded to page with database info, selected according to parameters I've entered into form.

Everything works fine until I uncomment
------------
<definition name="/test.tiles" extends="layout">
<put name="body" value="/test.jsp"/>
</definition>
<definition name="/filtered.tiles" extends="layout">
<put name="body" value="/filtered.jsp"/>
</definition>
----------------
in tiles.xml

I haven't used tiles at all before, I can't understand - where is the error?
May such data filter can be implemented in different way?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2005
Added on Aug 30 2005
0 comments
94 views