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 Users Mailing List
Subject: create own annotation

Hi all,

I'm using struts2 annotation validation mecanisme, I have a problem with
credit card validation, I should develop my own annotation for this issue,
someone can help me to do that, or explain me the steps ?

thanks

-- 


Cordialement

Mohamed

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 actionProxy, the 
actionInvocation, etc.

The question is, how, from the test class can I get hold of the json produced 
by the JSON result?

Thanks

Jim


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"; %>

2011/1/6 Jim Talbut :
> Ah, sort of.
> Actually WW-3554 stopped me working that one out :)
>
> Now I've moved the JsonPlugin.tld to my own WEB-INF I can make it work, but 
> not using the syntax you used.
>
> If I have:
> <%...@taglib prefix="json" uri="/struts-json-tags" %>
> <%...@taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> 
>
> I get: PWC6236: According to TLD or attribute directive in tag file, 
> attribute value does not accept any expressions
>
> But if I just put ${json:serialize(orderLines)} on its own it does output the 
> JSON.
>
> I'm new to JSTL, do I have to do something in order to use an OGNL-based 
> expression with c:out?
>
>
> Thanks
>
> Jim
>
> -Original Message-
> From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com]
> Sent: 05 January 2011 19:23
> To: Struts Users Mailing List
> Subject: Re: JSON Property
>
> Did this answer your question?
> https://issues.apache.org/jira/browse/WW-3553
>
> 2011/1/5 Chris Pratt :
>> I'm not sure how to make it work, but it would totally rock if we could make
>> the "encode" attribute of the  tag extensible by plug-in's.
>> That way the standard tag could possibly supply encode="html" & encode="js"
>> and the JSON plug-in could add encode="json" and other plug-ins could extend
>> it in ways they need.  Just a wild thought.
>>  (*Chris*)
>>
>> On Wed, Jan 5, 2011 at 1:22 AM, Steven Yang  wrote:
>>
>>> I think its "bundled" with S2 but as a separate jar, so dont get mistaken.
>>>
>>> i am a bit reluctant to share my code, which is old and bad, not that
>>> because i am cheap or anything, its because there are better and
>>> well-thought code out there (as in JSON plug in) and my code has lots of
>>> things tied to my project (bad design..).
>>>
>>> and you know what i just checked back on my tag code. I dont think i am
>>> doing anything much different from what your doing. I siimply copied the
>>> s:property tag code and replaced the output part of the code.
>>>
>>> here is the part i replaced.(my tag mimics the "property" tag)
>>> try {
>>>            if (actualValue != null) {
>>>                if (!(actualValue instanceof String)) { //if String then
>>> treated its as if in JSON format
>>>                    actualValue = JSONUtil.toJSON(actualValue);
>>>                }
>>>                writer.write(actualValue.toString());
>>>            }
>>>            else if (defaultValue != null) {
>>>                writer.write(defaultValue);
>>>            }
>>>        }
>>>        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.cucchi...@gmail.com> wrote:
>>>
>>> > The json plugin is bundled with S2, because previously was on google
>>> > code, and one had to download separately
>>> >
>>> > 2011/1/5 Jim Talbut :
>>> > > You are both right.
>>> > >
>>> > > The tag that I'm using at the moment (which isn't fully tested at all,
>>> > got some data issues to sort out first) is just the property tag with the
>>> > following modification:
>>> > >        Object objectValue = getStack().findValue(value,
>>> > throwExceptionOnELFailure);
>>> > >        try {
>>> > >            actualValue = JSONUtil.serialize( objectValue );
>>> > >        } catch( JSONException ex ) {
>>> > >            LOG.error("Could not convert {} to a JSON serialized value:
>>> > {}", objectValue, ex);
>>> > >        }
>>> > >
>>> > > Given that I'm using a utility function from the JSON plugin it does
>>> seem
>>> > to make sense to have that plugin provide this tag.
>>> > >
>>> > > I've filed a feature request against it (
>>> > https://iss

RE: JSON Property

2011-01-06 Thread Jim Talbut
Ah, sort of.
Actually WW-3554 stopped me working that one out :)

Now I've moved the JsonPlugin.tld to my own WEB-INF I can make it work, but not 
using the syntax you used.

If I have:
<%...@taglib prefix="json" uri="/struts-json-tags" %>
<%...@taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>


I get: PWC6236: According to TLD or attribute directive in tag file, attribute 
value does not accept any expressions

But if I just put ${json:serialize(orderLines)} on its own it does output the 
JSON.

I'm new to JSTL, do I have to do something in order to use an OGNL-based 
expression with c:out?


Thanks

Jim

-Original Message-
From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] 
Sent: 05 January 2011 19:23
To: Struts Users Mailing List
Subject: Re: JSON Property

Did this answer your question?
https://issues.apache.org/jira/browse/WW-3553

2011/1/5 Chris Pratt :
> I'm not sure how to make it work, but it would totally rock if we could make
> the "encode" attribute of the  tag extensible by plug-in's.
> That way the standard tag could possibly supply encode="html" & encode="js"
> and the JSON plug-in could add encode="json" and other plug-ins could extend
> it in ways they need.  Just a wild thought.
>  (*Chris*)
>
> On Wed, Jan 5, 2011 at 1:22 AM, Steven Yang  wrote:
>
>> I think its "bundled" with S2 but as a separate jar, so dont get mistaken.
>>
>> i am a bit reluctant to share my code, which is old and bad, not that
>> because i am cheap or anything, its because there are better and
>> well-thought code out there (as in JSON plug in) and my code has lots of
>> things tied to my project (bad design..).
>>
>> and you know what i just checked back on my tag code. I dont think i am
>> doing anything much different from what your doing. I siimply copied the
>> s:property tag code and replaced the output part of the code.
>>
>> here is the part i replaced.(my tag mimics the "property" tag)
>> try {
>>            if (actualValue != null) {
>>                if (!(actualValue instanceof String)) { //if String then
>> treated its as if in JSON format
>>                    actualValue = JSONUtil.toJSON(actualValue);
>>                }
>>                writer.write(actualValue.toString());
>>            }
>>            else if (defaultValue != null) {
>>                writer.write(defaultValue);
>>            }
>>        }
>>        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.cucchi...@gmail.com> wrote:
>>
>> > The json plugin is bundled with S2, because previously was on google
>> > code, and one had to download separately
>> >
>> > 2011/1/5 Jim Talbut :
>> > > You are both right.
>> > >
>> > > The tag that I'm using at the moment (which isn't fully tested at all,
>> > got some data issues to sort out first) is just the property tag with the
>> > following modification:
>> > >        Object objectValue = getStack().findValue(value,
>> > throwExceptionOnELFailure);
>> > >        try {
>> > >            actualValue = JSONUtil.serialize( objectValue );
>> > >        } catch( JSONException ex ) {
>> > >            LOG.error("Could not convert {} to a JSON serialized value:
>> > {}", objectValue, ex);
>> > >        }
>> > >
>> > > Given that I'm using a utility function from the JSON plugin it does
>> seem
>> > to make sense to have that plugin provide this tag.
>> > >
>> > > I've filed a feature request against it (
>> > https://issues.apache.org/jira/browse/WW-3553), but it doesn't seem to
>> be
>> > a very active project.
>> > > I'm also confused by the fact that this page
>> > https://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plugin
>> > is bundled with Struts, although the JSONUtil class is not in
>> struts-core.
>> > >
>> > > Steven, if you have a more complete and tested tag could you be
>> persuaded
>> > to add it to the plugin, or just add what you've got to the bug?
>> > >
>> > > Jim
>> > >
>> > >
>> > > -Original Message-
>> > > From: Chris Pratt [mailto:thec

RE: JSON Property

2011-01-05 Thread Jim Talbut
You are both right.

The tag that I'm using at the moment (which isn't fully tested at all, got some 
data issues to sort out first) is just the property tag with the following 
modification:
Object objectValue = getStack().findValue(value, 
throwExceptionOnELFailure);
try {
actualValue = JSONUtil.serialize( objectValue );
} catch( JSONException ex ) {
LOG.error("Could not convert {} to a JSON serialized value: {}", 
objectValue, ex);
}

Given that I'm using a utility function from the JSON plugin it does seem to 
make sense to have that plugin provide this tag.

I've filed a feature request against it 
(https://issues.apache.org/jira/browse/WW-3553), but it doesn't seem to be a 
very active project.
I'm also confused by the fact that this page 
https://cwiki.apache.org/S2PLUGINS/json-plugin.html says that the plugin is 
bundled with Struts, although the JSONUtil class is not in struts-core.

Steven, if you have a more complete and tested tag could you be persuaded to 
add it to the plugin, or just add what you've got to the bug?

Jim


-Original Message-
From: Chris Pratt [mailto:thechrispr...@gmail.com] 
Sent: 05 January 2011 02:32
To: Struts Users Mailing List
Subject: Re: JSON Property

The plugin has several things it can do, from parsing JSON to generating
JSON results.  And yes, the default is to JSON up the whole Action, but you
can have it objectify any object you want.  And it is the collection point
for JSON support in Struts 2.
  (*Chris*)

On Tue, Jan 4, 2011 at 6:12 PM, Steven Yang  wrote:

> I might be wrong here. As I remember JSON Plugin turns the whole action
> into
> one single JSON object. I dont believe its what Jim wants, but most
> definitely there must be something Jim can use in the Plugin to transform
> his Java Objects to JSON.
>
> On Wed, Jan 5, 2011 at 2:47 AM, Chris Pratt 
> wrote:
>
> > The "obvious" place to me would seem to be the Struts 2 JSON Plug-in,
> since
> > it handles 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 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 only be the JSP that knows that
> it
> > > needs JSON.
> > > Obviously if one is dealing with AJAX one has no choice but to have
> JSON
> > > actions, but I'm not.
> > >
> > > I've now written a JSON tag, but given that Steven Yang and I have now
> > > written something to do the same job it seems to me that there ought to
> > be
> > > some common entity for providing it (i.e. I think it should be in
> > > struts-json-tags).
> > >
> > > Jim
> > >
> > > -Original Message-
> > > From: Chris Pratt [mailto:thechrispr...@gmail.com]
> > > Sent: 04 January 2011 15:54
> > > To: Struts Users Mailing List
> > > Subject: Re: JSON Property
> > >
> > > You might also need the executeResult="true" attribute on the
> 
> > > tag.
> > >  (*Chris*)
> > >
> > > On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin
> > > wrote:
> > >
> > > > > I don't want to use a separate roundtrip for loading the jqGrid for
> > > > two reasons:
> > > > > 1. I want to handle the contents of the grid, and additional
> fields,
> > > > in a single transaction.
> > > > > 2. It's inefficient and unnecessary.
> > > > > Obviously the first is the more important :)
> > > >
> > > >
> > > > I think you could do something like this in your jsp:
> > > >
> > > > "/>
> > > >
> > > > This would allow you to use the already-in-place json result type and
> > > > save you a lot of extra work.
> > > >
> > > >
> > > > -Beez
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > > For additional commands, e-mail: user-h...@struts.apache.org
> > > >
> > > >
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > >
> >
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 only be the JSP that knows that it needs JSON.
Obviously if one is dealing with AJAX one has no choice but to have JSON 
actions, but I'm not.

I've now written a JSON tag, but given that Steven Yang and I have now written 
something to do the same job it seems to me that there ought to be some common 
entity for providing it (i.e. I think it should be in struts-json-tags).

Jim

-Original Message-
From: Chris Pratt [mailto:thechrispr...@gmail.com] 
Sent: 04 January 2011 15:54
To: Struts Users Mailing List
Subject: Re: JSON Property

You might also need the executeResult="true" attribute on the 
tag.
  (*Chris*)

On Tue, Jan 4, 2011 at 7:06 AM, Biesbrock, Kevin
wrote:

> > I don't want to use a separate roundtrip for loading the jqGrid for
> two reasons:
> > 1. I want to handle the contents of the grid, and additional fields,
> in a single transaction.
> > 2. It's inefficient and unnecessary.
> > Obviously the first is the more important :)
>
>
> I think you could do something like this in your jsp:
>
> "/>
>
> This would allow you to use the already-in-place json result type and
> save you a lot of extra work.
>
>
> -Beez
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: JSON Property

2011-01-04 Thread Jim Talbut
I don't want to use a separate roundtrip for loading the jqGrid for two reasons:
1. I want to handle the contents of the grid, and additional fields, in a 
single transaction.
2. It's inefficient and unnecessary.
Obviously the first is the more important :)


-Original Message-
From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] 
Sent: 04 January 2011 02:10
To: Struts Users Mailing List
Subject: Re: JSON Property

Pardon me if I'm probably wrong, but why can't you use JSON action?
I mean, something like this:

[...] jQuery("#list2").jqGrid({ 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 reason I keep wanting to do it is to set up jqGrid data so that I can 
> have a parent record with children (the children being in the jqGrid and set 
> via JSON) submitted as a single entity (I typically put the JSON data into a 
> hidden field and then update it in the submit, but there are also other uses 
> for the JSON data, such as selection lists, that don't get updated).
>
> Jim
>
> 
> From: Aaron Brown [aa...@thebrownproject.com]
> Sent: 03 January 2011 13:11
> To: Struts Users Mailing List
> Subject: Re: JSON Property
>
> Have you considered using an include? You can call a json-result-type action
> with it or switch to some other fragment result if needed. 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 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 shouldn't need to know that I want
> the representation in JSON.
>>
>> I've started looking at creating an alternative tag to do the job, but it
> would be pretty much a complete copy of the property tag, but with an
> additional "escape"-type property to specify that the result should be JSON.
>> It's slightly more complicated than that because the normal escapes should
> be applied afterwards too.
>>
>> Question: Is this something that should be implemented in the base
> property tag as an enhancement to struts itself, or should I just copy the
> property tag and get on with my life?
>>
>> Thanks
>> Jim
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Maurizio Cucchiara

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: JSON Property

2011-01-03 Thread 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 reason I keep wanting to do it is to set up jqGrid data so that I can have 
a parent record with children (the children being in the jqGrid and set via 
JSON) submitted as a single entity (I typically put the JSON data into a hidden 
field and then update it in the submit, but there are also other uses for the 
JSON data, such as selection lists, that don't get updated).

Jim


From: Aaron Brown [aa...@thebrownproject.com]
Sent: 03 January 2011 13:11
To: Struts Users Mailing List
Subject: Re: JSON Property

Have you considered using an include? You can call a json-result-type action
with it or switch to some other fragment result if needed. 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 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 shouldn't need to know that I want
the representation in JSON.
>
> I've started looking at creating an alternative tag to do the job, but it
would be pretty much a complete copy of the property tag, but with an
additional "escape"-type property to specify that the result should be JSON.
> It's slightly more complicated than that because the normal escapes should
be applied afterwards too.
>
> Question: Is this something that should be implemented in the base
property tag as an enhancement to struts itself, or should I just copy the
property tag and get on with my life?
>
> Thanks
> Jim
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 shouldn't need to know that I want the 
representation in JSON.

I've started looking at creating an alternative tag to do the job, but it would 
be pretty much a complete copy of the property tag, but with an additional 
"escape"-type property to specify that the result should be JSON.
It's slightly more complicated than that because the normal escapes should be 
applied afterwards too.

Question: Is this something that should be implemented in the base property tag 
as an enhancement to struts itself, or should I just copy the property tag and 
get on with my life?

Thanks
Jim


RE: Dynamic values for rows attribute of s:textarea

2010-02-04 Thread Jim Talbut
That's it, thank you.



Jim

-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com] 
Sent: 04 February 2010 20:08
To: Struts Users Mailing List
Subject: Re: Dynamic values for rows attribute of s:textarea

If you're calculating your 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" 
> readonly="true" cols="80" rows="5" />
> 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 that and then trying to set 
> the rows="<%=len%>"
> Unfortunately that's against the DTD and struts blows up.
>
> Apart from a long series of ugly s:if elements is there any way to get a 
> dynamic rowcount?
>
> I may resort to use javascript, but that'd be quite a faff (these textareas 
> are in a series of forms generated by an iterator).
>
> Thanks
>
> Jim
>
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 that and then trying to set the 
rows="<%=len%>"
Unfortunately that's against the DTD and struts blows up.

Apart from a long series of ugly s:if elements is there any way to get a 
dynamic rowcount?

I may resort to use javascript, but that'd be quite a faff (these textareas are 
in a series of forms generated by an iterator).

Thanks

Jim



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


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 get the button in the right place next to the text box it should be within a 
div/span that gets positioned appropriately.

You can see what I'm talking about here: 
http://rapidshare.com/files/311917973/Untitled.jpg
(sorry about the faff just to get a little image)
The datepicker button should be in the same place as the "Enable" button for 
the Password control.

This is only a slight problem for me, because I'm quite happy to manage without 
the button:
button.ui-datepicker-trigger {
  display:none;
}

Thanks again

Jim

From: Lukasz Lenart [lukasz.len...@googlemail.com]
Sent: 25 November 2009 08:09
To: Struts Users Mailing List
Subject: Re: Dojo plugin alternatives?

Hi

Try JQuery plugin [1], soon it should be part of official distribution

[1] http://cwiki.apache.org/S2PLUGINS/2009/11/16/jquery-plugin-version-170.html


Regards
--
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 fix" 
(https://issues.apache.org/struts/browse/WW-3327) what is the intended 
alternative?

What I think would be useful would be a way of wrapping a div or span such that 
it appears in the correct place for a form component, I could then put any date 
picker I want into that div.
Is there a way to do this currently (without writing the theme-specific HTML by 
hand)?

Thanks

Jim


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 question, but I haven't seen an
answer.
This must be such a common requirement that there has to be a
recommended way to achieve it.

Thanks.

Jim

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org