Re: Form template

2008-06-13 Thread Craftyman
Hi,

You can use theme="simple" in your tag to disable table mode. Ex : 

Cédric

2008/6/13 Ralf Fischer <[EMAIL PROTECTED]>:

> Hi Matthieu,
>
> On Fri, Jun 13, 2008 at 11:08 AM, Matthieu MARC
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am making a form page with jstl tags :
> >
> > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> >
> > 
> > 
> > 
> >> cssStyle="font-weight: bold;" />
> >onchange="countHour();"
> > id="am%{index}" key="timetable.morning" list="heures" value="%{am}" />
> >onchange="countHour();"
> > id="pm%{index}" key="timetable.afternoon" list="heures" value="%{pm}" />
> >   
> >  > name="tpsTotal" />
> >> action="timetableRecordChange" />
> >/>
> >  
>
> Well, IMO you don't use ANY JSTL tag in the code snipplet  here.
>
> > The code generated used TABLE, TR and TD to put the different element on
> the
> > page. I would prefered to use DIV, P and SPAN but I don't know how to do.
> > Looking at the s:form element, I found the parameter template, but I
> didn't
> > manage to find any documentation on how to use the paramater.
> >
> > Can someone give me some link to documentation on templating a form in
> order
> > to use anything else than a table based formated page ?
>
> That would be here [1].
>
> Bye,
> -Ralf
>
>
> [1] http://struts.apache.org/2.0.11.1/docs/extending-themes.html
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Form template

2008-06-13 Thread Ralf Fischer
Hi Matthieu,

On Fri, Jun 13, 2008 at 11:08 AM, Matthieu MARC
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am making a form page with jstl tags :
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
>
> 
> 
> 
>cssStyle="font-weight: bold;" />
>id="am%{index}" key="timetable.morning" list="heures" value="%{am}" />
>id="pm%{index}" key="timetable.afternoon" list="heures" value="%{pm}" />
>   
>  name="tpsTotal" />
>action="timetableRecordChange" />
>   
>  

Well, IMO you don't use ANY JSTL tag in the code snipplet  here.

> The code generated used TABLE, TR and TD to put the different element on the
> page. I would prefered to use DIV, P and SPAN but I don't know how to do.
> Looking at the s:form element, I found the parameter template, but I didn't
> manage to find any documentation on how to use the paramater.
>
> Can someone give me some link to documentation on templating a form in order
> to use anything else than a table based formated page ?

That would be here [1].

Bye,
-Ralf


[1] http://struts.apache.org/2.0.11.1/docs/extending-themes.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Form template

2008-06-13 Thread Matthieu MARC

Hi,

I am making a form page with jstl tags :

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>


  
   
  
   
   cssStyle="font-weight: bold;" />
   onchange="countHour();" id="am%{index}" key="timetable.morning" 
list="heures" value="%{am}" />
   onchange="countHour();" id="pm%{index}" key="timetable.afternoon" 
list="heures" value="%{pm}" />

   
  
   key="timetable.totalTime" name="tpsTotal" />
   action="timetableRecordChange" />
   action="timetableDisplay" />
  



The code generated used TABLE, TR and TD to put the different element on 
the page. I would prefered to use DIV, P and SPAN but I don't know how 
to do. Looking at the s:form element, I found the parameter template, 
but I didn't manage to find any documentation on how to use the paramater.


Can someone give me some link to documentation on templating a form in 
order to use anything else than a table based formated page ?


Thanks in advance.

Matthieu MARC

--
Matthieu MARC
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] form template

2006-10-01 Thread Martin Gainty
can you display your web.xml and and struts-config.xml for the webapp you are 
deploying?

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Garner Shawn" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, October 01, 2006 6:04 PM
Subject: [s2] form template


>I just did my first form in a JSP and it has some kind of default
> format being applied to it.  I'm not sure where it's comming from but
> I'd like to know how to override/remove it.
> 
> I assume it's some kind of velocity or freemarker template being
> applied but I don't know how to get rid of it or override it.
> 
> Shawn
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

[s2] form template

2006-10-01 Thread Garner Shawn

I just did my first form in a JSP and it has some kind of default
format being applied to it.  I'm not sure where it's comming from but
I'd like to know how to override/remove it.

I assume it's some kind of velocity or freemarker template being
applied but I don't know how to get rid of it or override it.

Shawn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]