On Fri, Jan 27, 2012 at 7:17 PM, Dave Newton <[email protected]> wrote:
> Those are Dojo tags, not jquery tags. Same difference--they make Ajax calls
> to Struts actions. Isn't that what you said you wanted?

well, in a way, yes. This would be the start of it. I thought more on
complete forms, build as a js component. It would not only send the
result, but would do some validation, update a dropdownbox when
selecting from another one such. More highlevel component support

Probably I should look into the jQuery tags. Still I was not able to
find them (or is it the project of Jo you are referring to?)

Maybe my ideas can be easily covered with this:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component

I will think about it.

>
> On Fri, Jan 27, 2012 at 1:15 PM, Christian Grobmeier 
> <[email protected]>wrote:
>
>> you mean the tags listed here?
>> http://struts.apache.org/2.3.1.2/docs/tag-reference.html
>>
>> The are listing this btw too:
>> http://struts.apache.org/2.3.1.2/docs/dojo-div.html
>> which is pointing to the dojo plugin somehow
>>
>> On Fri, Jan 27, 2012 at 7:09 PM, Dave Newton <[email protected]>
>> wrote:
>> > That's what the jQuery tags do.
>> >
>> > Dave
>> >
>> > On Fri, Jan 27, 2012 at 1:06 PM, Christian Grobmeier <
>> [email protected]>wrote:
>> >
>> >> Hello folks,
>> >>
>> >> thanks for all your insights and sharing the "old stories". It was not
>> >> my intention to make S2 to some kind of Wicket-Clone. Now, after I
>> >> have thought a bit more about what I wanted to gain, I think the
>> >> "components" I speak of are more or less components like we already
>> >> have with S2 tags. Probably there is a cool way to provide some frame
>> >> for creating tags themselves easily. Another possible idea I had was,
>> >> what if there were a JS based way to capsule frontend logic. Or even
>> >> more experimental in Dart. probably a tag like:
>> >>
>> >> <s2:component id="something">
>> >>
>> >> can create a <div id="something"/> and executes a JS script like this:
>> >>
>> >> var Component = function(id) {
>> >> }
>> >> Component.prototype.execute = function(){
>> >> }
>> >> Component.prototype.on = function(event){
>> >> }
>> >>
>> >> These JS components can use AJAX to call plain Struts Actions.
>> >>
>> >> Looking at Mustache.js, Require.js, jQuery and so on there might be a
>> >> good chance to create a modern frontend technology to work with plain
>> >> Struts 2 actions.
>> >>
>> >> What Jo wrote below is exactly my feeling on Wicket components. That
>> >> is one of the reasons i have chosen Struts and not Wicket for my app.
>> >> Now I deal with the fact that I need to organize my JS, which becomes
>> >> huge. A generic or recommended Struts approach would help me.
>> >>
>> >> I call it the playground pattern: you get a first "playground" back
>> >> from struts - usual jsp stuff. Then you have some Struts js which let
>> >> you create frontend components using struts services (or even Dart, my
>> >> preferred language atm).
>> >>
>> >> Of course the action framework needs no change then and such a js
>> >> frontend would be doable as s2 plugin.
>> >>
>> >> Not sure if people now say: hey, go ahead and use GWT if you would
>> >> like to do things like that ;-) Anyway, I think giving Struts users
>> >> "something" how they can easily make up own tags or such a JS beast
>> >> might be cool.
>> >>
>> >> Still sounds bad?
>> >>
>> >> Cheers
>> >> Christian
>> >>
>> >> On Fri, Jan 27, 2012 at 6:50 PM, Johannes Geppert <[email protected]>
>> >> wrote:
>> >> > I agree to Martin, there are enough Component Frameworks available.
>> >> > That's one point I personally like on Struts2, that all view Logic is
>> in
>> >> > my JSP/Fremarker/Velocity Template. I know Wicket Apps which have
>> really
>> >> > nice
>> >> > and clear looking HTML Files, but the Java Files are bloated and looks
>> >> dirty
>> >> > hacked.
>> >> >
>> >> > Maybe there is a Struts2 way to add this Feature as an Plugin for this
>> >> > developers how like it.
>> >> >
>> >> > Johannes
>> >> >
>> >> > -----
>> >> > web: http://www.jgeppert.com
>> >> > twitter: http://twitter.com/jogep
>> >> > --
>> >> > View this message in context:
>> >>
>> http://struts.1045723.n5.nabble.com/Struts-2-Components-tp5432642p5436126.html
>> >> > Sent from the Struts - Dev mailing list archive at Nabble.com.
>> >> >
>> >> > ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: [email protected]
>> >> > For additional commands, e-mail: [email protected]
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> http://www.grobmeier.de
>> >> https://www.timeandbill.de
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [email protected]
>> >> For additional commands, e-mail: [email protected]
>> >>
>> >>
>>
>>
>>
>> --
>> http://www.grobmeier.de
>> https://www.timeandbill.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>



-- 
http://www.grobmeier.de
https://www.timeandbill.de

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to