fikar wrote: > > * > Hello Struts2 Dev Group* > > I was wondering to find a feature in Struts2 where we can specify our > logic > (basically our if conditions) to prevent an element from displaying. > [...] > *My Proposing Feature:* > > <s:text name="label.userHelloMessage" onlyIftest="userExists"/> > > *What am i proposing for this new approach?* > > Currently in most of the web applications we need to maintain the business > flow by keeping so many if else ladders and it is hard to maintain the JSP > Pages. By having the condition check inside the custom tag, we can achieve > a > high level of maintenance. >
This is an excellent idea, but the name you propose (“onlyIftest”) is terrible. May I suggest that you use “rendered='condition'” as in the JSF tags. It all the best if we can make JSP tags and JSF tags converge as most as possible especially on those pesky tag attribute name. Regards, ZC. -- View this message in context: http://www.nabble.com/Regarding-Struts-2-Feature-tp19209143p19215911.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]