This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes conditional rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "conditional rendering" Watch "conditional rendering" New topic

conditional rendering

Olciap Berge

Joined: Sep 03, 2010
Posts: 6
Is there a way to render some form or link only when some condition is fulfilled?
I mean by using something like tag property, like it was solved in JSF (for example <form id=".." ... renter="here condition">)
David Newton

Joined: Sep 29, 2008
Posts: 12617

Not in a standard tag, but you could write your own custom tags, or just wrap chunks in if tags.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9293

Olciap Xx please check your private messages for some administrative matter...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: conditional rendering