Dynamic form fields with s:div and ajax

2008-09-02 Thread Kropp, Henning
Hello, I am trying a common scenario, where I want to dynamically create form fields and either add or remove some fields. The fields are a List of objects. I using the following approach described in short: AddObjectAction: ListMyObject myObjectList; prepare(){if == null (3x)

Re: Dynamic form fields with s:div and ajax

2008-09-02 Thread Kropp, Henning
Hello Gainty, thanks for your reply and effort! I do specify the href as s:url id=getListOfObjects action=addObject /. Sorry I left that out. This calls the AddObjectAction, which populates the List of objects in the prepare method. This works greate! But I simply cant target the div with

javascript in returned jsp through xhr

2008-08-16 Thread Kropp, Henning
Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine,

Re: javascript in returned jsp through xhr

2008-08-16 Thread Kropp, Henning
---BeginMessage--- Dear Gainty, vielen Dank for your reply. I am very sorry but I cant supply you with a url. What I load into the div is the following: %@ include file=/common/taglibs.jsp% s:form id=traitForm method=post s:textfield id=form_start theme=xhtml cssClass=text medium /

Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
Hi, I am trying to implement a hibernate UserType for all the monetary amounts in my application. I follow the example given in Manning - Java Persistence with Hibernate Chapter 5.3 . I am having difficulties to set and retrieve the value from a jsp due to a lack of understanding how this is

Re: Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
Lukasz Lenart schrieb: ( also tried: s:textfield key=bid.amount.amount / ) This is correct public Monetary getAmount() { return amount; } and Monetary beeing: public class Monetary implements Serializable{ private final BigDecimal amount; private final Currency currency;

Re: [OT] What do you code today?

2008-04-07 Thread Kropp, Henning
Wes Wannemacher schrieb: I've been quiet on this one, but since I finally had a breakthrough today, I feel like talking about it :) I started a pet project that I've been toying around in my head for a while. As a parent, I coach a few elementary and junior high sports. It is a volunteer thing,

Re: About Message Icons

2008-04-01 Thread Kropp, Henning
Chen Chunwei schrieb: Hi all, Is there any tag can be used to display message icons? I mean icons like alert, error, info and etc. Talos Appfuse has implemented it in a way I think is very nice. Might consider to check it out. kropp

Re: Dojo not working in Struts2.

2008-03-27 Thread Kropp, Henning
Hi Sharath, I am not quit sure, but I think it might help if you simply remove the s:head / tag. You see dojo is already configured inside of struts (inside the core jar and static folder or so) to be used with it's tags http://struts.apache.org/2.x/docs/tag-reference.html . Since you are not

ParameterIntercepter throws unexpected Exception on parameter

2008-03-06 Thread Kropp, Henning
Hi List, the ParameterIntercepter throws the following exception at my page: ERROR [btpool0-1] ParametersInterceptor.setParameters(204) | ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.regi ster' on 'class com.webapp.action.SignupAction: Error setting

Re: [struts] Being driven mad by the ParametersInterceptor

2008-03-06 Thread Kropp, Henning
Dale Newfield schrieb: Jonny Cavell wrote: So that brings me back to the original problem - getting all these Error setting expression 'xxx' with value '[Ljava.lang.String;@19a82ee' messages for every single parameter that doesn't have an associated setter method on the action. How do I stop

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
Dale Newfield schrieb: Kropp, Henning wrote: I figured it out. I used s:set/ for this. Thanks. s:iterator value=model.list s:set name=value s:property / /s:set custom:tag attr=${value} / /s:iterator That will only work if the value you're trying to pass

Re: [struts] parameter to custom tag

2008-02-28 Thread Kropp, Henning
Thank you Dale! Dale Newfield schrieb: Kropp, Henning wrote: I must add that s:set printed out the string as well. I am not quit sure if its supposed to, but it did. I glossed over this--I wouldn't use s:set here, but rather c:set. Neither one should print the value (are you sure you didn't

Re: parameter to custom tag

2008-02-27 Thread Kropp, Henning
Hi, I figured it out. I used s:set/ for this. Thanks. s:iterator value=model.list s:set name=value s:property / /s:set custom:tag attr=${value} / /s:iterator regards Kropp, Henning schrieb: Hi List, I am new to struts2. I iterate over a list of strings

Re: localization

2007-12-03 Thread Kropp, Henning
This would be the place to look for: http://struts.apache.org/2.x/docs/i18n-interceptor.html btw... There are some broken links at http://struts.apache.org/2.x/docs/localization.html Especially the link to sitemesh plugin ought to be: http://struts.apache.org/2.x/docs/sitemesh-plugin.html