Re: Struts 2 newbie question

2007-03-12 Thread Ted Husted

On 3/12/07, Mark Menard <[EMAIL PROTECTED]> wrote:

On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL PROTECTED]> wrote:

> In your struts.properties file declare the following line:
>
> struts.ui.theme=simple


Or, in struts.xml,

   

The struts.xml setting being the preferred approach.

- HTH, Ted


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



RE: Struts 2 newbie question

2007-03-12 Thread King, Leon C
:)   That's what I figured out and implemented.   Thanks for the quick
help.

-Original Message-
From: Mark Menard [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 12, 2007 5:22 PM
To: Struts Users Mailing List
Subject: Re: Struts 2 newbie question

On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL PROTECTED]>
wrote:

> In your struts.properties file declare the following line:
> 
> struts.ui.theme=simple
> 
> then just wrap whatever you'd like around your input tags.

That to me is a hammer-like solution. This will change all of his forms
to
use the simple theme.

How about:



Mark

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


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



Re: Struts 2 newbie question

2007-03-12 Thread Mark Menard
On 3/12/07 1:53 PM, "Paul Saumets" <[EMAIL PROTECTED]> wrote:

> In your struts.properties file declare the following line:
> 
> struts.ui.theme=simple
> 
> then just wrap whatever you'd like around your input tags.

That to me is a hammer-like solution. This will change all of his forms to
use the simple theme.

How about:



Mark

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



RE: Struts 2 newbie question

2007-03-12 Thread King, Leon C
How do you include this template with your project?   I've modified the
'submit.ftl' file and placed it in the '/WEB-INF/classes' dir of my web
application.  Its not being picked up..

Thanks,

Leon

-Original Message-
From: Pascal Lalonde [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 12, 2007 2:36 PM
To: Struts Users Mailing List
Subject: Re: Struts 2 newbie question

You'll have to modify the associated template within your project.

The actual form template (from the default xhtml) is wrapping inputs 
into a table, each input is appended has a row into it.

- Pascal

King, Leon C wrote:
> How do you modify the alignment of a button?   Currently I'm  using
the
> following in my jsp:
>
> 
> label="Query Result" />
>
>  
>
> which produces a button on one line.   I'd like to combine several
> buttons on the same line.
>
>  
>
> Thanks,
>
>  
>
> Leon
>
>
>   


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


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



Re: Struts 2 newbie question

2007-03-12 Thread stanlick

Does this disallow Ajax support?

On 3/12/07, Paul Saumets <[EMAIL PROTECTED]> wrote:


In your struts.properties file declare the following line:

struts.ui.theme=simple

then just wrap whatever you'd like around your input tags.

Regards,
Paul
_

From: King, Leon C [mailto:[EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Mon, 12 Mar 2007 14:23:14 -0400
Subject: Struts 2 newbie question

How do you modify the alignment of a button?   Currently I'm  using the
following in my jsp:

 



which produces a button on one line.   I'd like to combine several
buttons on the same line.



Thanks,



Leon








--
Scott
[EMAIL PROTECTED]


Re: Struts 2 newbie question

2007-03-12 Thread Paul Saumets
In your struts.properties file declare the following line:

struts.ui.theme=simple

then just wrap whatever you'd like around your input tags.

Regards,
Paul
  _  

From: King, Leon C [mailto:[EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Mon, 12 Mar 2007 14:23:14 -0400
Subject: Struts 2 newbie question

How do you modify the alignment of a button?   Currently I'm  using the
  following in my jsp:
  
  
  
   
  
  which produces a button on one line.   I'd like to combine several
  buttons on the same line.
  
   
  
  Thanks,
  
   
  
  Leon
  
  


Re: Struts 2 newbie question

2007-03-12 Thread Pascal Lalonde

You'll have to modify the associated template within your project.

The actual form template (from the default xhtml) is wrapping inputs 
into a table, each input is appended has a row into it.


- Pascal

King, Leon C wrote:

How do you modify the alignment of a button?   Currently I'm  using the
following in my jsp:



 


which produces a button on one line.   I'd like to combine several
buttons on the same line.

 


Thanks,

 


Leon


  



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



Struts 2 newbie question

2007-03-12 Thread King, Leon C
How do you modify the alignment of a button?   Currently I'm  using the
following in my jsp:



 

which produces a button on one line.   I'd like to combine several
buttons on the same line.

 

Thanks,

 

Leon



Re: struts 2 newbie question

2006-11-30 Thread Mark Menard
On 11/30/06 4:40 PM, "walidito" <[EMAIL PROTECTED]> wrote:

Quick caveat, I haven't used the methodology, but I might start now.

> and I don't understand this stuff :
> in struts.xml
> 
> the tutorial says :
> The "method={1}" attribute is replaced with "method=input".
> Why ? Can someone explain me why it is replaced by this particular method,
> and give me another simple example if possible.

Right above that notice that the  tag changed from:
   


To:



I think that this taken together with the action mapping:



Will result in the "input" being stripped off the end of "Login_input" and
being put into {1}. I think that's what the "Login_*" basically says in the
action mapping, "Login_" is the base, and everything that matches "*"
becomes {1}.

That's pretty slick. I didn't know about this. I think I might start using
it.

Take care,

Mark

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



struts 2 newbie question

2006-11-30 Thread walidito

Hello,
I'm working through the official struts 2 tutorial
(http://struts.apache.org/2.x/docs/validating-input.html ...)

and I don't understand this stuff :
in struts.xml

the tutorial says :
The "method={1}" attribute is replaced with "method=input". 
Why ? Can someone explain me why it is replaced by this particular method,
and give me another simple example if possible.
thanks
Walid
-- 
View this message in context: 
http://www.nabble.com/struts-2-newbie-question-tf2734508.html#a7628558
Sent from the Struts - User mailing list archive at Nabble.com.


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