Tiles: how to get definition name ?

2009-06-02 Thread boraldo
I have tiles.xml file where I have definitions. All these definitions are inherited from base definition that includes title page. I want to write in this page some text depending on what definition it was. Is it possible ? -- View this message in context: http://www.nabble.com/Tiles%3A-how-to-

How to make json plugin see SMD methods ?

2009-04-02 Thread boraldo
I use Struts 2 with json-plugin 0.33 I have the following in my js: dojo.require("dojo.rpc.*"); var service = new dojo.rpc.JsonService("${url}"); var defered = service.go(); defered.addCallback(callback); go is method in my action that corresponds to ${url} and

Float conversion: requires comma as floating point symbol.

2009-04-01 Thread boraldo
I have a float field on my form. When I type 1.1 (point as floating point symbol) it shows conversion error java.lang.NoSuchMethodException: setPrice([Ljava.lang.String;) But I do have a method public void setPrice(Float price) { this.price = price; } If I type 1,1 (comma as f

Re: How to avoid validation if request was done by GET method?

2009-03-26 Thread boraldo
Do I understand properly that ActionSupport.validate method that you used here performs the same validation as validation interceptor ? How can I see if there were validation errors ? benjamin haimerl wrote: > > hi boraldo > > a very simple way should be: &g

How to avoid validation if request was done by GET method?

2009-03-25 Thread boraldo
I have a form. And I want to have one url for form itself and for submitting it. Controller should look at method and if it is GET, show form, if POST - make validations and so on. How can I do it ? -- View this message in context: http://www.nabble.com/How-to-avoid-validation-if-request-was-do

s:textfield with value attribute

2009-03-19 Thread boraldo
I thought that this attribute means only initial value, but when I submitted my form with validation errors, on the redisplayed form I saw again that value, not entered by me. What for this attribute then ? And how can I set just initial value for my form? -- View this message in context: http:

validation: how to make int and double validations work ?

2009-03-15 Thread boraldo
Say I want to validate field number. This is a snippet from MyAction-validation.xml qwe There are 2 cases. 1) If number is field of class String then this validation doesn't work at all 2) If number is field of type int then this validation doesn't work a

Re: s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
eal if you want to keep your model carefully > isolated from your UI but my own designs are a little less pure than that. > jk > > On Wed, Mar 11, 2009 at 10:05 AM, boraldo wrote: > >> >> When I use that 2 components in my form I need to set attributes >&g

s:radio and s:checkboxlist - how to customize listValue property.

2009-03-11 Thread boraldo
When I use that 2 components in my form I need to set attributes listValue and listKey. That attributes as I understand require a field of a bean that is a member of collection represented by list attribute. Example: That means: 1) there will be one radiobutton for each element of collect

Form validation: how can khow in jsp that my action validation failed?

2009-02-27 Thread boraldo
I need output special info in JSP if validation failed. How can I do it? ActionSupport has method hasActionErrors. I need smth like that for JSP. -- View this message in context: http://www.nabble.com/Form-validation%3A-how-can-khow-in-jsp-that-my-action-validation-failed--tp22250234p22250234.ht

Dojo plugin: sx:bind doesn't work in the rerendered div

2009-02-23 Thread boraldo
My problem is that I can't make sx:bind work if it lays in the div that was rerendered using another sx:bind. Here is short example. main.jsp: <%@ include file="../header.jsp" %> myAction.jsp: <%@ include file="../header.jsp" %> header.jsp <%@ page contentType="text/html;charset=UTF-8

Dojo plugin: disabled attribute doesn't work for sx:button

2009-02-23 Thread boraldo
I use struts 2.1.6 with dojo plugin. I written the following in JSP. When I looked at the page I saw that Usual button is disabled, but sx:button is enabled. So what does attribute disabled mean for sx:button ? -- View this message in context: http://www.nabble.com/D