Dojo plugin alternatives?

2009-11-25 Thread Jim Talbut
Hi, I need a date picker component. I started off by looking at the dojo plugin, but ran into the same problems as everyone else with Firefox 3.5.5 (in my case the datetimepicker value is not posted with the rest of the form values). Given that bugs on the dojo plugin are being closed as "won't

RE: Dojo plugin alternatives?

2009-11-25 Thread Jim Talbut
Ah, very nice, thanks. You need to do something to make that easier to find :) A slight problem with the datepicker from it: I use the css_xhtml theme with a simple vertical layout (labels on the left, right aligned). With this theme the button appears on the next line, hard over to the left. To

Inline editable grid view for use with struts 2?

2010-02-02 Thread Jim Talbut
Hi, I need an inline editable grid view that will be used in a struts 2 application. It'll be used to collect multiple rows of child data when adding a single parent row. Does anyone have any recommendations? Thanks Jim

Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Jim Talbut
Hi, I have: Sometimes I have a LOT of data to display in the box, other times I have none at all. I'd like the box to resize based on the amount of data. My best effort involved getting the length of requestDefinition (using s:set), calculating a decent row count based on t

RE: Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Jim Talbut
value with s:set and setting a variable called, "len" did you try the following - On Thu, Feb 4, 2010 at 2:27 PM, Jim Talbut wrote: > Hi, > > I have: >                     name="requestDefinition" labelSeparator="" labelposition="left" > reado

JSON Property

2011-01-03 Thread Jim Talbut
Hi, I keep needing to put the JSON equivalent of an expression into a JSP page to be used by client side javascript. This is done during the evaluation of the JSP, it's not AJAX. At the moment I'm doing it by creating a special "get" method on the action, but that's not nice - the action should

RE: JSON Property

2011-01-03 Thread Jim Talbut
d. Perhaps it's quick and dirty compared with creating a custom tag but it seems to me it would be a lot easier to implement. - Aaron On Jan 3, 2011 6:50 AM, "Jim Talbut" wrote: > Hi, > > I keep needing to put the JSON equivalent of an expression into a JSP page to be used

RE: JSON Property

2011-01-04 Thread Jim Talbut
id({ url:'YOUR_JSON_ACTION_URL', [...] 2011/1/3 Jim Talbut : > Yes, I thought about that, but it's even more work than creating a custom > "get" method and equally unreusable. > I've done this often enough that I think a custom tag is justified. > > The reas

RE: JSON Property

2011-01-04 Thread Jim Talbut
I could do that (as Aaron Brown suggested on Monday) but I don't already have actions that spit out the right JSON. Creating more actions would be more work than creating JSON getters. Creating either actions or special getters also seems wrong to me - it's the JSP that needs JSON and it should o

RE: JSON Property

2011-01-05 Thread Jim Talbut
dles all the other JSON duties for Struts 2. > > (*Chris*) > > > > On Tue, Jan 4, 2011 at 10:32 AM, Jim Talbut > > wrote: > > > > > I could do that (as Aaron Brown suggested on Monday) but I don't > already > > > have actions that spit o

RE: JSON Property

2011-01-06 Thread Jim Talbut
   } >>        catch (IOException e) { >>            LoggerUtil.BASE_LOGGER.info("error ocurred while writing json: >> " >> + actualValue, e); >>         } >> >> On Wed, Jan 5, 2011 at 4:59 PM, Maurizio Cucchiara < >> maurizio.cucch

RE: JSON Property

2011-01-07 Thread Jim Talbut
Brilliant, thanks. Jim -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: 06 January 2011 16:51 To: Struts Users Mailing List Subject: Re: JSON Property Try <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core";

How to test json output from json plugin?

2011-05-10 Thread Jim Talbut
Hi, I've got an action declared as: @Results( { @Result( name="success", type="json", params={ "root", "schools" } ) }) @Namespace("/json") @ParentPackage("json-default") public class SchoolSearchAction extends ActionSupport { and I have a test class that is able to get hold of the actionPro

RE: create own annotation

2011-05-11 Thread Jim Talbut
Don't miss out on just implementing a validation method directly in your action. Unless you are going to reuse the validation code is it worth the effort of writing an annotation? Jim -Original Message- From: Mohamed SIDI [mailto:mhm.s...@gmail.com] Sent: 11 May 2011 09:39 To: Struts Us

What is the correct way to set up options for a component?

2009-10-21 Thread Jim Talbut
Hi, Newbie question: I want to have an component on a jsp page, but the options to be displayed aren't relevant to the action that results in this page. So how do I get a collection containing the options onto the stack without doing so in the action? I've seen other people asking the same ques