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-
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
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
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
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
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:
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
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
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
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
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
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
12 matches
Mail list logo