Re: [S2] why is javascript executed before DOM is updated

2008-10-21 Thread lbastil
#x27;re sure it's only s:submit that has the problem and s:div is > okay, have the submit publish a topic and have a s:div subscribe and > perform the request itself >- patch the widget in struts 2.0 with the same change as in 2.1, and > build your own dojo release. >

Re: Struts2: Custom Validation, message from property file

2008-10-21 Thread lbastil
bastil, > try getText() method inside Your action. > Your action needs to extend ActionSupport. > > Best greetings, > Paweł Wielgus. > > > 2008/10/20 lbastil <[EMAIL PROTECTED]>: >> >> I have to use Custom Validation and set field errors like: >> add

Struts2: Custom Validation, message from property file

2008-10-20 Thread lbastil
I have to use Custom Validation and set field errors like: addFieldError("", "http://www.nabble.com/Struts2%3A-Custom-Validation%2C-message-from-property-file-tp20068036p20068036.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] checkboxes in each row of table - set values in action

2008-04-07 Thread lbastil
here 'userCollection' is the name > of the Collection property on your action, index comes from the iterator > and userProperty is the property to bind to. > > L. > > lbastil wrote: >> Thank you for reply! >> >> I just wonder: >> >>

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread lbastil
within iterator is bound to permission properties of users in the iterated Collection. This does not matter, it should work the same as for single user object? Thank you, Basti Laurie Harper wrote: > > lbastil wrote: >> Hello, >> >> I have the following problem: &

[S2] checkboxes in each row of table - set values in action

2008-04-02 Thread lbastil
Hello, I have the following problem: in action i have a collection of class User each class User have different attributes, one is: boolean permission in JSP I use struts 2 iterator tag to iterate the User Objects. For each User entry I create one row in table. for displaying/changing the boole

Re: Custom Tags for Struts2

2008-02-12 Thread lbastil
Is there any complete Howto or Tutorial right now on this issue? Should be really of interest ... Thank you, Basti Jeromy Evans - Blue Sky Minds wrote: > > Varun Narang wrote: >> Hello all, >> I want to get started with the customzied tag writing for Struts2. >> I was able to find out ftl fil

[Struts2.011] Best approach for limited view

2008-02-07 Thread lbastil
Please give me advices what would be the best approach in the struts 2 world to realize a limited view (authorization). In struts 1 I would have created a simple tag which is able to render it childs dependent on authorization of user, something like: ... some content ... Is there a better /

Re: [S2] why is javascript executed before DOM is updated

2007-12-13 Thread lbastil
Is this the WW-1951 - issue? And if so, is there any workaround for 2.0.11 release? Thank you, basti lbastil wrote: > > I have a serious problem with an ajax submit. > > the scenario is the following: > > I submit a form with ajax submit button and I want to updat

Re: New to Struts

2007-12-13 Thread lbastil
I would say for some reasons it could be even advantage to not know struts1 and directly start with struts2. A very good resource beside the available tutorials is: http://www.infoq.com/minibooks/starting-struts2 (or even better, you buy the new book) Regards, basti aum strut wrote: > > Hi Al

[S2] why is javascript executed before DOM is updated

2007-12-13 Thread lbastil
I have a serious problem with an ajax submit. the scenario is the following: I submit a form with ajax submit button and I want to update the parent div (targets="...") The original content of this div and the result content contains a

Re: [s2] conditional validation

2007-11-22 Thread lbastil
in detail? Thank you, Basti newton.dave wrote: > > If you're doing validation differently based on the > action then trying to do validation based on the model > doesn't seem like a good idea: you're not trying to > validate the model the same way for every ac

Re: [s2] conditional validation

2007-11-22 Thread lbastil
Could someone please state whether I have error in reasoning here or not? ... even a "I would think its not possible with build in features yet" would help me. Thank you a lot, Basti lbastil wrote: > > OK, sorry, I may have to describe it a little more in detail or I did not

Re: [s2] conditional validation

2007-11-21 Thread lbastil
otations, AFAIK you can set the > "validateAnnotatedMethodOnly" attribute on the > validation interceptor [1] and annotate methods in > your action class as normal. Haven't done that myself, > so I don't know if it works or not. > > d. > > [1] > h

Re: [s2] conditional validation

2007-11-20 Thread lbastil
them in a couple > different ways, the easiest may be to just create two > action mappings, one for each method. > > d. > > --- lbastil <[EMAIL PROTECTED]> wrote: > >> >> Is there any way with the build in declarative >> validation possibilities in

[s2] conditional validation

2007-11-20 Thread lbastil
Is there any way with the build in declarative validation possibilities in struts 2 (annotations, xml) to do something like conditional validation in the following sense: in the action class I have a model class, where on action method one i want to validate a special subset of model attributes a

RE: Form Formatting

2007-11-19 Thread lbastil
Do had a look at: http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component it may be helpfull. Basti Hernandez, David wrote: > > > Yeah, I wanted to keep the label attribute, I mean it's not a big deal > to add it myself. I was just wondering if there was some shortcut I was > m

Re: [S2] Help for Ajax Tabbed Panel

2007-11-13 Thread lbastil
I think you have to use when using ajaxed remote divs. Try something like: ... Regards, basti Raghuveer Rawat wrote: > > Hi, > I am using Struts2, Tile2, Spring2, Display Tag. > I am implementing tabbed panel and all the tabs make remote calls. Each > Tab > will contain a table wh

Re: [s2] templating approach / own tag?

2007-11-09 Thread lbastil
27;re opposed to using tiles, > particularly if you're already invested in it. > > d. > > --- lbastil <[EMAIL PROTECTED]> wrote: > >> >> Thank you for this hint, but in this case I don't >> think so. >> >> I am already use tiles fo

Re: [s2] templating approach / own tag?

2007-11-02 Thread lbastil
can apply parametrized? Thank you, basti Antonio Petrelli-3 wrote: > > 2007/11/2, lbastil <[EMAIL PROTECTED]>: >> >> >> Hi, >> >> I want to archive the following: >> >> I noticed in my page code often this redundant struc

[s2] templating approach / own tag?

2007-11-02 Thread lbastil
Hi, I want to archive the following: I noticed in my page code often this redundant structure: (dynamic parts in []) [Header Section Name] [ ... various different content, tables, ... and so on ] Now I would like to create some parameterized template, something I could call like: (pseudoc

[s2] validation on method level in model driven / visitor field validator

2007-10-31 Thread lbastil
I know there are several threads about this topic, but I found no solution for my case: I have model-driven action: model ... getModel() ... return model; and some actions, lets say: actionA() ... actionB() ... Now the following facts: I have to use visitor field validator for the Mod

Re: [s2] forward to another action?

2007-10-30 Thread lbastil
to catch as much actions with one action configuration? (*_*_*) I read about this as "best practice" in some struts documentation ... Would you recommend from your experience other style? Thanks again, basti newton.dave wrote: > > --- lbastil <[EMAIL PROTECTED]> wrote: >

Re: [s2] forward to another action?

2007-10-30 Thread lbastil
ActionRedirectResult newton.dave wrote: > > Action chaining is probably the closest you'd get > out-of-the-box. > > http://struts.apache.org/2.x/docs/chain-result.html > http://struts.apache.org/2.x/docs/action-chaining.html > > Not a particularly good practice, however.

[s2] forward to another action?

2007-10-29 Thread lbastil
I know about the possibility to redirect to another action by result type "redirect-action" But this does a redirect (HTTP 302). Is the same possible with a "forward" instead of redirect? Thank you very much in advance, basti -- View this message in context: http://www.nabble.com/-s2--forward

Re: [S2] validation annotation problem

2007-10-29 Thread lbastil
please help on this issue. does nobody have any hints? Thank you in advance, basti lbastil wrote: > > I use model driven actions and want to use validation by annotation. > > so I have somethings like: > > @Validation > public Class

Re: [s2] Problems with lazy loading (open session in view approach)

2007-10-26 Thread lbastil
manually (which means: action have knowledge about hibernate ... bad?) b) adding some service method which loads the field / collections explicitely c) some other? Thank you, Basti lbastil wrote: > > In our application we need to lazy load fields in the view. > > We have config

[s2] Problems with lazy loading (open session in view approach)

2007-10-26 Thread lbastil
In our application we need to lazy load fields in the view. We have configured springs OpenSessionInViewFilter. If we use lazy loading from a normal JSP View, everything works fine. But on our View we also have AJAX tabbedpane with remote div's. Now the problem is: within the content of this r

[S2] validation annotation problem

2007-10-24 Thread lbastil
I use model driven actions and want to use validation by annotation. so I have somethings like: @Validation public Class ...Action implements ...{ ... @VisitorFieldValidator(message = "", appendPrefix = false) public TestModel getModel() { return testModel; } ... in the m

Re: [Struts2] tabbed panel: tab which directly calls other view (like anchor)?

2007-10-19 Thread lbastil
Does nobody have comment about it? anybody who did something similar? Thank you in advance. lbastil wrote: > > Hello, > > I have the following requirement I would like to realize and I ask myself > whether it is possible with struts2 tabbed pane (right now after some >

tabbed panel: tab which directly calls other view (like anchor)?

2007-10-17 Thread lbastil
Hello, I have the following requirement I would like to realize and I ask myself whether it is possible with struts2 tabbed pane (right now after some attempts I was not successful): I have hierarchical data which are shown in tabs. Sample: have Collection of now presentation of that is the