Re: [FMPP] freemarker in struts2 application
Brought to you by:
ddekany
From: Daniel D. <dd...@fr...> - 2010-07-19 13:52:06
|
Monday, July 19, 2010, 1:18:33 PM, jyothisree wrote: > I have a struts2 application ,where in the jsp page i have struts2 tag Note that this is the FMPP mailing-list, not the FreeMarker mailing-list. > checkbacklist ,which displays the list of checkboxes in a row ,i want to > display it in the column form , for that i have made changes in the > checkboxlist.flt file as > > <#if parameters.cssStyle?exists> > <#if "${parameters.cssStyle?html}" == "vertical"> The above line should be just: <#if parameters.cssStyle == "vertical"> Does the same but cleaner and faster... Also, the two #if could be united as <#if parameters.cssStyle?exists and parameters.cssStyle == "vertical"> which furthermore can be reduced to: <#if parameters.cssStyle!'' == "vertical"> > <#if itemCount%2==0> > <br><#rt/> > <#else> > </#if> > </#if> > </#if> > > In this i can display the way i want to display the checkboxes in 2 columns > ,but the problem is the checkboxes starting from the 2nd column are not in > the line > something like this > > 1 chkbox 2 chkbox > 3 chkbox 4 chkbox > 5 chkbox 5 chkbox > > i want it to be as > 1 chkbox 2 chkbox > 3 chkbox 4 chkbox > 5 chkbox 5 chkbox > > What do i do for the above code That's a HTML question, and so it has nothing to do wit FreeMarker. But you could use a HTML table, or div-s with fixed width and CSS floating. -- Best regards, Daniel Dekany |