You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Narayana S <na...@gmail.com> on 2008/07/14 08:19:59 UTC
Extending Struts Controls - problem
Hi,
I have extended Simple theme (by modifying XHTML theme),
implemented the column span for every control as given below.
<s:textfield label="Trucker" name="truker" size="70">
<s:param name="labelcolspan" value="%{2}" />
<s:param name="inputcolspan" value="%{6}" />
</s:textfield>
it is working fine.
Now to pass these parameters directly within the textfield tag, i have
extended org.apache.struts2.views.jsp.ui.TextFieldTag and created my own tag
with new attributes labelcolspan,inputcolspan. the taglib file also modified
accordingly, but when i am creating a textfield with the extended class, it
is not passing these two new parameter info to Free marker template files.
after extending as shown below i am using the tag,
<ss:textfield labelcolspan="row21" inputcolspan="row31" name="myname1"
label="Enter First Name" />
what else i am missing here? can any one suggest me....
Thanks in advance
~narayana.
Re: Extending Struts Controls - problem
Posted by Lukasz Lenart <lu...@googlemail.com>.
Hi,
Maybe this will help
http://annaskawinska.blogspot.com/2008/04/extending-struts2-theme.html
Regards
--
Lukasz
http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Extending Struts Controls - problem
Posted by Narayana S <na...@gmail.com>.
any one please reply to this... i am kind of stucked....
On Mon, Jul 14, 2008 at 11:49 AM, Narayana S <na...@gmail.com> wrote:
> Hi,
>
> I have extended Simple theme (by modifying XHTML theme),
> implemented the column span for every control as given below.
>
> <s:textfield label="Trucker" name="truker" size="70">
> <s:param name="labelcolspan" value="%{2}" />
> <s:param name="inputcolspan" value="%{6}" />
> </s:textfield>
>
> it is working fine.
>
> Now to pass these parameters directly within the textfield tag, i have
> extended org.apache.struts2.views.jsp.ui.TextFieldTag and created my own tag
> with new attributes labelcolspan,inputcolspan. the taglib file also modified
> accordingly, but when i am creating a textfield with the extended class, it
> is not passing these two new parameter info to Free marker template files.
> after extending as shown below i am using the tag,
>
> <ss:textfield labelcolspan="row21" inputcolspan="row31" name="myname1"
> label="Enter First Name" />
>
>
> what else i am missing here? can any one suggest me....
>
> Thanks in advance
> ~narayana.
>