example of rich internet applications (RIAs) using struts 2

2009-08-25 Thread Ernesto Reinaldo Barreiro
Hi,

I have been trying to find references to enterpise WEB applications, or Rich
Internet Applications, out there using struts2 but I have found
no references on struts 2 web site or in this mailing list. My apologies
if this information is available somewhere on the strust2 site or this
list and I somehow I just missed it.

Right now we are evaluating different technologies to be used for
WEB development at our company and struts2 is one of them (as we are
currently using struts 1 for development). In fact, one of the objectives of
the our quest is to select a Java WEB framework that allows us to easily
build Rich Internet Applications with lots of AJAX based widgets and AJAX
like functionality...

Any pointers to publicly available struts2 based RIA applications will be
welcome...

Best,

Ernesto


Re: example of rich internet applications (RIAs) using struts 2

2009-08-25 Thread Ernesto Reinaldo Barreiro
Hi Obinna,
Thanks for your answer...

I have seen and tried both the dojo plugin and the struts2-jquery-plugin in
an small showcase application I have built just to summarize (for internal
use) what is available for struts2 But to be sincere I'm not very
impressed about what they offer in terms of productivity and functionality
if you compare them with what you get using a component based frameworks
like Wicket.  Please, I have no intention to say that there is anything
wrong with those plugins, I'm a developer myself and I know how much energy
demands maintaining something... It is just that the way to work with them
seem to me unnatural after trying Wicket's AJAX implementation.

For instance, something I haven't found is a good free grid component
supporting AJAX navigation and advanced functionality like draggable,
resizable columns... Something like:

http://antilia.googlecode.com/svn/wiki/Grid.PNG
http://antilia.googlecode.com/svn/wiki/GridExport.PNG
http://antilia.googlecode.com/svn/wiki/Panels.PNG

So, I just was wondering what kind of tag-libraries, components, etc. People
use to build such applications...and how much effort was to build them...
and weather those applications where freely available just to see how do
they look and what kind of functionality I can expect to achieve...

Best,

Ernesto




2009/8/25 Obinna 

> I have used struts 2 for a number of RIAs but unfortunately none of them
> are
> public. In the past I used to use it with the dojo plugin, and samples for
> using that framework are available with the struts showcase, however
> support
> for that has been stopped and struts 2 is moving toward implementing a
> standard jquery plugin. At the moment there are two functional incarnations
> of a jquery ajax plugin at:
> http://code.google.com/p/struts2-jquery-plugin/and
> http://code.google.com/p/struts2-jquery/ which are in the process of
> getting
> merged very soon. Both have fairly extensive showcase sites and
> documentation.
>
> I also used struts 1 in the past, and general speaking, I've found the move
> from struts 1 to struts 2 nothing short of revolutionizing. With the
> current
> jquery ajax plugins (and the general power of jquery itself for
> non-componentized interface stuff), the applications I am producing now are
> quite impressive (if i may say so myself :) ) and rapid to develop.
>
> - Eric
>
> On Tue, Aug 25, 2009 at 1:27 PM, reiern70  wrote:
>
> >
> > Sorry for multiple post of the same question but I thought my message
> > didn't
> > make it to the list as I get
> > the following notification
> > ---
> > Hi. This is the deliver program at bjtu.edu.cn.
> > I'm afraid I wasn't able to deliver your message to the following
> > addresses.
> > This is a permanent error; I've given up. Sorry it didn't work out.
> >
> > 02211...@mail.bjtu.edu.cn
> > quota exceed
> > --- Attachment is a copy of the message.
> >
> > [这是服务器 bjtu.edu.cn 的投递程序返回的提示信息]
> >
> > 到下列地址的信件投递失败,对方服务器无法正常接受或者拒绝接受这封邮件,
> > 这是一个永久性的错误,服务器已经放弃继续投递。
> > 02211...@mail.bjtu.edu.cn
> >
> > 对方服务器返回错误提示:
> > quota exceed
> > --
> > [附件是您所发送信件的原件]
> > ---
> >
> > Does anyone has the same problem?
> >
> > Best.
> >
> > Ernesto
> >
> >
> > reiern70 wrote:
> > >
> > > Hi,
> > >
> > > I have been trying to find references to enterpise WEB applications, or
> > > Rich
> > > Internet Applications, out there using struts2 but I have found
> > > no references on struts 2 web site or in this mailing list. My
> apologies
> > > if this information is available somewhere on the strust2 site or this
> > > list and I somehow I just missed it.
> > >
> > > Right now we are evaluating different technologies to be used for
> > > WEB development at our company and struts2 is one of them (as we are
> > > currently using struts 1 for development). In fact, one of the
> objectives
> > > of
> > > the our quest is to select a Java WEB framework that allows us to
> easily
> > > build Rich Internet Applications with lots of AJAX based widgets and
> AJAX
> > > like functionality...
> > >
> > > Any pointers to publicly available struts2 based RIA applications will
> be
> > > welcome...
> > >
> > > Best,
> > >
> > > Ernesto
> > >
> > >
> >
> > --
> > View this message in context:
> >
> http://www.nabble.com/example-of-rich-internet-applications-%28RIAs%29-using-struts-2-tp25131617p25131900.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>


Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erick,
Thanks for your answer!

In evaluating frameworks we are trying to see how they do satisfy the
following conditions:

-Easy of use and developers productivity. I know this sounds very vague but
I essentially mean things like. What components (taglibs in case of struts)
 do I get for free? How easy is to combine and use them? Are they
extensible? In here, I would like if possible to avoid having
our developers having to write tons of JavaScript/JSP spaghetti code which
at the end result in unmaintenable code... To illustrate this lets see what
takes me to build the table I have show at the image

http://antilia.googlecode.com/svn/wiki/Grid.PNG

HTML



 



-


2009/8/25 Obinna 

> Ernesto,
> I understand what you mean. You're right to point to the issue of
> maintainability as a main concern. One of the big issues with trying to
> support an external AJAX framework really is maintainability. That was a
> big
> problem with the dojo plugin where the dojo framework changed dramatically
> between releases and there simply weren't the resources to basically
> re-write the plugin to keep up. This has led to an intentional strategy
> with
> the jquery plugin to only implement (as part of the default plugin), the
> widgets that are officially released as part of the jquery-ui release. This
> really mitigates the risk and job of maintaining the plugin.  Having said
> that, in fact specifically because of this, the plugin must allow for easy
> integration of custom widgets (see the 'Custom Widget' sample so the
> showcase <http://struts2-jquery.apposit.com/home.action> site) and if the
> plugin is adopted widely enough, one should quickly see a proliferation of
> plugin-plugins :) - custom widgets that end users have developed for the
> plugin.
> What's great is that anything that is implemented as a jquery widget can be
> easily integrated as a struts2-jquery widget, so a big part of your answer
> in evaluating this particular plugin is should really be how much you like
> jquery and it's ajax/widget functionality vs. the js/ajax that other
> plugins/wicket offer - IMO jquery really is about as good as it gets both
> as
> a js/ajax library and a js widget library ;). Funny you should mention a
> grid control, becuase I am just considering implementing and plugging in a
> widget using the jquery jQGrid
> <http://www.trirand.com/jqgrid/jqgrid.html>control at the moment.
> jQuery is a powerful js framework of choice in
> general, and has *TONS* of custom widgets (some better than others) which
> you can use independently or choose to integrate with struts2 using the
> plugin.
>
> Maturity may of course be a concern of yours, and though struts 2 is very
> mature, but the jquery-plugin for it is still in its youth if that matters
> to you. I am using it effectively in production at the moment, but then
> again I am also working on it.
>
> I'm not familiar with wicket's functionality (it's somehting i've been
> planning to check out), so please explain what you mean by 'what they offer
> in terms of functionality and producivity'. Do you mean the list of
> available components/widgets? I can't speak for the struts team but my
> feeling is that the goals of struts and wicket are quite different and that
> should really effect your choice.
>
> Hope this helps.
>
>  -Eric
>
>
>
> 2009/8/25 Ernesto Reinaldo Barreiro 
>
> > Hi Obinna,
> > Thanks for your answer...
> >
> > I have seen and tried both the dojo plugin and the struts2-jquery-plugin
> in
> > an small showcase application I have built just to summarize (for
> internal
> > use) what is available for struts2 But to be sincere I'm not very
> > impressed about what they offer in terms of productivity and
> functionality
> > if you compare them with what you get using a component based frameworks
> > like Wicket.  Please, I have no intention to say that there is anything
> > wrong with those plugins, I'm a developer myself and I know how much
> energy
> > demands maintaining something... It is just that the way to work with
> them
> > seem to me unnatural after trying Wicket's AJAX implementation.
> >
> > For instance, something I haven't found is a good free grid component
> > supporting AJAX navigation and advanced functionality like draggable,
> > resizable columns... Something like:
> >
> > http://antilia.googlecode.com/svn/wiki/Grid.PNG
> > http://antilia.googlecode.com/svn/wiki/GridExport.PNG
> > http://antilia.googlecode.com/svn/wiki/Panels.PNG
> >
> > So, I just was wondering what kind of tag-libraries, components, etc.
> > People
> &

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erick,
Thanks for your answer!

In evaluating frameworks we are trying to see how they do satisfy the
following conditions:

-Easy of use and developers productivity. I know this sounds very vague but
I essentially mean things like. What components (taglibs in case of struts)
 do I get for free? How easy is to combine and use them? Are they
extensible? In here, I would like if possible to avoid having
our developers having to write tons of JavaScript/JSP spaghetti code which
at the end result in unmaintenable code... To illustrate this lets see what
takes me to build the table I have show at the image

http://antilia.googlecode.com/svn/wiki/Grid.PNG

HTML



 

Java

TableModel tableModel = new TableModel(Person.class, "id",
"name", "lastName1");

Table table = new Table("table",tableModel,
Person.createPersons());
add(table);

All the JavaScript, Ajax navigation, etc. is taken care by the component.
So, in JSP parlance I would like something like



and those objects added at the server side...

- Learning curve. How difficult will be for our developers to adapt to a new
framework.  Struts2 has advantage here because right now  we are using
struts 1.
- How easy will be maintaining the internal tools, components we create
ourselves and/or how stable-backward compatible are the external
components-tools we choose to use.

As for  Wicket AJAX implementation... You can see an example of how it works
here

http://wicket.apache.org/exampleajaxcounter.html

I think it deserves expending sometime looking at what Wicket does, even if
you don;t plant to use it, because you can get ideas of how things could be
done in different ways

IMHO, it is really a neat thing... because your don't have to know any Java
script library whatsoever and your can control at the server side which
components to update via AJAX. I didn't know about the grid

http://www.trirand.com/jqgrid/jqgrid.html

It looks really nice... I'll look into it and see if can make a neat
Component out of it...

Best,

Ernesto


2009/8/25 Obinna 

> Ernesto,
> I understand what you mean. You're right to point to the issue of
> maintainability as a main concern. One of the big issues with trying to
> support an external AJAX framework really is maintainability. That was a
> big
> problem with the dojo plugin where the dojo framework changed dramatically
> between releases and there simply weren't the resources to basically
> re-write the plugin to keep up. This has led to an intentional strategy
> with
> the jquery plugin to only implement (as part of the default plugin), the
> widgets that are officially released as part of the jquery-ui release. This
> really mitigates the risk and job of maintaining the plugin.  Having said
> that, in fact specifically because of this, the plugin must allow for easy
> integration of custom widgets (see the 'Custom Widget' sample so the
> showcase <http://struts2-jquery.apposit.com/home.action> site) and if the
> plugin is adopted widely enough, one should quickly see a proliferation of
> plugin-plugins :) - custom widgets that end users have developed for the
> plugin.
> What's great is that anything that is implemented as a jquery widget can be
> easily integrated as a struts2-jquery widget, so a big part of your answer
> in evaluating this particular plugin is should really be how much you like
> jquery and it's ajax/widget functionality vs. the js/ajax that other
> plugins/wicket offer - IMO jquery really is about as good as it gets both
> as
> a js/ajax library and a js widget library ;). Funny you should mention a
> grid control, becuase I am just considering implementing and plugging in a
> widget using the jquery jQGrid
> <http://www.trirand.com/jqgrid/jqgrid.html>control at the moment.
> jQuery is a powerful js framework of choice in
> general, and has *TONS* of custom widgets (some better than others) which
> you can use independently or choose to integrate with struts2 using the
> plugin.
>
> Maturity may of course be a concern of yours, and though struts 2 is very
> mature, but the jquery-plugin for it is still in its youth if that matters
> to you. I am using it effectively in production at the moment, but then
> again I am also working on it.
>
> I'm not familiar with wicket's functionality (it's somehting i've been
> planning to check out), so please explain what you mean by 'what they offer
> in terms of functionality and producivity'. Do you mean the list of
> available components/widgets? I can't speak for the struts team but my
> feeling is that the goals of struts and wicket are quite different and that
> should really effect your choice.
>
> Hope this helps.
>
>  -Eric
>
>
>
> 2009/8/25 Ernesto Reinaldo 

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Erik,

Comments inlined.


> There's usually a trade-off between simplicity and out-of-the-box
> functionality and flexibility (how open to extensibility and
> customization).
> Where you opt for on this spectrum should depend a lot on the
> sophistication
> of your development team. If your team is sophisticated enough, it's better
> to opt for a framework that
> has a fairly steep learning curve in the beginning but allows for powerful
> extensibility which string developers will demand/like later on. If your
> team is fairly weak, then I think the out-of-the-box no-hassle widgets are
> what you want.
>
> We're actually trying to find a happy medium or rather, to meet both needs
> with the struts-jquery plugin.
>
>
I do agree there is no "fit all sizes" solution and you will always have to
find a compromise between having less complex components, that can be
combined to make complex things, and hight level ones that do a lot of
things and are less flexible/extensible. I would opt for having hight level
elements, that less capable developers can use to
achieve impressive results, and whenever you have things that those
components can do, then you come up with tailor made solution... Also it all
depends of the kind of applications you are building. For instance, in here


http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/crud/CRUDPanel.java

I have built a component that creates a whole CRUD screen out of an
annotated Entity. This hight level component covers a set of use cases, lets
say 80% of what you need in an application, and whenever you find something
not doable with it, then you turn to the tailor made solution...


> A) OUT-OF-THE BOX SIMPLICITY: We're providing a number of standard widgets
> and components with built-in 'commnication' between them so that developers
> can
> implement all standard functionality simply: For example, to have two
> select
> boxes, one which is updated when the other changes, you can use the
> following code:
>
>   *onChangeTopics="firstSelectChanged"
> list="firstSelectList"*/>
>*reloadTopics="firstSelectChanged"* *src="secondSelect.action"
> elementIds="firstSelect"*/>
>
>   where *firstSelectList *is any kind of iterable collection in your
> model (action).
>
>   Or you could create a draggable div with it's contents loaded
> remotely that drops into a droppable area simply div like this:
>
>  
>  Drop Into Me
>
> The one limitation I explained before is that the out-of-the-box widgets
> will be limited by what is released by
>
> B) EXTENSIBILITY AND POWER-USER SUITABILITY:  By using jQuery, a
> publish/subscribe event model which allows developers to
> develop/subscribe/publish ANY custom handlers for the component events and
> by providing a plug-in mechanism for custom widgets, the ability for
> developers to extend the framework is virtually unlimited.  What may be an
> issue with wicket in this area (from what i know... i may be wrong) is that
> if you are depending solely on the the provided components, there are bound
> to be special use cases where you want slightly different functionality or
> an altogether different component which isn't and to develop it yourself
> you're probably going to want to use a framework like jQuery anyway to amke
> things much easier at which point you might as well be using something like
> the struts-jquery framework.  I also cannot stress enough the power of the
> publish.subscribe framework the struts-jquery plugin uses for interaction
> between ajax components and with any custom code. I'm not sure if wicket
> provides something as useful for de-coupled event handling/ component
> interaction.
>

Not quite following you here. In Wicket you normally attach events to
components in a programmatic way at the Java side and then when components
HTML code is generated the framework itself generates the (e.g. AJAX)
callbacks. All you have to do is what you want at Java code level and say
which components you want to refresh via AJAX (this at the Java level, the
framework itself will generate all the JavaScript necessary to get this
working). Think of something like the following (pseudo) code


TextField b = new TextField("b");

DropDownChoice a = new DropDownChoice("a" );
a.add(new AjaxFormComponentUpdatingBehavior("onchange")  {
 @Override
protected void onUpdate(AjaxRequestTarget target) {
if(target!=null) {
// do soemething to the model of
TexField b
target.addComponent(b);
}
}
});

This will generate a select and whenever you change the selected element you
will get notified at the server side, you do something that change the model
of textfield b, which determines what b will display, and then say you want
b update (target.addComponent(b)) . Thats all what it takes to do AJAX in
Wicket.

Best,

Ernesto


Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
Hi Martin,
Sorry but I do not understand your questions...

On Wed, Aug 26, 2009 at 2:44 PM, Martin Gainty  wrote:

>
> does the builtin communication bypass XMLHttpRequest?
> if so which events do you support?
>

What do you mean by this? Is this referring to Wicket AJAX support?


>
> this is good work..do you support JSON format?
> Martin Gainty
>

JSON format? Where? Do you mean the CRUD component? Or something else?

Best,

Ernesto



>
>
>
> > Date: Wed, 26 Aug 2009 12:42:54 +0200
> > Subject: Re: example of rich internet applications (RIAs) using struts 2
> > From: reier...@gmail.com
> > To: user@struts.apache.org
> >
> > Hi Erik,
> >
> > Comments inlined.
> >
> >
> > > There's usually a trade-off between simplicity and out-of-the-box
> > > functionality and flexibility (how open to extensibility and
> > > customization).
> > > Where you opt for on this spectrum should depend a lot on the
> > > sophistication
> > > of your development team. If your team is sophisticated enough, it's
> better
> > > to opt for a framework that
> > > has a fairly steep learning curve in the beginning but allows for
> powerful
> > > extensibility which string developers will demand/like later on. If
> your
> > > team is fairly weak, then I think the out-of-the-box no-hassle widgets
> are
> > > what you want.
> > >
> > > We're actually trying to find a happy medium or rather, to meet both
> needs
> > > with the struts-jquery plugin.
> > >
> > >
> > I do agree there is no "fit all sizes" solution and you will always have
> to
> > find a compromise between having less complex components, that can be
> > combined to make complex things, and hight level ones that do a lot of
> > things and are less flexible/extensible. I would opt for having hight
> level
> > elements, that less capable developers can use to
> > achieve impressive results, and whenever you have things that those
> > components can do, then you come up with tailor made solution... Also it
> all
> > depends of the kind of applications you are building. For instance, in
> here
> >
> >
> >
> http://code.google.com/p/antilia/source/browse/trunk/com.antilia.web/src/com/antilia/web/crud/CRUDPanel.java
> >
> > I have built a component that creates a whole CRUD screen out of an
> > annotated Entity. This hight level component covers a set of use cases,
> lets
> > say 80% of what you need in an application, and whenever you find
> something
> > not doable with it, then you turn to the tailor made solution...
> >
> >
> > > A) OUT-OF-THE BOX SIMPLICITY: We're providing a number of standard
> widgets
> > > and components with built-in 'commnication' between them so that
> developers
> > > can
> > > implement all standard functionality simply: For example, to have two
> > > select
> > > boxes, one which is updated when the other changes, you can use the
> > > following code:
> > >
> > >   > > *onChangeTopics="firstSelectChanged"
> > > list="firstSelectList"*/>
> > >> > *reloadTopics="firstSelectChanged"* *src="secondSelect.action"
> > > elementIds="firstSelect"*/>
> > >
> > >   where *firstSelectList *is any kind of iterable collection in
> your
> > > model (action).
> > >
> > >   Or you could create a draggable div with it's contents loaded
> > > remotely that drops into a droppable area simply div like this:
> > >
> > >  
> > >  Drop Into Me
> > >
> > > The one limitation I explained before is that the out-of-the-box
> widgets
> > > will be limited by what is released by
> > >
> > > B) EXTENSIBILITY AND POWER-USER SUITABILITY:  By using jQuery, a
> > > publish/subscribe event model which allows developers to
> > > develop/subscribe/publish ANY custom handlers for the component events
> and
> > > by providing a plug-in mechanism for custom widgets, the ability for
> > > developers to extend the framework is virtually unlimited.  What may be
> an
> > > issue with wicket in this area (from what i know... i may be wrong) is
> that
> > > if you are depending solely on the the provided components, there are
> bound
> > > to be special use cases where you want slightly different functionality
> or
> > > an altogether different component which isn't and to develop it
> yourself
> > > you're probably going to want to use a framework like jQuery anyway to
> amke
> > > things much easier at which point you might as well be using something
> like
> > > the struts-jquery framework.  I also cannot stress enough the power of
> the
> > > publish.subscribe framework the struts-jquery plugin uses for
> interaction
> > > between ajax components and with any custom code. I'm not sure if
> wicket
> > > provides something as useful for de-coupled event handling/ component
> > > interaction.
> > >
> >
> > Not quite following you here. In Wicket you normally attach events to
> > components in a programmatic way at the Java side and then when
> components
> > HTML code is generated the framework itself generates the (e.g. AJAX)
> > callbacks. All you have to do is wh

Re: example of rich internet applications (RIAs) using struts 2

2009-08-26 Thread Ernesto Reinaldo Barreiro
:-)

On Wed, Aug 26, 2009 at 3:29 PM, Wes Wannemacher  wrote:

> On Wed, Aug 26, 2009 at 9:27 AM, Ernesto Reinaldo
> Barreiro wrote:
> > Hi Martin,
> > Sorry but I do not understand your questions...
> >
> > On Wed, Aug 26, 2009 at 2:44 PM, Martin Gainty 
> wrote:
> >
> >>
> >> does the builtin communication bypass XMLHttpRequest?
> >> if so which events do you support?
> >>
> >
> > What do you mean by this? Is this referring to Wicket AJAX support?
> >
> >
> >>
> >> this is good work..do you support JSON format?
> >> Martin Gainty
> >>
> >
> > JSON format? Where? Do you mean the CRUD component? Or something else?
> >
>
> Just ignore Martin, the current hypothesis is that he's a Turing Test
> project that has his ${Topic} pointer shifted a few bytes.
>
> -Wes
>
> --
> 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
>
>


Re: [OT] Re: example of rich internet applications (RIAs) using struts 2

2009-08-27 Thread Ernesto Reinaldo Barreiro
Hi,
I'm new to this list so I don't know how is who... but it was clear for me
from the beginning that Martin answers had no relation with my original
e-mail (that's why I didn't answer his first e-mail and only answered to the
second to be polite)... If you guys think someone is abusing the list by
repeatedly posting meaningless/confusing messages, isn't there an action
that can be undertaken to fix that?

Coming back to the original subject I would like to thank you all for
your time and well thought answers...

Best regards,

Ernesto

On Wed, Aug 26, 2009 at 4:39 PM, Bhaarat Sharma  wrote:

> this has been a long time coming.
> Martin: I also appreciate your efforts as you try to answer questions but
> as
> dave said..most of the time they make the poster more confused.
>
> On Wed, Aug 26, 2009 at 10:35 AM, Dave Newton 
> wrote:
>
> > Martin Gainty wrote:
> >
> >> mg>at least your attack took more than 5 seconds of thought
> >> mg>whos next?
> >>
> >
> > Me.
> >
> > We're not "attacking" you at random--we just don't think you make a lot
> of
> > sense a lot of the time and often add more confusion than value.
> >
> > When you obfuscate issues under what's often essentially random (to us)
> > source code it's really important to let the original poster *know* that
> > it's completely unrelated to the question. It's not that we don't *want*
> you
> > to contribute, we just want the contributions to be meaningful, accurate,
> > helpful, etc. I mean, come on: you've posted XW 1.x code, Spring MVC
> code,
> > told people there's a bug because some code didn't exist (when clearly it
> > *must*)... there are a *lot* of examples.
> >
> > We've tried the polite route: we've asked you repeatedly to clarify why
> > you've posted what you did or explain its relevance to the thread. The
> vast
> > majority of the time we get no response. That's why people started joking
> > about you being a bot.
> >
> > I'm *imploring* you to be more careful when responding to people's
> > questions. Be a force of good, not confusion.
> >
> > Dave
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>


Re: Table(grids)

2009-09-02 Thread Ernesto Reinaldo Barreiro
After a similar question I asked a few days ago... I decided to create a
tag-library and some utility classes  that will make it easy
integrate jqgrid into struts2 applications...  I already have something
working but it is far from finished (see
http://code.google.com/p/antilia-struts/) and I'll be adding more
functionality in the near future. In fact, there is already a small test
application showing  how to use the taglib
http://code.google.com/p/antilia-struts/source/browse/#svn/trunk/struts2-jq-antilia-test

I
know there is already a struts2-jquery integration project.. So, once I have
something finished  I wouldn't mind if "my" code is integrated into the
standard plugin (of course if the developers of it are interested in
including my code).

Best,

Ernesto

On Wed, Sep 2, 2009 at 4:42 PM, Wes Wannemacher  wrote:

> I've done it a few different ways. One of  my favorite ways is to use
> jqgrid and JSON... This is a bit complicated though, so not for the
> faint of heart. Constructing a basic table is pretty easy -
>
> 
> 
>  header1header2
> 
> 
>  value="#record.value2"/>
> 
> 
>
> Of course, you would probably want to properly add theader / tbody
> tags, but I was too lazy to make this a full-featured example.
>
> -Wes
>
> On Wed, Sep 2, 2009 at 10:35 AM, Arthur Neves wrote:
> > Hi,
> >
> > I'd like to know, if is there a way to make tables(grids) easily in
> Struts2?
> > What do you use? Is there a tag?
> >
>
>
>
> --
> 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
>
>


Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Ernesto Reinaldo Barreiro
Maybe just ? Or 
if you don't want JS to be cached?
Best,

Ernesto


On Thu, Sep 3, 2009 at 10:27 AM, calintz  wrote:

>
> Hello everyone, i need help here~
>
> these are my jar files
> struts2-dojo-plugin-2.1.6
> struts2-core-2.1.6
> ---
>
> this is my index.jsp
> <%@ taglib prefix="s" uri="/struts-tags"%>
> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
> 
>
>
> 
>
> there is a yellow line under the "debug" keyword(Undefined attribute name
> "debug").
> If i change the  'theme' keyword.
> Any solution??thx for your advance~!
>
> 
> the error that i get
>
> exception
>
> org.apache.jasper.JasperException: /index.jsp(4,2) Attribute debug invalid
> for tag head according to TLD
>
>
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
>
>
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>
>
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
>
>
> org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:986)
>
>
> org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706)
>org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1442)
>org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>org.apache.jasper.compiler.Node$Visitor.visit(Node.java:)
>org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
>org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>org.apache.jasper.compiler.Validator.validate(Validator.java:1484)
>org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
>
>
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
>
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
>
>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)
>
>
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
>
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25271737.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: AJAX issues in struts 2.1.6

2009-09-03 Thread Ernesto Reinaldo Barreiro
I have no idea... This seems to be an entirely different thing form the
original post... But I'm new to struts2 so don't take my word for granted.
By the way, FilterDispatcher is deprecated. What I use in my toy application
is:

   struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
   

  
   struts2
   /*
   
Best,

Ernesto


On Thu, Sep 3, 2009 at 11:57 AM, calintz  wrote:

>
> After changed   to  debug="true"/>
> i'm having another problem. what should i set for my  ??
>
> this is part of my web.xml
>
> 
>struts2
>
> org.apache.struts2.dispatcher.FilterDispatcher
> 
>
>actionPackages
>pages/list.actions
>
>
>
>
>struts2
>/*
>
> ---
> this is my structs.xml
>
> 
>
>
>
>
>
>
>pages/list.jsp
>pages/list.jsp
>
>
>
>pages/list.jsp
>pages/list.jsp
>
>
>
>pages/list.jsp
>pages/list.jsp
>
>
>
> 
>
> 
> my error message is
>
> WARNING: Could not find action or result
> There is no Action mapped for namespace / and action name list. - [unknown
> location]
>at
>
> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
>at
>
> org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
>at
>
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
>at
>
> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
>at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
>at
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>at
>
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
> at
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
> at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>at
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>at
>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>at java.lang.Thread.run(Unknown Source)
> --
> View this message in context:
> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25272908.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Wondering that Struts2 is getting die?

2009-09-30 Thread Ernesto Reinaldo Barreiro
Why not volunteer to help maintain them:-) It is opensource... Just follow
the list and you will see it is still very alive.
Ernesto

On Wed, Sep 30, 2009 at 1:12 PM, karaatli  wrote:

>
> Hi all,
> Due to out of date struts wiki page, confllunece page & others relating to
> struts2 I am questioning myself  what about  Struts2 future days?
>
> Or
>
> Why there is no update at these pages?
>
> --
> View this message in context:
> http://www.nabble.com/Wondering-that-Struts2-is-getting-die--tp25679069p25679069.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to submit a form without a page refresh

2009-10-21 Thread Ernesto Reinaldo Barreiro
Just on way to do it!

http://www.weinfreund.de/struts2-jquery-showcase/index.action
See Ajax
Form tab

Best,

Ernesto

On Wed, Oct 21, 2009 at 11:43 AM, Per Johansson  wrote:

> Hi,
>
> I am new to Struts and want to implement a form that when submitted
> does not refresh the whole page.
> The form must be submitted in isolation, independent of the rest of the
> page.
> I am also new to Ajax but guess that Ajax can be used in some way for this.
> Any advice appreciated.
>
> /Best Regards, Per Johansson
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


http://code.google.com/p/antilia-struts/

2009-10-21 Thread Ernesto Reinaldo Barreiro
Hi All,
A few days ago I asked the list for implementation of RIA applications in
struts2 and which components could be used. Someone, pointed me to

http://www.trirand.com/jqgrid/jqgrid.html

and mentioned there wasn't a tag integrating this GRID into struts2. So, I
decided to give it a try an created the following project

http://code.google.com/p/antilia-struts/

I have managed to create a tag that makes easier, or so I believe, to use
that GRID with struts. There is already a small demo application showing how
to use the grid tag. You can find the details on how to get it working here

http://code.google.com/p/antilia-struts/wiki/DemoApplication

And there is also a page explaining how to implement a basic search page
using the machinery provided by the project.

http://code.google.com/p/antilia-struts/wiki/SearchPage

I don't know if I''ll continue adding functionality to this project, because
it all depends on how busy will I be with other things, or if there is any
interest on this. So, in case YOU think this might be useful for the
community I wouldn't mind this code to be integrated into something else, or
get help in maintaining or improving it.

Best,

Ernesto


Re: how to use ajax displaytag?

2009-11-12 Thread Ernesto Reinaldo Barreiro
Recently I just created a wrapper for jqgrid... Maybe it can be of some help
to you

http://code.google.com/p/antilia-struts/wiki/DemoApplication
http://code.google.com/p/antilia-struts/wiki/SearchPage

Ernesto

On Thu, Nov 12, 2009 at 10:29 PM, fireapple  wrote:

>
> Here's my situation:
>
> I used a displaytag to show a table as an ajax result. It works fine.
>
> However, when I click "sort" or go to different page, it opens a new page
> with only the displaytag table. I saw something online that there's
> ajaxTags
> or ajaxAnywhere, but it seems they're both not good.
>
> Is JQuery a good solution for this issue? I found this:
>
> http://vijay360.wordpress.com/2008/03/12/displaytag-jquery-displaytagajaxed/
>
>  requestURI="group_queryGroups.do" pagesize="20">
>
> --
> View this message in context:
> http://old.nabble.com/how-to-use-ajax-displaytag--tp26326770p26326770.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to display a table (data grid) using Struts2 - Is there a tag?

2009-12-10 Thread Ernesto Reinaldo Barreiro
Nice work! I also have integrated jqGrid into a struts taglib

http://code.google.com/p/antilia-struts

but have followed a different approach. Configuration is done at the server
side...

http://code.google.com/p/antilia-struts/wiki/SearchPage

Best,

Ernesto

On Thu, Dec 10, 2009 at 6:51 PM, Johannes Geppert  wrote:

>
> Since today the struts2 jQuery Plugin brings a grid tag based on jQuery
> Grid
> Plugin to you.
>
> http://code.google.com/p/struts2-jquery/wiki/GridTag
>
> You can find various samples in the Showcase
> http://www.weinfreund.de/struts2-jquery-showcase/
>
> Best Regards
>
> Johannes Geppert
>
>
> jvsrvcs wrote:
> >
> > We need to pull a large amount of data from a database and display in a
> > table.
> >
> > We would like, on click of a hyperlink for a submission to happen to go
> to
> > the server to fetch the next set of data that has been either cached or
> > to query the db.
> >
> > I am sure someone has done this before as it is quite a common use case.
> >
> > We need the following features:
> >   - an html table with grid (a jsp tag if there is one)
> >   - headers (html, different color backround) - nothing new here
> >   - clickable headers that will sort the list ascending, descending
> >   - pagination
> >   - 1, 2<= Each number is a hyperlink
> >   - Next 10 of<= is a hyperlink
> >   - Last<= is also a hyperlink
> >
> >   Is there a way to do this using some built-in struts2 feature or
> tag?
> >
> >   If not, is there another plugin to struts2 that can provide this?
> > 
> >
>
>
> -
> ---
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
> --
> View this message in context:
> http://old.nabble.com/How-to-display-a-table-%28data-grid%29-using-Struts2---Is-there-a-tag--tp26712342p26731706.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Problem with jquery plugin

2009-12-15 Thread Ernesto Reinaldo Barreiro
I'm using jqGrid this way

http://code.google.com/p/antilia-struts/wiki/SearchPage

Regards,

Ernesto

On Tue, Dec 15, 2009 at 8:57 PM, Oscar  wrote:

> Hi to all, i was exploring the jquery plugin of struts 2 because i read
> that you can do something like a grid with the tags that provides that
> plugin, something like displaytag or extremecomponents.
>
> I follow an example that i found where they simply create a list in action
> and show the data in the jsp with the grid tags, but i have a problem, when
> i call the action, the method execute is called normally but finally it
> "downloads" the action, appears a dialog box in my browser asking if i want
> to save or open the file someAction.action. I'm using a json result, this is
> my struts.xml:
>
> 
>name="jsontable">
>   /tablaYeison.jsp
>   
>   
>
> And this is the link with i'm trying to call the action:
>
> Show me the data
>
> I think that is something about the result.
>
> Regards.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Session error while loading an object

2010-07-14 Thread Ernesto Reinaldo Barreiro
Just the same problem: BasicDataSource is not serializable.

Ernesto

On Wed, Jul 14, 2010 at 11:15 AM, abhishek jain
 wrote:
> 2010/7/14 Paweł Wielgus 
>
>> Hi all,
>> You get this error every time when tomcat tries to save someone's
>> session and object of class com.cart.Customer is in it.
>> Like Robert said, add Serializable to com.cart.Customer and the
>> problem will go away.
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>
> Hi,
> I have added the Serializable to com.cart.Customer, but now i am getting the
> following error, which i think is due to the reason that i am using
> reference of Datasource and Message Resource in the class which i believe is
> not serializable:
>
> IOException while loading persisted sessions: java.io.WriteAbortedException:
> writing aborted; java.io.NotSerializableException:
> org.apache.commons.dbcp.BasicDataSourcejava.io.WriteAbortedException:
> writing aborted; java.io.NotSerializableException:
> org.apache.commons.dbcp.BasicDataSource
>       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
>       at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>       at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>       at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>
>
> .
>
> Pl. advice
>
> thanks
> abhishek
>

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