[S2] SiteMesh: let the user choose to see a page undecorated

2007-12-04 Thread setecastronomy
I'm using Struts 2 with siteMesh. I developed a simple application which can be summerized in a page form fro making different kinds of query and a small number of result pages. I want to give the user the possibility, for some result pages, to choose to see them undecorated. It should work like

[S2] formatting informations in properties files

2007-10-02 Thread setecastronomy
In my jsp pages I often need to limit the number of decimals and I learnt how to create a properties file with the same name of the action and use the s:text tag: I ended up with many properties files which have most the same formatting informations. I wonder if there is a smarter and centrali

If Tag: testing for an enumerated value

2007-09-27 Thread setecastronomy
Somewhere I have the following enumeration public enum Interval { GENERIC, MONTH, YEAR; } The action has the following method: public Interval getInterval() {return iInterval;} I supposed I could test the enumerated value inside my jsp in the following way: anno

[S2] DateTimePicker and css

2007-09-20 Thread setecastronomy
I use some css inside the web application I'm developing with Struts 2. In one form I have some dateTimePicker fields. Unfortunately when I open a calendar it is not formatted very well due to the fact that the table margin and cell padding set in the css are different from the default one for di

[S2] can somebody help on DoubleSelect ?

2007-09-11 Thread setecastronomy
Some days ago I posted a message for a problem on the DoubleSelect but I received no answers. I retry again hoping to be more lucky. Here is the link to the original message: http://www.nabble.com/-S2--Doubleselect-inconsistent-if-using-%27back%27-button-tf4317705.html#a12294147 Doubleselect incon

[S2] Doubleselect inconsistent if using 'back' button

2007-08-23 Thread setecastronomy
I'm using Struts 2.0.6 I noticed the following behaviour of the doubleselect UI tag, present also in the Struts showcase. A non default item is choosen in the first select and something else is choosen in the linked select. After submit if one returns to the form page using the 'back' button in th

[S2] How to disable/hide ui components with javascript

2007-07-31 Thread setecastronomy
Hello, I'm moving the first steps with S2. I'm going to build a form with many input components. Some of them should be disabled or hidden based upon the selection of a radio button. In a pure jsp scenario where html tags are used I can link some javascript function which uses style.display = 'non

DateTimePicker doesn't work with siteMesh

2007-06-21 Thread setecastronomy
I would like to share the following experience. I decided to make some experiments on the dateTimePicker tag on my test site where I also use Sitemesh with a very complex layout. On IE 6 there was no way to see the calendar window and pushing the small calendar icon the layout of the page was par

Investigating the ValueStack

2007-06-20 Thread setecastronomy
In order to better understand the ValueStack I wrote the following code to explore it: ValueStack myStack = ActionContext.getContext().getValueStack(); out.println("Stack size " + myStack.size() + ""); java.util.Map myMap = myStack.getContext(); for (Object pollo : myMap.k

Best practices with struts 2.0

2007-06-15 Thread setecastronomy
I'm new to Struts 2.0 and I have to difficulties in finding good tutorials. I have many doubts on the best way to perform some actions. For example I have the following line inside one jsp page: It accesses a property in the action of integer type. They are minutes but I wuold like to represe