Re: Struts Tiles Problem

2010-11-05 Thread Lukasz Lenart
2010/11/5 Rafael Medeiros : > How to use plugin-tiles in struts 1.3.8: Check the documentation http://struts.apache.org/1.x/struts-tiles/installation.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl

Re: Setting css of a row

2010-11-05 Thread Dave Newton
The same way you retrieve any action property. That said, I'm not a fan of mixing layers like that: * possibly* get something business- oriented from the action and use CSS to style it... but a color from the action is poor design. Dave On Nov 6, 2010 12:46 AM, "cellterry" wrote: > > Dear all,

Setting css of a row

2010-11-05 Thread cellterry
Dear all, I want to set a table row with a color retrieved from an action class, could I do that? If yes, how to do that? Terry. -- View this message in context: http://old.nabble.com/Setting-css-of-a-row-tp30146983p30146983.html Sent from the Struts - User mailing list archive at Nabble.com

How to use

2010-11-05 Thread Mead Lai
Hi All, I am now using tag with simple theme. It shows two select-list fine, but if I click the button to move the items, it doesn't work. Any clue can help me? Now I am trying to write a double-select with JQury & HTML. Thank you in advance. Regards, Mead

Have you ever used InputConfig annotation?

2010-11-05 Thread Alfredo Manuel Osorio Martinez
Hello, By looking at DefaultWorkflowInterceptor I saw an annotation that I didn't know existed. I am talking about: com.opensymphony.xwork2.interceptor.annotations.InputConfig I think it can be used for input repopulation and can be used as an alternative to Preparable and . What surprised me w

How to pass date from action to custom jsp tag?

2010-11-05 Thread holod
Hello, I want to create simple dummy tag. I have an action: class MyAction extends ActionSupport{ /** Some code*/ public Department getRoot(){ /** Some code foes here...*/ return departmentInstance; } } a tag: <%...@tag language="java" pageEncoding="UTF-8" body-content="empty" %

Re: Struts Tiles Problem

2010-11-05 Thread Rafael Medeiros
How to use plugin-tiles in struts 1.3.8: *web.xml* action org.apache.struts.action.ActionServlet config /WEB-INF/config/struts-config.xml, /WEB-INF/config/struts-config-manter-usuario

Re: Struts Tiles Problem

2010-11-05 Thread Dave Newton
Is the Tiles plugin not required for S1.3? It's been several years since I've used Struts 1 (I hope you're not using it for a new project?) Dave On Nov 5, 2010 1:05 PM, "Andy T" wrote: > Hi All, > > I'm having a bit of trouble trying to get my tiles to work with Struts > and wondered if anyone co

Struts Tiles Problem

2010-11-05 Thread Andy T
Hi All, I'm having a bit of trouble trying to get my tiles to work with Struts and wondered if anyone could help. The relevant files are shown below: Web.xml [code] http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://jav

Re: how does the namespace work in struts

2010-11-05 Thread Edward Seager
Hi, I've tried to answer your questions below based on my interpretation of the documentation. On Fri, Nov 5, 2010 at 8:33 AM, maven apache wrote: > I meet some problem when I try to learn the namespace of struts2,I am using > struts-2.2.1. > > After read the docs at: > http://struts.apache.org

Re: UpDownSelect & JPA

2010-11-05 Thread Nick Broadhurst
Thanks guys! String setup was legacy for single select which worked fine. Select is populated with entity list so will re-work form entity to have select list entity as property and go from there. Cheers! On Nov 5, 2010 6:02 AM, "Maurizio Cucchiara" wrote: > You should re-shape your DB design IMHO

Re: how does the namespace work in struts

2010-11-05 Thread Maurizio Cucchiara
In this case you could interface to ActionMapping through url tag (http://struts.apache.org/2.2.1/docs/url.html). 2010/11/5 maven apache : > 2010/11/5 Maurizio Cucchiara > >> Note that without S2 tag you will not appreciate S2 potential. >> > So I wonder if the web ui are built by some javascrip

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
2010/11/5 Maurizio Cucchiara > Note that without S2 tag you will not appreciate S2 potential. > So I wonder if the web ui are built by some javascript framework for exmaple the ext -we used to build a form by the exe library: var form=new *Ext*.*form*.FormPanel({}); And the form are sub

Re: how does the namespace work in struts

2010-11-05 Thread Maurizio Cucchiara
Note that without S2 tag you will not appreciate S2 potential. Furthermore they are not hard to learn (take a look at http://struts.apache.org/2.2.1/docs/tag-reference.html) 2010/11/5 maven apache : > :) > > In fact the reason I do not want to use tag now is that I do not want > everything done by

Re: UpDownSelect & JPA

2010-11-05 Thread Maurizio Cucchiara
You should re-shape your DB design IMHO. If you expect multiple values for an entity property why do you declare as a plain string? You should consider to represent as at least an integer array (or even as an entity). 2010/11/5 Nick Broadhurst : > Hi All, > > I am using the struts2 updownselect f

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
:) In fact the reason I do not want to use tag now is that I do not want everything done by the framework,since I am new in struts2,so I want to learn struts step by step,I always thought that unless we know how the framework work we can not take the most advantage of it. When I know the work me

Re: how does the namespace work in struts

2010-11-05 Thread Maurizio Cucchiara
Struts tags are not mandatory in order to deploy an application, but as Li suggested make your life easier :) 2010/11/5 maven apache : > Thanks for all your guys reply. > > That's to say I have no choice but using the struts tag if I decide to use > the struts?? > -- Maurizio Cucchiara

Re: how does the namespace work in struts

2010-11-05 Thread maven apache
Thanks for all your guys reply. That's to say I have no choice but using the struts tag if I decide to use the struts?? 2010/11/5 Li Ying > >> > > This HTML code, will post your form to the RELATIVE path [space/register]. > So, the ABSOLUTE path which is requested will depend on the current >

Re: how does the namespace work in struts

2010-11-05 Thread Li Ying
>> This HTML code, will post your form to the RELATIVE path [space/register]. So, the ABSOLUTE path which is requested will depend on the current URL of this page. If ABSOLUTE path is not right, no doubt struts2 can not map it to a right namespace/action. >> I will get a 404 error if I set t

Re: how does the namespace work in struts

2010-11-05 Thread Li Ying
>> Are you rendering html code by your self? Don't do this. Try Struts2's tag lib instead. Example: The tag lib will convert the namespace/action to a valid URL for you. And then,when you submit this form, on the server side, struts2 will map your request URL to an action. See: http://strut

how does the namespace work in struts

2010-11-05 Thread maven apache
I meet some problem when I try to learn the namespace of struts2,I am using struts-2.2.1. After read the docs at: http://struts.apache.org/2.2.1/docs/namespace-configuration.html I am confused for the following reason: The example: greeting.jsp bar1.jsp