Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Martin Cooper

On 11/21/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:




Wendy Smoak wrote:
> On 11/20/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:
>> How about getting an initial tiles release out so that the 2.0.2 tiles
>> plugin can rely upon it instead of a snapshot? It would probably only
be
>> 'alpha' quality at this point, but the same snapshot logic that you
>> described below applies to it.
>>
>> I'll do the release (prior to the weekend), if someone that's done one
>> before will help me through it.
>
> Tiles 2 is in the sandbox, and sandbox projects are not allowed to do
> releases.  Choosing a particular snapshot for Struts 2 to depend on is
> all we can do, unless we change the rules.

Ok, thanks for clarifying.

>
> If Tiles is ready to graduate, then we need to decide where it's going
> to live.  Top level?  Over at Jakarta, or wasn't there some sort of
> 'web components' project being started?
>

Are these the only two options?  My fear with both of them (a top level
project or the 'seed' project for a new web components project at
jakarta) would be lack of community due to the fact that there seem to
be just a few active committers interested in tiles right now.  Jakarta
would be an option, though their recent trend seems to be graduating
projects to TLP - not accepting new projects.

Is it possible for tiles2 to 'graduate' into a full struts project
(sibling of struts1 and struts2) until it gains a little more momentum?
  The idea would be to allow tiles to leverage the
participation/oversight   that's allready here?  This seems to make
sense since I would guess that the vast majority of tiles users are
using it in conjunction with one version of struts or another.



I actually think this would make a great deal of sense as an interim step
for Tiles. While the long term goal would be for Tiles to move away from
home and find its own place to live, letting it spend its adolescence here
seems appropriate. ;-) It does seem a little drastic to say that the choice
is to stay in the sandbox or leave entirely.

Also, what warrants graduation from the sandbox?  A we assuming the same

requirements as graduating a project from the incubator?  My assessment
at this point is that tiles has come a long way and is ready to be
pushed out to the masses in order to allow them to play.  I'd like to
'release early/release often'.



Well, we don't have a process as formal as that of the Incubator, but I
suppose along the same general lines. A demonstration of activity and
community is sufficient, and I believe Tiles has done that. Really, the
sandbox has been used to "contain" projects that might not go anywhere, and
Tiles is well beyond that now. So, I'd say graduating makes sense.

--
Martin Cooper


Thoughts?


David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [tiles2] Usefulness of entity resolver in DigesterDefinitionsReader

2006-11-21 Thread Antonio Petrelli

Hi David!

David H. DeWolf ha scritto:

Which registrations are you referring to?


In DigesterDefinitionsReader there is the "registrations" field 
(currenly it contains only one registration), used to initialize the 
digester in the constructor.


I was on the road - without a connection - this weekend and was unable 
to successfully startup the tiles-test app without it (IOException, 
connection refused to struts.apache.org), so I'm assuming the answer 
is no.  That said, I saw that you upgraded the dtd's to 2.0 this 
weekend, so perhaps you did something in that commit that I missed 
that would have taken care of this problem.


You're right, some configuration files still referred to 1.1 version of 
the DTD, so I modified them all, reopening (and re-resolving) SB-30 
issue. Probably you got this problem because JUnit tests failed, and 
therefore the package wasn't built.


To test if the registrations are enough, I disconnected the network 
cable (ehm... don't try this at home :-) ) and it worked.


Ciao
Antonio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Proposal] Struts 2 Result Selectors

2006-11-21 Thread Ted Husted

OK, do you remember how the WW-1393 feature works, or where we test it?

-Ted.

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

Nope, that's something different.  Perhaps I didn't open up a ticket on
that, and just referred the commit to the struts one.

Don

Ted Husted wrote:
> Would it be XW-440?
>
> * http://jira.opensymphony.com/browse/XW-440
>
> -T.
>
> On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> I'd say result selectors and WW-1393 are different.  WW-1393 has been
>> implemented, but result selectors have not, AFAIK.  I don't remember the
>> XWork ticket, off-hand, but the change involved DefaultActionInvocation
>> I believe.
>>
>> Don
>>
>> Ted Husted wrote:
>> > Is "Result Selectors" what was covered by WW-1393?
>> >
>> > * http://issues.apache.org/struts/browse/WW-1393
>> >
>> > Or, was that a different feature?
>> >
>> > Our WW-1393 says it was handled on the XWork end, but doesn't cite a
>> > ticket. I don't know what we actually did.
>> >
>> > Did we
>> >
>> > * Implement result selectors?
>> >
>> > * Implement " Returning Result directly"?
>> >
>> > Or, are they the same thing?
>> >
>> > -Ted.
>> >
>> > On 10/30/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> I really, really, like this idea, especially since it doesn't
>> introduce
>> >> any new syntax or complications for the 90% of users that don't need
>> >> this.  The more we can keep Struts/XWork to simple, internal
>> components,
>> >> the easier it will be to worth with both as a user and as a
>> developer.
>> >>
>> >> This would make a nice plugin with default result types for common
>> >> situations.
>> >>
>> >> Don
>> >>
>> >> Ted Husted wrote:
>> >> > On 10/26/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> >> Then, each result selector is given a chance to select a single
>> >> String.
>> >> >> If a result has when="modern-browser,partial-html",
>> >> >> the each selector will be given a chance to return its "when"
>> >> token, and
>> >> >> xwork will match them together as AND.
>> >> >
>> >> > Or, with wildcards ...
>> >> >
>> >> >  
>> >> > 
>> >> > 
>> >> >
>> >> >
>> >> >> type="selector">/{1}{result-code}{role}{agent}.jsp
>> >> >
>> >> >/{1}-error.jsp
>> >> >
>> >> > 
>> >> >
>> >> > Each "matcher" could add a named token into the context, like
>> >> > "-manager". The selector result could then resolve the wildcard
>> path
>> >> > and delegate to another Result, like the default ServletDispatcher
>> >> > Result. The matchers might not inject a token, if it was the
>> default
>> >> > or didn't apply for some reason.
>> >> >
>> >> > So, an application using this strategy might have pages named like.
>> >> >
>> >> > * ViewFoo.jsp
>> >> > * ViewFoo-netscape4.jsp
>> >> > * ViewFoo-manager.jsp
>> >> > * ViewFoo-manager-netscape4.jsp
>> >> > * ViewFoo-failure.jsp
>> >> >
>> >> > Of course, this strategy presupposes using something like
>> SiteMesh or
>> >> > Tiles to provide the standard layout, so that each "page" can just
>> >> > focus on it's own content.
>> >> >
>> >> > -T.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
HTH, Ted.
* http://www.husted.com/struts/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Ted Husted

On 11/21/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote:

Don, I agree with you that a release should be scheduled sometime very
soon. However, at this moment due to the latest changes I would
suggest the following process:

1/ tag all dependencies (XWork2, Tiles2, Guice, CodeBehind etc.)


I'd agree that a stable release of XWork2 is key. If the not for the
dependency on a XWork beta, we might be voting Struts 2.01 GA right
now, and wonderng whether to declare the HEAD Struts 2.1 :)

We should keep in mind that we only announced the Struts 2.0.1 beta
two weeks ago. AFAIK,  there are no major issues witth the 2.0.1 beta,
and we should continue to encourage the general public to review the
2.0.1 beta.

The people working on Tiles2 are gearing up for some sort of release,
maybe even this weekend. But, since we distribute Tiles as a plugin,
so we could still mark Core GA and leave the Tiles plugin at beta.
Right now, all the plugins, including Tiles2 and Codebehind, are
tagged and released along with Core.

The Guide code was imported into XWork as the "inject" package, so
Guice is not a yet-another dependency. (Yeah!)



2/ make a release of the external dependencies (XWork2, Tiles2, Guice)


+1 as to XWork (not that I have an XWork vote). Tiles 2 might be
happening anyway. As mentioned, Guice is not applicable.



3/ document the new things


Actually, the newest things are documented (thanks Don!). :)

The problem is that, as PMC member, I don't know whether the new
features have been deployed outside of our test applications.

Even in our own applications, we haven't fully leveraged the "new
things" yet, or even all the changes to "old things -- though I'm
working in that direction, and I'll continue to update the release
notes as I go.



4/ make an alpha to be tested/played with at least the committers


It would be helpful if committers, and other members of the dev@
community, would test and play with the HEAD. If we have a problem
with dev@ subscribers not being able to build the HEAD, we need to
address that problem directly.

What works best for me is to update and build XWork2 first (from the
command line), and then do the same for Struts2. (Again, from the
command line.) It takes a moment, but it eliminates more surprises,
and there's always other stuff to do in another window (like this!).



5/ only after these push a beta/ga


Before voting something a beta or GA, I believe it's important that
the PMC members be using the build in our own work. We should be at
least one step ahead of the general public. When we vote a build GA,
it should be because we are already using it in production ourselves,
so we *know* it works. IMHO, the time to talk about voting a build
beta or GA is when we ourselves have already deployed the bits, and
our own users have found them joyful.

-Ted.




How does this sound to you?

./alex
--
.w( the_mindstorm )p.


On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> My best vote right now would be Alpha.
>
> I'm trying to get up to speed with all the recent changes, but I
> wouldn't want to put something out there for other people to use until
> I"ve actually used it myself.
>
> -Ted.
>
>
> On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > We really, really, really need to get a release out there, even if was
> > determined to be beta.  The snapshot system is unpredictable and
> > confusing for potential users, and really, users shouldn't be using them
> > anyways as they aren't "official" struts releases.
> >
> > Any showstoppers to a likely beta release?
> >
> > Don
> >
> > PS. I just deployed the snapshots off trunk to maven
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
HTH, Ted.
* http://www.husted.com/struts/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Ted Husted

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

On 11/21/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote:
> The dependency s for jfree groupId dependencies seem to be off here:
>
> 
http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/pom.xml
>
> -Rahul

Yes, that's seems to be the culprit. Sharp eye, as always, Rahul.

Fixed in r477875


Incidentally, you can change the JFreeChart folder and run mvn
idea:idea from there, to just rebuild the JFreeChart IDEA module.

It used to be that we had to add -Doverwrite=true for it to replace
the IDEA project, but lately it seems to be replacing everything, even
without the overwrite setting.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Rene Gielen

Rahul,

this was it, yes :)
Fixed now, see
https://issues.apache.org/struts/browse/WW-1518

Regards,
Rene

Rahul Akolkar schrieb:

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:

Hmm, just had a closer look into the output of
$ mvn idea:idea -P all
Looks like there's the problem...




[WARNING] An error occurred during dependency resolution of the
following artifact:

 org.apache.struts:struts2-jfreechart-plugin2.0.2-SNAPSHOT

Caused by: Missing:
--
1) jfree:jfreechart:jar:[1.0.0,)

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=jfree -DartifactId=jfreechart \
   -Dversion=[1.0.0,) -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) 
org.apache.struts:struts2-jfreechart-plugin:jar:2.0.2-SNAPSHOT

 2) jfree:jfreechart:jar:[1.0.0,)

2) jfree:jcommon:jar:[1.0.0,)

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=jfree -DartifactId=jcommon \
   -Dversion=[1.0.0,) -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) 
org.apache.struts:struts2-jfreechart-plugin:jar:2.0.2-SNAPSHOT

 2) jfree:jcommon:jar:[1.0.0,)

--
2 required artifacts are missing.




The dependency s for jfree groupId dependencies seem to be off 
here:


http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/pom.xml 



-Rahul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dispatcher

2006-11-21 Thread Don Brown
Yeah, we probably should extract an interface out of the Dispatcher 
class.  For now, you can subclass Dispatcher and point Struts 2 to it by 
subclassing the FilterDispatcher and override the createDispatcher method.


Don

Tarek Nabil wrote:

I've been going through the documentation and the source and trying to
understand the architecture of Struts 2.

In the documentation for the createDispatcher method in
FilterDispatcher, it says

Create a default [EMAIL PROTECTED] Dispatcher} that subclasses can 
override
with a custom Dispatcher, if needed.

But when checking out the Dispatcher class, it seems that it does not
implement any interface. How can one go about implementing a different
Dispatcher if there's no defined interface? Or is there something that
I'm missing?

Thanks,
Tarek Nabil
DISCLAIMER
This email and any files transmitted with it are confidential and contain privileged or copyright 
information. If you are not the intended recipient you must not copy, distribute or use this email

or the information contained in it for any purpose other than to notify us of 
the receipt thereof.
If you have received this message in error, please notify the sender 
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be 
liable for the improper
or incomplete transmission of the information contained in this 
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this 
material is free from
viruses or any other defects although due care has been taken to minimise the 
risk.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Don Brown
Well, you wouldn't want to include the code as if it was part of core.  
You'd want to turn it into its own maven plugin, publish it, then have 
Struts 2 core use the plugin when it generates resources.   It should be 
possible to just checkout core and build it without external path 
dependencies.


Don

Musachy Barroso wrote:
That's a good idea, I was using them inside core because it was easier 
:). Just change core's pom "includes" to something like:



   **/*.java
   ../maven/plugins/apt/.../*.java


I just tried it and it works ok.

musachy
James Mitchell wrote:
Ya, we should probably move this to /struts/maven/plugins/ or 
something similar.  Then we can just depend on it during build.



--
James Mitchell
678.910.8017




On Nov 21, 2006, at 6:18 PM, Don Brown wrote:


Rene, is there any reason this code should go into Struts 2 core?
Does it need to referenced at runtime?  I thought you were using these
annotations at compile time, which AFAIK, means they won't be included
in the compiled code, so there would be no reason to include the
annotation code in the jar.

I think this should be pushed out to a new Maven 2 plugin, perhaps
under /struts/maven instead of Struts 2.

Don

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:
I committed Musachy's patch with some modifications, so that the 
annotations are in place as well as the apt generation code, so we 
all can give it a review. Maybe we will have to do some more 
changes, but it looks quite straight forward in the first place.


Converting doc-tags to annotations is supposed to be a dirty job, 
I've done some tests and will continue tomorrow. May the regexes be 
with us ... :)


Nonetheless, we still can work "on both ends", giving both the apt 
and xd2 a try while having common meta information convention. I 
was not able to look into Konstantins patch yet, but I will do ASAP 
after doing the conversion stuff.


Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest
> it on linux before submitting.
>
> musachy
>
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50761&messageID=102782#102782 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2.0.1 sample portlet app

2006-11-21 Thread Tracy12

Which read me file are you refering to .

There is a read me file inside the portlet  war file but that does not
contain any instructions but some jboss configuration file details.

Also I cant find uPortal(portal server) inside 
apps/portlet/src/main/etc/

which simple example are u refering to?

We just want to drop a struts2.0 sample portlet app (helloworld) to uPortal
and see it works. If so we can learn the new struts 2.0 features as everyone
fluent int struts 1.X

Let us know how to proceed on this

Thanks









ote author='Ted Husted-3'>
There's a README.txt for the portlet example.

README.txt - portlet

This is a simple example of using the portlet API with Struts applications.

For more on getting started with Struts, see

* http://cwiki.apache.org/WW/home.html

WARNING - Additional configuration required for deployment

Due to difference in portlet contrainer implementations, the porlet
WAR is not ready-to-run. Extract the porlet WAR, and then copy the
contents of apps/portlet/src/main/etc// into the
WAR's WEB-INF directory.

-- HTH, Ted.


On 11/21/06, tom tom <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We downloaded struts 2.0.1, there is a struts2-portlet-2.0.1.war.
>
> Where can I see instructions to deploy this war file and see how it works.
> I
> can't find any documentation.
>
> Do I need to apply any patches.?
>
> We are using uPortal as the portal server.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
View this message in context: 
http://www.nabble.com/struts-2.0.1-sample-portlet-app-tf2682160.html#a7484112
Sent from the Struts - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2.0.1 sample portlet app

2006-11-21 Thread Tracy12

Which read me file are you refering to .

There is a read me file inside the portlet  war file but that does not
contain any instructions but some jboss configuration file details.

Also I cant find uPortal(portal server) inside 
apps/portlet/src/main/etc/

which simple example are u refering to?

We just want to drop a struts2.0 sample portlet app (helloworld) to uPortal
and see it works. If so we can learn the new struts 2.0 features as everyone
fluent int struts 1.X

Let us know how to proceed on this

Thanks



Ted Husted-3 wrote:
> 
> There's a README.txt for the portlet example.
> 
> README.txt - portlet
> 
> This is a simple example of using the portlet API with Struts
> applications.
> 
> For more on getting started with Struts, see
> 
> * http://cwiki.apache.org/WW/home.html
> 
> WARNING - Additional configuration required for deployment
> 
> Due to difference in portlet contrainer implementations, the porlet
> WAR is not ready-to-run. Extract the porlet WAR, and then copy the
> contents of apps/portlet/src/main/etc// into the
> WAR's WEB-INF directory.
> 
> -- HTH, Ted.
> 
> 
> On 11/21/06, tom tom <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> We downloaded struts 2.0.1, there is a struts2-portlet-2.0.1.war.
>>
>> Where can I see instructions to deploy this war file and see how it
>> works. I
>> can't find any documentation.
>>
>> Do I need to apply any patches.?
>>
>> We are using uPortal as the portal server.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts-2.0.1-sample-portlet-app-tf2682160.html#a7484113
Sent from the Struts - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Ted Husted

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

# struts.devMode = false


devMode was just an example. The same thing seems to happen with most
any setting in default.properties. Having them in both places doesn't
cause a build error, but I didn't test to see if struts-default.xml
supercedes default.properties, as you would expect.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown
Yeah, I agree.  There are some cool things we can do with namespaces, 
but there is no need to hurry and they should be well thought out.  I 
also think your plan of putting the docs in the Javadocs and some small 
hint in the xml makes sense. 


+1's all around :)

Don

Ted Husted wrote:

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

It should work just fine, as should the rest of the properties.  Still,
before we move them, perhaps we should resolve what to do with their
comments.


My first preference would be to enumerate all the settings in
StrutsConstants, where we can use JavaDocs and snippets, so that there
is one, complete, coherent, fully documented list of settings.

I also wonder if we want to spit out the full documentation as part of
precise error reporting, or whether we are really just looking for a
helpful hint.

My suggestion would be to put the detailed documentation in JavaDocs
at StrutsConstants, where can also apply snippets, and then include a
remark attribute in the constants element, that we can tailor for
error reporting. (Or just an XML comment, if that's easier for some
reason.)

I don't know if this would be the best time to get into namespaces. We
might want to save that for later, after the dust settles.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread tm jee
Hi Rainer, 

>Toby, are you still working on the docs?

I think there's some changes needed to be done on the current xwork2 docs, 
there's the new DI introduced lately and I think the docs doesn't take that 
into account. I think (I am not sure) that the creation of ActionProxy etc. 
might be different. I could have a look at it again this weekend.  :-) 

I think I will be working on WebWork and XWork-1_2 mostly. There's quite a few 
bugs report in WebWork lately.

Cheers Rainer.




Rainer Hermanns <[EMAIL PROTECTED]> wrote: Don and others,

regarding the XWork 2.0 release, I only have time to do this either
this thursday or later then monday.
Haven't had a look at the docs lately, so there might be some things to do.
I'll recheck all the other open tasks till tomorrow evening and report
back, if thursday could be the xwork 2 release date.

Toby, are you still working on the docs?

regards,
Rainer

> Don, I agree with you that a release should be scheduled sometime very
> soon. However, at this moment due to the latest changes I would
> suggest the following process:
>
> 1/ tag all dependencies (XWork2, Tiles2, Guice, CodeBehind etc.)
> 2/ make a release of the external dependencies (XWork2, Tiles2, Guice)
> 3/ document the new things
> 4/ make an alpha to be tested/played with at least the committers
> 5/ only after these push a beta/ga
>
> How does this sound to you?
>
> ./alex
> --
> .w( the_mindstorm )p.
>
>
> On 11/21/06, Ted Husted  wrote:
>> My best vote right now would be Alpha.
>>
>> I'm trying to get up to speed with all the recent changes, but I
>> wouldn't want to put something out there for other people to use until
>> I"ve actually used it myself.
>>
>> -Ted.
>>
>>
>> On 11/20/06, Don Brown  wrote:
>> > We really, really, really need to get a release out there, even if was
>> > determined to be beta.  The snapshot system is unpredictable and
>> > confusing for potential users, and really, users shouldn't be using
>> them
>> > anyways as they aren't "official" struts releases.
>> >
>> > Any showstoppers to a likely beta release?
>> >
>> > Don
>> >
>> > PS. I just deployed the snapshots off trunk to maven
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Send instant messages to your online friends http://uk.messenger.yahoo.com 

Re: [s2] XWork2 release plan

2006-11-21 Thread Rene Gielen
James, Musachy, others,

FYI, I took the ticket. I will take care of the patch and start the xdoctet-tag 
to annotation conversion this evening, if there are no objections.

Regards,
Rene

> The systemPath configuration for the maven plugin
> looks similar to  
> what we have to do for Retrotranslator, I'm wondering
> if this is  
> something we can simply configure in each of our
> local settings.xml  
> and document on the wiki.  That would help me out as
> well.  I'll look  
> into it.
> 
> Ted, are you looking at this patch?  I assume you are
> running with  
> it, unless you're tied up.
> 
> 
> --
> James Mitchell
> 678.910.8017
> 
> 
> 
> 
> On Nov 20, 2006, at 10:40 PM, Musachy Barroso wrote:
> 
> > I attached a patch to WW-1392. It has the changes
> to the POMs and  
> > the classes for apt. The namespace  for the apt
> stuff is probably  
> > not the best.
> >
> > musachy
> >
> > Rainer Hermanns wrote:
> >> Musachy,
> >> can you send me over your tld processor stuff?
> >> Best would be to attach it to the jira ticket
> (WW-1392).
> >>
> >> tia,
> >> Rainer
> >>
> >>
> >>> After 2 hours trying to make apt run from ant in
> a generic way, I  
> >>> found
> >>> out that ant 1.7 has an AptTask. I guess I will
> borrow that class  
> >>> until
> >>> struts upgrades to 1.7(RC1 right now).
> >>>
> >>> musachy
> >>>
> >>> Musachy Barroso wrote:
> >>>
>  Rene,
> 
>  Let me know when you get this done, I have apt
> ready.
> 
>  musachy
> 
>  Rene Gielen wrote:
> 
> > When we started the taglib generation in ww2,
> we had to tweak the
> > xdoclet templates and a little bit of code
> because the meta
> > information had to be in the component sources
> rather than the
> > Tag-classes. Because of the dual use of the
> components (fm- 
> > support),
> > the real logic sits there while the Tag classes
> are simple  
> > wrappers.
> > Also I remenber there were some small issues
> with html artifact
> > generation. We could not get xdoclet to go
> without tweaking it.
> >
> > Maybe Konstantin could bring some light into
> whether standard xd2
> > taglib doclet would deliver this flexibility.
> Also, the idea of  
> > using
> > real annotations, while doing generation with
> xd2, does not sound
> > that bad, if it would help us to get things out
> the door more  
> > quickly.
> >
> > BTW, I did not find much on apt based tld
> generation, too ...
> >
> > Regards,
> > Rene
> >
> >
> >
> >> If the xdoclet 2 project already has a taglib
> module,
> >> I'd rather use that.  Is there any technical
> reason we would  
> >> need to
> >> have our own custom taglib generation module?
> >>
> >> Don
> >>
> >> Konstantin Priblouda wrote:
> >>
> >>
> >>> --- Don Brown <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
>  Surely, we can't be the first project
> interested
> 
> 
> >> in
> >>
> >>
>  using annotations to generate taglib tld's?
>  Is there any other
> >>>
> 
> >> solution
> >>
> >>
>  out there we can leverage?
> 
> 
> >>> Hi Don,  you have several options out of the
> box:
> >>> 1. XD2 has working taglib module, maven2
> plugin,
> >>>
> >>>
> >> and
> >>
> >>
> >>> fresh version of qdox parser (1.6.1) is said
> to
> >>>
> >>>
> >> work
> >>
> >>
> >>> with 1.5 sources - just add plugin invocation
> to
> >>>
> >>>
> >> your
> >>
> >>
> >>> pom.xml
> >>>
> >>> If you like to go for annotations, there is
> >>>
> >>>
> >> posibility
> >>
> >>
> >>> to create metadata provider which would pull
> the
> >>>
> >>>
> >> same
> >>
> >>
> >>> metadata from  annotations instead of @tags
> and
> >>> utilize the same templates.
> >>> regards,
> >>>
> >>> [ Konstantin Pribluda
> http://www.pribluda.de
> >>>
> >>>
> >> ]
> >>
> >>
> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and
> >>>
> >>>
> >> of production quality.
> >>
> >>
> >>> check it out: http://xdoclet.codehaus.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> __
> >> __
> >>
> >>
> >>> Do you Yahoo!?
> >>> Everyone is raving about the all-new Yahoo!
> Mail
> >>>
> >>>
> >> beta.
> >>
> >>
> >>> http://new.mail.yahoo.com
> >>>
> >>>
> >>>
> >>>
> >>
> --
> >> ---
> >>
> >>
> >>> To unsubscribe, e-mail:
> >>>
> >>>
> >> [EMAIL PROTECTED]
> >>
> >>
> >>> For additional commands, e-mail:
> >>>
> >>>
> >>>

Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Alexandru Popescu

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

On 11/21/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote:
> Don, I agree with you that a release should be scheduled sometime very
> soon. However, at this moment due to the latest changes I would
> suggest the following process:
>
> 1/ tag all dependencies (XWork2, Tiles2, Guice, CodeBehind etc.)

I'd agree that a stable release of XWork2 is key. If the not for the
dependency on a XWork beta, we might be voting Struts 2.01 GA right
now, and wonderng whether to declare the HEAD Struts 2.1 :)

We should keep in mind that we only announced the Struts 2.0.1 beta
two weeks ago. AFAIK,  there are no major issues witth the 2.0.1 beta,
and we should continue to encourage the general public to review the
2.0.1 beta.

The people working on Tiles2 are gearing up for some sort of release,
maybe even this weekend. But, since we distribute Tiles as a plugin,
so we could still mark Core GA and leave the Tiles plugin at beta.
Right now, all the plugins, including Tiles2 and Codebehind, are
tagged and released along with Core.



Why that? To have the users confused?


The Guide code was imported into XWork as the "inject" package, so
Guice is not a yet-another dependency. (Yeah!)



That was a good decission whoever took it.



> 2/ make a release of the external dependencies (XWork2, Tiles2, Guice)

+1 as to XWork (not that I have an XWork vote). Tiles 2 might be
happening anyway. As mentioned, Guice is not applicable.


> 3/ document the new things

Actually, the newest things are documented (thanks Don!). :)

The problem is that, as PMC member, I don't know whether the new
features have been deployed outside of our test applications.

Even in our own applications, we haven't fully leveraged the "new
things" yet, or even all the changes to "old things -- though I'm
working in that direction, and I'll continue to update the release
notes as I go.


> 4/ make an alpha to be tested/played with at least the committers

It would be helpful if committers, and other members of the dev@
community, would test and play with the HEAD. If we have a problem
with dev@ subscribers not being able to build the HEAD, we need to
address that problem directly.

What works best for me is to update and build XWork2 first (from the
command line), and then do the same for Struts2. (Again, from the
command line.) It takes a moment, but it eliminates more surprises,
and there's always other stuff to do in another window (like this!).



Building is one... having time to play with it is another. A
successful build doesn't guarantee anything in fact.



> 5/ only after these push a beta/ga

Before voting something a beta or GA, I believe it's important that
the PMC members be using the build in our own work. We should be at
least one step ahead of the general public. When we vote a build GA,
it should be because we are already using it in production ourselves,
so we *know* it works. IMHO, the time to talk about voting a build
beta or GA is when we ourselves have already deployed the bits, and
our own users have found them joyful.



I agree on this one.

./alex
--
.w( the_mindstorm )p.


-Ted.


>
> How does this sound to you?
>
> ./alex
> --
> .w( the_mindstorm )p.
>
>
> On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > My best vote right now would be Alpha.
> >
> > I'm trying to get up to speed with all the recent changes, but I
> > wouldn't want to put something out there for other people to use until
> > I"ve actually used it myself.
> >
> > -Ted.
> >
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> > > We really, really, really need to get a release out there, even if was
> > > determined to be beta.  The snapshot system is unpredictable and
> > > confusing for potential users, and really, users shouldn't be using them
> > > anyways as they aren't "official" struts releases.
> > >
> > > Any showstoppers to a likely beta release?
> > >
> > > Don
> > >
> > > PS. I just deployed the snapshots off trunk to maven
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
HTH, Ted.
* http://www.husted.com/struts/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Ted Husted

On 11/21/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote:

The dependency s for jfree groupId dependencies seem to be off here:

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/pom.xml

-Rahul


Yes, that's seems to be the culprit. Sharp eye, as always, Rahul.

Fixed in r477875

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Musachy Barroso
That makes sense, but we don't need a maven plugin just for that right?, 
just a jar file with those classes will do.


musachy
Don Brown wrote:
Well, you wouldn't want to include the code as if it was part of 
core.  You'd want to turn it into its own maven plugin, publish it, 
then have Struts 2 core use the plugin when it generates resources.   
It should be possible to just checkout core and build it without 
external path dependencies.


Don

Musachy Barroso wrote:
That's a good idea, I was using them inside core because it was 
easier :). Just change core's pom "includes" to something like:



   **/*.java
   ../maven/plugins/apt/.../*.java


I just tried it and it works ok.

musachy
James Mitchell wrote:
Ya, we should probably move this to /struts/maven/plugins/ or 
something similar.  Then we can just depend on it during build.



--
James Mitchell
678.910.8017




On Nov 21, 2006, at 6:18 PM, Don Brown wrote:


Rene, is there any reason this code should go into Struts 2 core?
Does it need to referenced at runtime?  I thought you were using these
annotations at compile time, which AFAIK, means they won't be included
in the compiled code, so there would be no reason to include the
annotation code in the jar.

I think this should be pushed out to a new Maven 2 plugin, perhaps
under /struts/maven instead of Struts 2.

Don

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:
I committed Musachy's patch with some modifications, so that the 
annotations are in place as well as the apt generation code, so we 
all can give it a review. Maybe we will have to do some more 
changes, but it looks quite straight forward in the first place.


Converting doc-tags to annotations is supposed to be a dirty job, 
I've done some tests and will continue tomorrow. May the regexes 
be with us ... :)


Nonetheless, we still can work "on both ends", giving both the apt 
and xd2 a try while having common meta information convention. I 
was not able to look into Konstantins patch yet, but I will do 
ASAP after doing the conversion stuff.


Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest
> it on linux before submitting.
>
> musachy
>
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50761&messageID=102782#102782 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-ma

Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Rene Gielen

Ted,

ok - you were faster with commit :)

Regards,
Rene

Ted Husted schrieb:

On 11/21/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote:
The dependency s for jfree groupId dependencies seem to be 
off here:


http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/pom.xml 



-Rahul


Yes, that's seems to be the culprit. Sharp eye, as always, Rahul.

Fixed in r477875

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Proposal] Struts 2 Result Selectors

2006-11-21 Thread Ted Husted

Would it be XW-440?

* http://jira.opensymphony.com/browse/XW-440

-T.

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

I'd say result selectors and WW-1393 are different.  WW-1393 has been
implemented, but result selectors have not, AFAIK.  I don't remember the
XWork ticket, off-hand, but the change involved DefaultActionInvocation
I believe.

Don

Ted Husted wrote:
> Is "Result Selectors" what was covered by WW-1393?
>
> * http://issues.apache.org/struts/browse/WW-1393
>
> Or, was that a different feature?
>
> Our WW-1393 says it was handled on the XWork end, but doesn't cite a
> ticket. I don't know what we actually did.
>
> Did we
>
> * Implement result selectors?
>
> * Implement " Returning Result directly"?
>
> Or, are they the same thing?
>
> -Ted.
>
> On 10/30/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> I really, really, like this idea, especially since it doesn't introduce
>> any new syntax or complications for the 90% of users that don't need
>> this.  The more we can keep Struts/XWork to simple, internal components,
>> the easier it will be to worth with both as a user and as a developer.
>>
>> This would make a nice plugin with default result types for common
>> situations.
>>
>> Don
>>
>> Ted Husted wrote:
>> > On 10/26/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> Then, each result selector is given a chance to select a single
>> String.
>> >> If a result has when="modern-browser,partial-html",
>> >> the each selector will be given a chance to return its "when"
>> token, and
>> >> xwork will match them together as AND.
>> >
>> > Or, with wildcards ...
>> >
>> >  
>> > 
>> > 
>> >
>> >
>> >/{1}{result-code}{role}{agent}.jsp
>> >
>> >/{1}-error.jsp
>> >
>> > 
>> >
>> > Each "matcher" could add a named token into the context, like
>> > "-manager". The selector result could then resolve the wildcard path
>> > and delegate to another Result, like the default ServletDispatcher
>> > Result. The matchers might not inject a token, if it was the default
>> > or didn't apply for some reason.
>> >
>> > So, an application using this strategy might have pages named like.
>> >
>> > * ViewFoo.jsp
>> > * ViewFoo-netscape4.jsp
>> > * ViewFoo-manager.jsp
>> > * ViewFoo-manager-netscape4.jsp
>> > * ViewFoo-failure.jsp
>> >
>> > Of course, this strategy presupposes using something like SiteMesh or
>> > Tiles to provide the standard layout, so that each "page" can just
>> > focus on it's own content.
>> >
>> > -T.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Antonio Petrelli

Ted Husted ha scritto:

On 11/21/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:

Thoughts?


The key question is whether there are at least three (3) active
committers who are using Tiles in their own projects and could vote +1
for GA release, should the build quality warrant.


For what I can say, surely Tiles 2 cannot be released as GA (neither as 
alpha I suppose) since there is a blocking issue (just reopened :-) ) 
and some major issues, not to mention a strange effect that I had last 
week under Linux (this evening I will check it, I have Linux only at 
home) that made the Selenium tests fail. I did not open the issue simply 
because I was not sure about it.


Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown
Ah, I believe I figured it out.  It actually works exactly how we want 
it.  Why we see a problem is because of this devMode setting.  The 
problem is XWork expects a "devMode" property, but Struts wants 
"struts.devMode".  When we load default.properties, if we detected a 
"struts.devMode" property, we create a "devMode" property for XWork 
automatically.


Therefore, if you put in struts-default.xml:




It should work just fine, as should the rest of the properties.  Still, 
before we move them, perhaps we should resolve what to do with their 
comments.


Don

Ted Husted wrote:

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

# struts.devMode = false


devMode was just an example. The same thing seems to happen with most
any setting in default.properties. Having them in both places doesn't
cause a build error, but I didn't test to see if struts-default.xml
supercedes default.properties, as you would expect.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread James Mitchell
Ya, we should probably move this to /struts/maven/plugins/ or  
something similar.  Then we can just depend on it during build.



--
James Mitchell
678.910.8017




On Nov 21, 2006, at 6:18 PM, Don Brown wrote:


Rene, is there any reason this code should go into Struts 2 core?
Does it need to referenced at runtime?  I thought you were using these
annotations at compile time, which AFAIK, means they won't be included
in the compiled code, so there would be no reason to include the
annotation code in the jar.

I think this should be pushed out to a new Maven 2 plugin, perhaps
under /struts/maven instead of Struts 2.

Don

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:
I committed Musachy's patch with some modifications, so that the  
annotations are in place as well as the apt generation code, so we  
all can give it a review. Maybe we will have to do some more  
changes, but it looks quite straight forward in the first place.


Converting doc-tags to annotations is supposed to be a dirty job,  
I've done some tests and will continue tomorrow. May the regexes  
be with us ... :)


Nonetheless, we still can work "on both ends", giving both the apt  
and xd2 a try while having common meta information convention. I  
was not able to look into Konstantins patch yet, but I will do  
ASAP after doing the conversion stuff.


Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest
> it on linux before submitting.
>
> musachy
>
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa? 
threadID=50761&messageID=102782#102782



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showcase and zero xml config

2006-11-21 Thread Don Brown

Ted Husted wrote:

Dynamic method calling isn't evil. Essentially, the framework
framework defaults a dynamic method call to execute, when no other is
specified. Wildcards utilize dynamic method calling too.

The problem is how the original dynamic method calling is
*implemented*. The original implementation doesn't create a virtual
mapping, as do wildcards and the plugin. Exception code detects the
bang, parses it out, and calls the other method -- behind the back of
the rest of the framework. It was not implemented as a first-class
feature. It's closer to a prototype feature that we never took to the
next level.

I'll look at the ClassPathProvider to see if we can use that to
finally fix the original she-bang implementation.

Ah, OK, I see where you are coming from now.  Sure, if you use the 
classpath provider, the problem is really solved.  We could create a 
mapper for every action method we discover - "action", "action!execute", 
"action!input" - which also has the advantage of making the 
configuration browser plugin, which I think we really should promote 
more, more useful.


Don


-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread David H. DeWolf



Ted Husted wrote:

On 11/21/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:

Thoughts?


The key question is whether there are at least three (3) active
committers who are using Tiles in their own projects and could vote +1
for GA release, should the build quality warrant.

When making the tally, we should keep in mind that a binding +1 on a
release means: I will help support the release by applying patching
and answering questions on the user list.

Regardless of where the code lives, under ASF rules, we need a binding
quorum of three, but a binding quorum of three is all we need.


It's my impression that we meet this quorom (Antonio, Greg, and myself 
at minimum).  I'm sure they'll correct me if I'm wrong :)


What I'm more concerned about is the community/oversight.  I find it to 
be very beneficial that people like yourself are monitoring tiles mail 
and can chime in on topics such as these.  If Tiles were to graduate to 
a TLP, I'm not yet convinced that we'd have that type of 'vetran' 
oversight.


I also think it's important to make sure that the current activity is 
sustainable.  Tiles2 has been revolutionized and is now at a point where 
it should be pushed out for the community to play with.  That said, I'm 
sure that it's user base is still almost nil, (and will be until an 
initial release) and it would be nice to see how it's accepted and grows 
before having to decide where it belongs.


I guess for those reasons, I'd like to maintain the status quo 
temporarily and find a way to release an initial cut either:


1) as a sandbox project (similar to how incubator poddlings release)

or

2) as a struts project (graduating from the sandbox but not yet from the 
struts umbrella).





-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread Konstantin Priblouda


--- James Mitchell <[EMAIL PROTECTED]> wrote:

> No objections here.
> 
> Konstantin, I hope you understand that I (and I'm
> sure others) really  
> appreciate your help.
 
Being long time commiter on different projects helps
to understand a lot - as I'm not a commiter on
struts/ww,
I may propose changes and hope they will be accepted
;)

> I hate that this is an
> either/or decision that  
> has to be made and I can't help but feel that you
> might be let down  
> by our interest in making apt work.

I'm fine with either solution. Since I'm not allowed
to use S2 in my work for money yet, I can wait till
decisions are made and stable release is out. 

Nevertheless, even if you prefer annotations to
configura actions, xdoclet-2 module for xwork.xml
( or is it called struts.xml? ) is already on the
repo ;)  

regards,

[ Konstantin Pribluda http://www.pribluda.de ]
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 

Sponsored Link

Mortgage rates near 39yr lows. $420k for $1,399/mo. 
Calculate new payment! 
www.LowerMyBills.com/lre

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Don Brown

Alexandru Popescu wrote:

I am not gonna argue against your argument but just say: the user will
be confused when he will not be able to run the plugins because a
small change in one of them has broken it. The release should be able
to guarantee a set of plugins that work out of the box. The user
should not have to deal with different projects, different lifecycles,
etc and finally figure out that we must use beta-xyz of plugin X
instead of beta-xxz of the same plugin. This would be synonim to
saying: "hey, we have tried our release with something that worked for
us, but we cannot guarantee what will work for you".
I agree completely.  That's why Struts plugins use the same lifecycle, 
project, and version number as Struts 2 core.  The difference is we will 
include in the release notes comments about the quality or confidence of 
each plugin.  If you can think of a better way to handle it, let's hear 
it. :)


Don


./alex
--
.w( the_mindstorm )p.



> That was a good decission whoever took it.

AFAIK, importing the Guice code into XWork2 was Don's idea, and I 
would agree.



> Building is one... having time to play with it is another. A
> successful build doesn't guarantee anything in fact.

Exactly. When it comes to a release, it's the PMC's to do more than
make sure the code builds. It's our job to warrant that the bits work
well, based on our own direct experience. As the saying goes, "We eat
our own dog food," and then we pass the bowl. :)

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2.0.1 sample portlet app

2006-11-21 Thread Don Brown
Honestly, I don't think that example was tested before release.  Nils is 
the guy who wrote it, and perhaps he can helpNils?


Don

tom tom wrote:

Hi,

We downloaded struts 2.0.1, there is a struts2-portlet-2.0.1.war.

Where can I see instructions to deploy this war file and see how it works. I
can't find any documentation.

Do I need to apply any patches.?

We are using uPortal as the portal server.


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Proposal] Struts 2 Result Selectors

2006-11-21 Thread Don Brown
I'd say result selectors and WW-1393 are different.  WW-1393 has been 
implemented, but result selectors have not, AFAIK.  I don't remember the 
XWork ticket, off-hand, but the change involved DefaultActionInvocation 
I believe.


Don

Ted Husted wrote:

Is "Result Selectors" what was covered by WW-1393?

* http://issues.apache.org/struts/browse/WW-1393

Or, was that a different feature?

Our WW-1393 says it was handled on the XWork end, but doesn't cite a
ticket. I don't know what we actually did.

Did we

* Implement result selectors?

* Implement " Returning Result directly"?

Or, are they the same thing?

-Ted.

On 10/30/06, Don Brown <[EMAIL PROTECTED]> wrote:

I really, really, like this idea, especially since it doesn't introduce
any new syntax or complications for the 90% of users that don't need
this.  The more we can keep Struts/XWork to simple, internal components,
the easier it will be to worth with both as a user and as a developer.

This would make a nice plugin with default result types for common
situations.

Don

Ted Husted wrote:
> On 10/26/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> Then, each result selector is given a chance to select a single 
String.

>> If a result has when="modern-browser,partial-html",
>> the each selector will be given a chance to return its "when" 
token, and

>> xwork will match them together as AND.
>
> Or, with wildcards ...
>
>  
> 
> 
>
>
>/{1}{result-code}{role}{agent}.jsp
>
>/{1}-error.jsp
>
> 
>
> Each "matcher" could add a named token into the context, like
> "-manager". The selector result could then resolve the wildcard path
> and delegate to another Result, like the default ServletDispatcher
> Result. The matchers might not inject a token, if it was the default
> or didn't apply for some reason.
>
> So, an application using this strategy might have pages named like.
>
> * ViewFoo.jsp
> * ViewFoo-netscape4.jsp
> * ViewFoo-manager.jsp
> * ViewFoo-manager-netscape4.jsp
> * ViewFoo-failure.jsp
>
> Of course, this strategy presupposes using something like SiteMesh or
> Tiles to provide the standard layout, so that each "page" can just
> focus on it's own content.
>
> -T.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: [s2] Message resources from database

2006-11-21 Thread Ted Husted

Ahh, yes, page 377.

Now, to embarass me further, do we cover the technique anywhere in the
Struts 2 dcocumentation? It seems straight forward. Perhaps, we could
even do it for the MailReader.

-Ted.

On 11/21/06, Jason Carreira <[EMAIL PROTECTED]> wrote:

I thought you read WebWork in Action ;-)
There's a DB-driven ResourceBundle described in there and in the source code 
for the book.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread Don Brown
Wait - this isn't going in Struts 2 core, right?  This is a separate 
artifact?


Don

Rene Gielen wrote:

Musachy,

I applied the patch with slight modifications to HEAD. I refactored it to use 
oas2.annotations.taglib namespace, in core module. Looks good so far, thank you 
very much!

As next step, I will work on converting xd javadoc tags to annotations, 
starting tomorrow I guess...

Regards,
Rene

  

I attached a patch to WW-1392. It has the changes to
the POMs and the 
classes for apt. The namespace  for the apt stuff is

probably not the best.

musachy

Rainer Hermanns wrote:


Musachy,
can you send me over your tld processor stuff?
Best would be to attach it to the jira ticket
  

(WW-1392).


tia,
Rainer


  

-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=49702&messageID=102766#102766


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Proposal - reorg menu on the showcase app

2006-11-21 Thread Rainer Hermanns
James,
great proposal, +1 from me.

If you need any help to fix the samples I'll hopefully have some time
left till the xwork release to help out there.

How do you plan to implement this navigation menu? Plain CSS menus or
with the Dojo menu stuff or even something completely different?

-Rainer

> I'm playing around with the showcase app and noticed the menu has
> grown to so many choices, that it is wrapping around to the next line.
>
> Can we prune the choices into a 1st and 2nd level of menu items?
>
> If so, I'd like to propose the following:
>
> Navigation:
>* Home (simple link back to the root of the app)
>
>* Developer Tools
> * Config Browser
>
>* Feature Demos
> * Chat (AJAX)
> * Action Chaining
> * Continuations
> * Conversion
> * CRUD
> * Execute & Wait
> * Person Manager
> * Token
> * Tags
> * Validation
>
>* Plugin Demos  (a short description and demo of each plugin)
> * Fileupload
> * File Upload  (?? why 2 file uploads ??)
> * File Download
> * JSF
> * Freemarker
> * Tiles
> * Jasper Reports
> * JFreeChart
>
>* Games
> * Hangman
>
>* Help
> * Struts website
> * Struts wiki
>
>
>
> Note - We have 2 File Upload demos, and both seem to be broken.  One
> says 'File cannot be empty' when I try to upload an image, and the
> other just pukes on each link for the different demo types (single,
> multiple, etc).
>
> Ok, so have I missed any?  I need feedback on the organization of the
> primary menus, do the proposed menus correctly describe what is under
> it?
>
> Several of the other demos seem to be broken as well, so I'll address
> those as I reorganize the menu.
>
>
>
> --
> James Mitchell
> 678.910.8017
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Proposal] Struts 2 Result Selectors

2006-11-21 Thread Don Brown
Nope, that's something different.  Perhaps I didn't open up a ticket on 
that, and just referred the commit to the struts one.


Don

Ted Husted wrote:

Would it be XW-440?

* http://jira.opensymphony.com/browse/XW-440

-T.

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

I'd say result selectors and WW-1393 are different.  WW-1393 has been
implemented, but result selectors have not, AFAIK.  I don't remember the
XWork ticket, off-hand, but the change involved DefaultActionInvocation
I believe.

Don

Ted Husted wrote:
> Is "Result Selectors" what was covered by WW-1393?
>
> * http://issues.apache.org/struts/browse/WW-1393
>
> Or, was that a different feature?
>
> Our WW-1393 says it was handled on the XWork end, but doesn't cite a
> ticket. I don't know what we actually did.
>
> Did we
>
> * Implement result selectors?
>
> * Implement " Returning Result directly"?
>
> Or, are they the same thing?
>
> -Ted.
>
> On 10/30/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> I really, really, like this idea, especially since it doesn't 
introduce

>> any new syntax or complications for the 90% of users that don't need
>> this.  The more we can keep Struts/XWork to simple, internal 
components,
>> the easier it will be to worth with both as a user and as a 
developer.

>>
>> This would make a nice plugin with default result types for common
>> situations.
>>
>> Don
>>
>> Ted Husted wrote:
>> > On 10/26/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> Then, each result selector is given a chance to select a single
>> String.
>> >> If a result has when="modern-browser,partial-html",
>> >> the each selector will be given a chance to return its "when"
>> token, and
>> >> xwork will match them together as AND.
>> >
>> > Or, with wildcards ...
>> >
>> >  
>> > 
>> > 
>> >
>> >
>> >type="selector">/{1}{result-code}{role}{agent}.jsp

>> >
>> >/{1}-error.jsp
>> >
>> > 
>> >
>> > Each "matcher" could add a named token into the context, like
>> > "-manager". The selector result could then resolve the wildcard 
path

>> > and delegate to another Result, like the default ServletDispatcher
>> > Result. The matchers might not inject a token, if it was the 
default

>> > or didn't apply for some reason.
>> >
>> > So, an application using this strategy might have pages named like.
>> >
>> > * ViewFoo.jsp
>> > * ViewFoo-netscape4.jsp
>> > * ViewFoo-manager.jsp
>> > * ViewFoo-manager-netscape4.jsp
>> > * ViewFoo-failure.jsp
>> >
>> > Of course, this strategy presupposes using something like 
SiteMesh or

>> > Tiles to provide the standard layout, so that each "page" can just
>> > focus on it's own content.
>> >
>> > -T.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Don Brown
Rainer, I vote to roll XWork 2.0-beta-2 Thursday.  Let me know if there 
are any showstoppers and I'll try to squeeze in working on them between 
playing my Nintendo Wii games :)


Don

Rainer Hermanns wrote:

Don and others,

regarding the XWork 2.0 release, I only have time to do this either
this thursday or later then monday.
Haven't had a look at the docs lately, so there might be some things to do.
I'll recheck all the other open tasks till tomorrow evening and report
back, if thursday could be the xwork 2 release date.

Toby, are you still working on the docs?

regards,
Rainer

  

Don, I agree with you that a release should be scheduled sometime very
soon. However, at this moment due to the latest changes I would
suggest the following process:

1/ tag all dependencies (XWork2, Tiles2, Guice, CodeBehind etc.)
2/ make a release of the external dependencies (XWork2, Tiles2, Guice)
3/ document the new things
4/ make an alpha to be tested/played with at least the committers
5/ only after these push a beta/ga

How does this sound to you?

./alex
--
.w( the_mindstorm )p.


On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:


My best vote right now would be Alpha.

I'm trying to get up to speed with all the recent changes, but I
wouldn't want to put something out there for other people to use until
I"ve actually used it myself.

-Ted.


On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
  

We really, really, really need to get a release out there, even if was
determined to be beta.  The snapshot system is unpredictable and
confusing for potential users, and really, users shouldn't be using


them
  

anyways as they aren't "official" struts releases.

Any showstoppers to a likely beta release?

Don

PS. I just deployed the snapshots off trunk to maven


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread Rene Gielen
Musachy,

I applied the patch with slight modifications to HEAD. I refactored it to use 
oas2.annotations.taglib namespace, in core module. Looks good so far, thank you 
very much!

As next step, I will work on converting xd javadoc tags to annotations, 
starting tomorrow I guess...

Regards,
Rene

> I attached a patch to WW-1392. It has the changes to
> the POMs and the 
> classes for apt. The namespace  for the apt stuff is
> probably not the best.
> 
> musachy
> 
> Rainer Hermanns wrote:
> > Musachy,
> > can you send me over your tld processor stuff?
> > Best would be to attach it to the jira ticket
> (WW-1392).
> >
> > tia,
> > Rainer
> >
> >
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=49702&messageID=102766#102766


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



struts 2.0.1 sample portlet app

2006-11-21 Thread tom tom

Hi,

We downloaded struts 2.0.1, there is a struts2-portlet-2.0.1.war.

Where can I see instructions to deploy this war file and see how it works. I
can't find any documentation.

Do I need to apply any patches.?

We are using uPortal as the portal server.


-- 
View this message in context: 
http://www.nabble.com/struts-2.0.1-sample-portlet-app-tf2682160.html#a7481300
Sent from the Struts - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown

Ted Husted wrote:

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

Yeah, this would work, as would a new namespace, using XML comments, or
perhaps something else.  I was just pointing out that we'll need to
implement something like what works for properties now.


I don't know what  "a new namespace" means.

An advantage of actually putting the remarks in the element is that
they can be parsed by anything that can read XML.

What we've started to do with properties comments is a neat idea, and
we should elevate it to a first-class feature with a clean
implementation.
I've been toying with the idea of using proper namespaces for 
struts-default.xml.  This would allow us to define new namespaces for 
cases like this.  It could look like this:


http://struts.apache.org/2.0"; 
xmlns:doc="http://struts.apache.org/2.0/doc";>

 
   
 Dev mode is a neat mode 
   
 


Anyways, the point is we could add new elements and attributes without 
affecting the core namespace.  Currently, this isn't possible since 
DTD's don't allow it.

> Dispatcher field to match the setting name.)
Yeah, actually, this setting doesn't exist anymore.  This is because the
list of xml files to load can't be in the xml files to load  So,
there is an web.xml init param you can set if you want to override
this.  Otherwise, the list in that Dispatcher constant will be used.

> recite the same fact twice. (I suppose we should also rename the
> Though, maybe this setting  could be injected now, so that we don't

Well, it might be otherwise ignored, but a
"struts.configuration.files" setting does exists in the
default.properties.

Is there a cannonical list of settings expressed as Java code? What
determines whether a "setting exists"?

There is a class, StrutsConstants I believe, that has a list.

Don


-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Niall Pemberton

On 11/19/06, Martin Cooper <[EMAIL PROTECTED]> wrote:


Hmm. Personally, I think 'styleId' is a poor name in the first place, so I'm
not all that enamored of perpetuating it. (It seemed like a decent choice at
the time, but that was many years ago, and if we were to be choosing the
name today, I'd have suggested 'domId' instead. But that's all water under
the bridge. ;)

How about we just stick with 'for'? We have generally tried to use the same
name for an attribute as for what will be rendered, and there's no reason we
can't use 'for' (unlike 'id' which we could not use, which is why 'styleId'
exists).

An aside: How did we end up with the 'errorStyleId' thing? I must have been
asleep when that happened. Why on earth would I want to give an element a
different DOM identifier if there's an error in the field's value? That
would certainly complicate any JavaScript code I have that references that
element. A different style, yes, but a different id?



[1][2] Mea culpa :-(  Its not that long ago when "no script" was a
common refrain and the very naming of "styleId" indicates that these
attributes were seen in purely CSS terms. That now looks dated but for
anyone who was using "id" just to apply style, then having an error
equivalent seemed consistent in terms of the three "style" attributes
that Struts tags supported. As you said earlier though, in hindsight
styleId could have been better named (domId) in the current rich
client experience environment.

Niall

[1] https://issues.apache.org/struts/browse/STR-1525
[2] http://svn.apache.org/viewvc?view=rev&revision=51839

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Alexandru Popescu

Don, I agree with you that a release should be scheduled sometime very
soon. However, at this moment due to the latest changes I would
suggest the following process:

1/ tag all dependencies (XWork2, Tiles2, Guice, CodeBehind etc.)
2/ make a release of the external dependencies (XWork2, Tiles2, Guice)
3/ document the new things
4/ make an alpha to be tested/played with at least the committers
5/ only after these push a beta/ga

How does this sound to you?

./alex
--
.w( the_mindstorm )p.


On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

My best vote right now would be Alpha.

I'm trying to get up to speed with all the recent changes, but I
wouldn't want to put something out there for other people to use until
I"ve actually used it myself.

-Ted.


On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> We really, really, really need to get a release out there, even if was
> determined to be beta.  The snapshot system is unpredictable and
> confusing for potential users, and really, users shouldn't be using them
> anyways as they aren't "official" struts releases.
>
> Any showstoppers to a likely beta release?
>
> Don
>
> PS. I just deployed the snapshots off trunk to maven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Ted Husted

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

It should work just fine, as should the rest of the properties.  Still,
before we move them, perhaps we should resolve what to do with their
comments.


My first preference would be to enumerate all the settings in
StrutsConstants, where we can use JavaDocs and snippets, so that there
is one, complete, coherent, fully documented list of settings.

I also wonder if we want to spit out the full documentation as part of
precise error reporting, or whether we are really just looking for a
helpful hint.

My suggestion would be to put the detailed documentation in JavaDocs
at StrutsConstants, where can also apply snippets, and then include a
remark attribute in the constants element, that we can tailor for
error reporting. (Or just an XML comment, if that's easier for some
reason.)

I don't know if this would be the best time to get into namespaces. We
might want to save that for later, after the dust settles.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems checking out the source

2006-11-21 Thread Ted Husted

If there's not a particular reason why you need the latest code, the
source code bundled with the Struts 2.0.1 beta is current as of last
month.

* http://struts.apache.org/download.cgi#struts201

Perhaps that will be enough to get started on whatever it is you want to do.

-Ted.

On 11/20/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:

I hope this is the right place to ask this question. If not, then please
accept my apologies.

I've been trying to check out the Struts 2 source tree, but with no
luck. I'm able to browse up to the "trunk" folder using the Tortoise SVN
repository browser, but but for any subfolder of trunk, I get the error
message

svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

The same thing happens when I try to use the command line version of the
client

C:\Sources\Struts2>svn co
http://svn.apache.org/repos/asf/struts/struts2/trunk
svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

Is this a firewall issue or do I need to do some sort of configuration?

Every help is appreciated.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Ted Husted

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

However, having default.properties override struts.xml is definitely not
what we want


Never mind on that score. It seems to be working now. I turned
DynamicMethodInvocation off in the application's struts.xml and now it
is in fact disabled.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown
The only disadvantage of including the settings in struts-default.xml 
file is we lose the comments above each setting.  A recent change I did 
was to plug in a Properties file loader that not only remembers line 
numbers but also comments above an entry.  These comments are saved in 
Location objects so that debugging and error logs later will include them.


However, having default.properties override struts.xml is definitely not 
what we want...We could also split up the LegacyPropertiesLoader to only 
load one at a time (default.properties and struts.properties).


Don

Ted Husted wrote:

I'm thinking that a problem I having with setting properties in the
struts.xml (see r477484) may be because the default properties file is
being loaded after the XML configurations, and overriding my changes.

In any event, I'm going to try moving the default.properties settings
to the struts-default.xml, so that everything is configured in one
place.

-Ted.

On 11/20/06, Ted Husted <[EMAIL PROTECTED]> wrote:

Now that we can configure constants via the XML files

* http://struts.apache.org/2.x/docs/constant-configuration.html

is using the struts.properties deprecated?

Or, would there be other valid reasons to keep it around?

-T.







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Don Brown

That's fine...anything is better than a snapshot :)

Don

Ted Husted wrote:

My best vote right now would be Alpha.

I'm trying to get up to speed with all the recent changes, but I
wouldn't want to put something out there for other people to use until
I"ve actually used it myself.

-Ted.


On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:

We really, really, really need to get a release out there, even if was
determined to be beta.  The snapshot system is unpredictable and
confusing for potential users, and really, users shouldn't be using them
anyways as they aren't "official" struts releases.

Any showstoppers to a likely beta release?

Don

PS. I just deployed the snapshots off trunk to maven


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: struts 2.0.1 sample portlet app

2006-11-21 Thread Ted Husted

There's a README.txt for the portlet example.

README.txt - portlet

This is a simple example of using the portlet API with Struts applications.

For more on getting started with Struts, see

* http://cwiki.apache.org/WW/home.html

WARNING - Additional configuration required for deployment

Due to difference in portlet contrainer implementations, the porlet
WAR is not ready-to-run. Extract the porlet WAR, and then copy the
contents of apps/portlet/src/main/etc// into the
WAR's WEB-INF directory.

-- HTH, Ted.


On 11/21/06, tom tom <[EMAIL PROTECTED]> wrote:


Hi,

We downloaded struts 2.0.1, there is a struts2-portlet-2.0.1.war.

Where can I see instructions to deploy this war file and see how it works. I
can't find any documentation.

Do I need to apply any patches.?

We are using uPortal as the portal server.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Proposal] Struts 2 Result Selectors

2006-11-21 Thread Don Brown

Just return a Result object, instead of a String.  So...

public Result save() {
 // do some stuff
 return new ServletActionRedirectResult("someAction");
}

Only really valuable, IMO, for returning redirects to other actions, but 
it could be taken advantage of in alternative Action implements like a 
Struts 2 port of Struts Flow.


Don

Ted Husted wrote:

OK, do you remember how the WW-1393 feature works, or where we test it?

-Ted.

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

Nope, that's something different.  Perhaps I didn't open up a ticket on
that, and just referred the commit to the struts one.

Don

Ted Husted wrote:
> Would it be XW-440?
>
> * http://jira.opensymphony.com/browse/XW-440
>
> -T.
>
> On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> I'd say result selectors and WW-1393 are different.  WW-1393 has been
>> implemented, but result selectors have not, AFAIK.  I don't 
remember the
>> XWork ticket, off-hand, but the change involved 
DefaultActionInvocation

>> I believe.
>>
>> Don
>>
>> Ted Husted wrote:
>> > Is "Result Selectors" what was covered by WW-1393?
>> >
>> > * http://issues.apache.org/struts/browse/WW-1393
>> >
>> > Or, was that a different feature?
>> >
>> > Our WW-1393 says it was handled on the XWork end, but doesn't 
cite a

>> > ticket. I don't know what we actually did.
>> >
>> > Did we
>> >
>> > * Implement result selectors?
>> >
>> > * Implement " Returning Result directly"?
>> >
>> > Or, are they the same thing?
>> >
>> > -Ted.
>> >
>> > On 10/30/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> I really, really, like this idea, especially since it doesn't
>> introduce
>> >> any new syntax or complications for the 90% of users that don't 
need

>> >> this.  The more we can keep Struts/XWork to simple, internal
>> components,
>> >> the easier it will be to worth with both as a user and as a
>> developer.
>> >>
>> >> This would make a nice plugin with default result types for common
>> >> situations.
>> >>
>> >> Don
>> >>
>> >> Ted Husted wrote:
>> >> > On 10/26/06, Don Brown <[EMAIL PROTECTED]> wrote:
>> >> >> Then, each result selector is given a chance to select a single
>> >> String.
>> >> >> If a result has when="modern-browser,partial-html",
>> >> >> the each selector will be given a chance to return its "when"
>> >> token, and
>> >> >> xwork will match them together as AND.
>> >> >
>> >> > Or, with wildcards ...
>> >> >
>> >> >  
>> >> > 
>> >> > 
>> >> >class="o.a.s.d.ServletDispatcherResult>

>> >> >  
>> >> >
>> >> > 
>> >> >
>> >> >> type="selector">/{1}{result-code}{role}{agent}.jsp
>> >> >
>> >> >/{1}-error.jsp
>> >> >
>> >> > 
>> >> >
>> >> > Each "matcher" could add a named token into the context, like
>> >> > "-manager". The selector result could then resolve the wildcard
>> path
>> >> > and delegate to another Result, like the default 
ServletDispatcher

>> >> > Result. The matchers might not inject a token, if it was the
>> default
>> >> > or didn't apply for some reason.
>> >> >
>> >> > So, an application using this strategy might have pages named 
like.

>> >> >
>> >> > * ViewFoo.jsp
>> >> > * ViewFoo-netscape4.jsp
>> >> > * ViewFoo-manager.jsp
>> >> > * ViewFoo-manager-netscape4.jsp
>> >> > * ViewFoo-failure.jsp
>> >> >
>> >> > Of course, this strategy presupposes using something like
>> SiteMesh or
>> >> > Tiles to provide the standard layout, so that each "page" can 
just

>> >> > focus on it's own content.
>> >> >
>> >> > -T.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XWork maven reports generation

2006-11-21 Thread James Mitchell
I know we don't use Maven's site generation for xwork, but in case  
anyone wants to look, I just added Coberta coverage analyses report  
to the maven configuration.


 $ cd xwork/
 $ mvn clean install site

 Look under xwork/target/site/, and it will look like this:
  http://people.apache.org/~jmitchell/xwork/site/

 Or go straight to the report
  http://people.apache.org/~jmitchell/xwork/site/cobertura/index.html


Not too shabby ;)





--
James Mitchell
678.910.8017





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown
The real solution is to split out the loading of default.properties and 
struts.properties into two configuration provider instances.


It is puzzling why copying over the settings to struts-default.xml would 
break the tests... What errors are you seeing?


Don

Ted Husted wrote:

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

So where are we now, then?  Have the settings been moved to
struts-default.xml?  Are there any other things that need to be done 
here?


I stopped trying to move them, since the tests failed if I tried.

I am able to override settings in an applications struts.xml, which is
the thing that matters most.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Paul Benedict

Martin,

Are you looking for a  tag that simply passes through all 
parameters, and you name the element to be created?


Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown
So where are we now, then?  Have the settings been moved to 
struts-default.xml?  Are there any other things that need to be done here?


Don

Ted Husted wrote:

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

However, having default.properties override struts.xml is definitely not
what we want


Never mind on that score. It seems to be working now. I turned
DynamicMethodInvocation off in the application's struts.xml and now it
is in fact disabled.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fwd: [s2] Message resources from database

2006-11-21 Thread Ted Husted

This question has come up a couple of times, and I don't think I've
seen an answer.

Is there a database solution for X2/S2 message resources floating around?

If not, we should say so on the "Struts 1 Solutions" FAQ, since it's a
reasonably common use case, and people will continue to ask.

-Ted.

-- Forwarded message --
From: Nate Drake <[EMAIL PROTECTED]>
Date: Nov 17, 2006 10:19 AM
Subject: [s2] Message resources from database
To: user@struts.apache.org

Hi,

We're in the process of migrating a Struts1 app to Struts2.  In Struts1 we
created a subclass of PropertyMessageResources to get our messages from the
database instead of properties files.  I can't seem to find how we'd go about
doing this in Struts2.  Do I just subclass
com.opensymphony.xwork.util.LocalizedTextUtil and configure the
framework to use it?

Thanks!

Nate

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Don Brown

Ted Husted wrote:

When I was playing with the settings ast night, I wasn't able to move
most settings out of default.properties at all. As soon as I did, most
of the tests began to fail. Thats as far as I got.

WRT inline documentation, for XML perhaps we could include remarks as
the body of the element and have loader pick it up from there.




Ideally, I'm thinking we should only use default.properties to set
properties that concern loazding the XML documents, like

### A list of configuration files automatically loaded by Struts
struts.configuration.files=struts-default.xml,struts-plugin.xml,struts.xml 



Though, the last time I tried to use the property in the
ActionMapping, it didn't work. We had to hardcode it to prime the pump
(for the tests?).

Dispatcher.java (145)
private static final String DEFAULT_CONFIGURATION_PATHS =
"struts-default.xml,struts-plugin.xml,struts.xml";

Though, maybe this setting  could be injected now, so that we don't
recite the same fact twice. (I suppose we should also rename the
Dispatcher field to match the setting name.)
Yeah, actually, this setting doesn't exist anymore.  This is because the 
list of xml files to load can't be in the xml files to load  So, 
there is an web.xml init param you can set if you want to override 
this.  Otherwise, the list in that Dispatcher constant will be used.


Don


-Ted.

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

The only disadvantage of including the settings in struts-default.xml
file is we lose the comments above each setting.  A recent change I did
was to plug in a Properties file loader that not only remembers line
numbers but also comments above an entry.  These comments are saved in
Location objects so that debugging and error logs later will include 
them.


However, having default.properties override struts.xml is definitely not
what we want...We could also split up the LegacyPropertiesLoader to only
load one at a time (default.properties and struts.properties).

Don

Ted Husted wrote:
> I'm thinking that a problem I having with setting properties in the
> struts.xml (see r477484) may be because the default properties file is
> being loaded after the XML configurations, and overriding my changes.
>
> In any event, I'm going to try moving the default.properties settings
> to the struts-default.xml, so that everything is configured in one
> place.
>
> -Ted.
>
> On 11/20/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>> Now that we can configure constants via the XML files
>>
>> * http://struts.apache.org/2.x/docs/constant-configuration.html
>>
>> is using the struts.properties deprecated?
>>
>> Or, would there be other valid reasons to keep it around?
>>
>> -T.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-21 Thread Jon Wilmoth
I noticed there was an earlier post regarding this (10/10/06). I downloaded the 
beta version of 2.0.1 from the struts website and I'm getting the same NPE.  Is 
there a work around?

Root cause follows. 
java.lang.NullPointerException 
at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) 
at 
org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51)
 
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:42)
 
at 
org.apache.jsp.registerUser_jsp._jspx_meth_struts2_datepicker_0(registerUser_jsp.java:1296)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Antonio Petrelli

David H. DeWolf ha scritto:

1) Do we need to support EL for an alpha release?


I think this an issue that needs to resolved, since it will be the 
replacement of "beanName" and similar attributes in Tiles configuration 
files. There was a feature in Tiles 1.1 and it has been erased when 
those attributes were removed, so we need to give a replacement.

Probably it should be of "critical" priority.


2) Must we flush out all documentation for an alpha release?


I am not sure about it, since tiles-documentation needs to be updated, 
but I think it is not-so-important for the moment, so I agree with you.



3) Do we need to extend the putList features (SB-60)


Ok, changed to minor.

Thanks for the feedback :-)

Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showcase and zero xml config

2006-11-21 Thread Ted Husted

Is there a way we could work wildcards into the mix?

A useful feature of wildcards is that when "login_*" is applied to
"login_input, then "login_input" becomes a virtual action mapping.
This means that validations, messages,  resources,  and type
converters can be applied to login_input, as if it were an action
mapping (which it is!).

As it stands, "dynamic invocation" is handled as an internal exception
where the "login" action is tricked into executing the input method
instead of execute, but the rest of the framework still thinks we are
invoking login.execute.

I'd like the notion of a default "dynamic invocation" separator better if

(1) It created a virtual action mapping, as the wildcard code does, and

(2) It wasn't hardwired to an arbitrary character

Hmmm, (1) actually sounds a bit like what the Codebehind plugin does
for default action mappings, except that we are adding a method to the
configuration

-T.

On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:

I disagree; I like the "old hardwired" action!method syntax and I think
it proves itself useful in this case once again.  However, I'm open to a
compromise where if the dynamic invocation flag is turned off, a
method-level annotation is required.

Don

Ted Husted wrote:
> I haven't had a chance to look at the code yet, but I am not keen on
> zero-config relying on the old hardwired, dynamic invocation code, if
> that's what is going on here.
>
> -Ted.
>
> On 11/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>> On 11/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>>
>> > http://localhost:8080/struts2-showcase/person/newPerson!input.action
>> ...
>> > I thought I'd find an 'input' method in the NewPersonAction class, but
>> > instead there is just a result named input that isn't returned by
>> > anything.
>>
>> :::sigh::: As usual, just sending an email is enough to make the
>> answer appear.
>>
>> I started with the Blank app, which has
>>struts.enable.DynamicMethodInvocation = false
>> while the Showcase app doesn't, and the input method is inherited from
>> ActionSupport.
>>
>> --
>> Wendy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Musachy Barroso
That's a good idea, I was using them inside core because it was easier 
:). Just change core's pom "includes" to something like:



   **/*.java
   ../maven/plugins/apt/.../*.java


I just tried it and it works ok.

musachy
James Mitchell wrote:
Ya, we should probably move this to /struts/maven/plugins/ or 
something similar.  Then we can just depend on it during build.



--
James Mitchell
678.910.8017




On Nov 21, 2006, at 6:18 PM, Don Brown wrote:


Rene, is there any reason this code should go into Struts 2 core?
Does it need to referenced at runtime?  I thought you were using these
annotations at compile time, which AFAIK, means they won't be included
in the compiled code, so there would be no reason to include the
annotation code in the jar.

I think this should be pushed out to a new Maven 2 plugin, perhaps
under /struts/maven instead of Struts 2.

Don

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:
I committed Musachy's patch with some modifications, so that the 
annotations are in place as well as the apt generation code, so we 
all can give it a review. Maybe we will have to do some more 
changes, but it looks quite straight forward in the first place.


Converting doc-tags to annotations is supposed to be a dirty job, 
I've done some tests and will continue tomorrow. May the regexes be 
with us ... :)


Nonetheless, we still can work "on both ends", giving both the apt 
and xd2 a try while having common meta information convention. I was 
not able to look into Konstantins patch yet, but I will do ASAP 
after doing the conversion stuff.


Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest
> it on linux before submitting.
>
> musachy
>
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50761&messageID=102782#102782 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Martin Cooper

On 11/20/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:


On 11/19/06, Martin Cooper <[EMAIL PROTECTED]> wrote:

> Hmm. Personally, I think 'styleId' is a poor name in the first place, so
I'm
> not all that enamored of perpetuating it. (It seemed like a decent
choice at
> the time, but that was many years ago, and if we were to be choosing the
> name today, I'd have suggested 'domId' instead. But that's all water
under
> the bridge. ;)
>
> How about we just stick with 'for'? We have generally tried to use the
same
> name for an attribute as for what will be rendered, and there's no
reason we
> can't use 'for' (unlike 'id' which we could not use, which is why
'styleId'
> exists).
>
> An aside: How did we end up with the 'errorStyleId' thing? I must have
been
> asleep when that happened. Why on earth would I want to give an element
a
> different DOM identifier if there's an error in the field's value? That
> would certainly complicate any JavaScript code I have that references
that
> element. A different style, yes, but a different id?


[1][2] Mea culpa :-(  Its not that long ago when "no script" was a
common refrain and the very naming of "styleId" indicates that these
attributes were seen in purely CSS terms. That now looks dated but for
anyone who was using "id" just to apply style, then having an error
equivalent seemed consistent in terms of the three "style" attributes
that Struts tags supported. As you said earlier though, in hindsight
styleId could have been better named (domId) in the current rich
client experience environment.



Thanks for the links. I did completely miss that at the time. ;-(

My question, though, is not answered in the discussion in the JIRA issue. I
understand why you'd want different style classes, but why would you want to
change the id itself? The discussion mentions the errorStyleId attribute,
but doesn't explain why I would want it. Yes, I can associate a CSS class
with a specific id, but changing that id to pick up a different style for
errors seems quite peculiar, especially when I could simply change the class
instead.

--
Martin Cooper


Niall


[1] https://issues.apache.org/struts/browse/STR-1525
[2] http://svn.apache.org/viewvc?view=rev&revision=51839

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [s2] Message resources from database

2006-11-21 Thread James Mitchell
That would be a nice addition to show off a JPAMailreaderDao with a  
db backed resource bundle.



--
James Mitchell
678.910.8017




On Nov 21, 2006, at 2:21 PM, Ted Husted wrote:


Ahh, yes, page 377.

Now, to embarass me further, do we cover the technique anywhere in the
Struts 2 dcocumentation? It seems straight forward. Perhaps, we could
even do it for the MailReader.

-Ted.

On 11/21/06, Jason Carreira <[EMAIL PROTECTED]> wrote:

I thought you read WebWork in Action ;-)
There's a DB-driven ResourceBundle described in there and in the  
source code for the book.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Greg Reddin


On Nov 21, 2006, at 9:30 AM, David H. DeWolf wrote:

procedural ones which we MUST take care of but are trivial  
(Copyright notices, and Id Keywords,


I do think this one's critical to get out before alpha.


retroweaver distributions),


Probably could wait til after alpha.


1) Do we need to support EL for an alpha release?
2) Must we flush out all documentation for an alpha release?
3) Do we need to extend the putList features (SB-60)


I think we could release an alpha without the above.  We know they  
are planned features for a final release, but an alpha would allow  
people to get the stuff in their hands and start playing with it.


Greg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showcase and zero xml config

2006-11-21 Thread Don Brown
Take a look at the ClasspathConfigurationProvider as it is the class 
that processes each Action class it finds.  We could have it generate a 
mapping for the Action class, then one for each action method it finds.  
I'm not sure I see how it would really get rid of dynamic method 
calling, but it would remove the need for the flag turned to "true", at 
least in the mapping stage.


Don

Ted Husted wrote:

Is there a way we could work wildcards into the mix?

A useful feature of wildcards is that when "login_*" is applied to
"login_input, then "login_input" becomes a virtual action mapping.
This means that validations, messages,  resources,  and type
converters can be applied to login_input, as if it were an action
mapping (which it is!).

As it stands, "dynamic invocation" is handled as an internal exception
where the "login" action is tricked into executing the input method
instead of execute, but the rest of the framework still thinks we are
invoking login.execute.

I'd like the notion of a default "dynamic invocation" separator better if

(1) It created a virtual action mapping, as the wildcard code does, and

(2) It wasn't hardwired to an arbitrary character

Hmmm, (1) actually sounds a bit like what the Codebehind plugin does
for default action mappings, except that we are adding a method to the
configuration

-T.

On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:

I disagree; I like the "old hardwired" action!method syntax and I think
it proves itself useful in this case once again.  However, I'm open to a
compromise where if the dynamic invocation flag is turned off, a
method-level annotation is required.

Don

Ted Husted wrote:
> I haven't had a chance to look at the code yet, but I am not keen on
> zero-config relying on the old hardwired, dynamic invocation code, if
> that's what is going on here.
>
> -Ted.
>
> On 11/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>> On 11/9/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>>
>> > 
http://localhost:8080/struts2-showcase/person/newPerson!input.action

>> ...
>> > I thought I'd find an 'input' method in the NewPersonAction 
class, but

>> > instead there is just a result named input that isn't returned by
>> > anything.
>>
>> :::sigh::: As usual, just sending an email is enough to make the
>> answer appear.
>>
>> I started with the Blank app, which has
>>struts.enable.DynamicMethodInvocation = false
>> while the Showcase app doesn't, and the input method is inherited 
from

>> ActionSupport.
>>
>> --
>> Wendy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Matt Raible

If you're going to add a Label tag to Struts, I'd suggest including
the ability to put an indicator (i.e. an asterisk) of when a field is
required.  We do this in AppFuse and it works quite well.

http://tinyurl.com/u3hyl

Matt

On 11/20/06, Paul Benedict <[EMAIL PROTECTED]> wrote:

Martin Cooper wrote:
>
> How about we just stick with 'for'? We have generally tried to use the
> same
> name for an attribute as for what will be rendered, and there's no
> reason we
> can't use 'for' (unlike 'id' which we could not use, which is why
> 'styleId'
> exists).
This is fine by me. Spring Framework now has a tag library that's
similar to Struts (and generally seems inspired by it), and they also
have a "label" tag with a matching "for" attribute. So this I will make
sure exists.

> Well, this seems to introduce a double reference which then leaves
> potential
> for error / confusion. Don't 'property' and 'for' ultimately reference
> the
> same thing? Yes, the former references the form bean property and the
> latter
> the text element (or whatever) id, but really it's the same thing, no?
These two properties are not similar. "for" is for a emitting DOM id,
while "property" determines which form property Action errors should be
investigated to trigger the error styles. The two are, unfortunately,
necessary however because I have seen the duplication problem from
the beginning, my decision was to make the "for" tag attribute optional.
If no "for" tag attribute is specified, the DOM id emitted in the HTML
"for" attribute is the name of the property. So you can shorthand it:

First Name


> Two other observations:
>
> 1) This seems like yet another special case of error handling that we are
> loading on to the tags. How many special cases do we really want in our
> taglibs for rendering error situation? I guess what I'm asking is why
> should
> a label get special treatment over, say, adding a red asterisk after the
> field, or whatever?
Using CSS 2, you can add body content in a style. So if you want to add
an asterisk, you just write that rule into your style sheet -- just make
sure you have a browser which can support it.
>
> 2) We could generalise this whole thing by creating a tag that exists
> solely
> to provide for style differences in error situations, without tying it to
> something like a label tag.
True, except I don't want to create a radical new tag library structure
for Struts 1. I am all for new ideas in Struts 2, but I would like this
to be considered a "minor" addition. It's much easier adding the label
tag to complete the library of form components, imo.

So I'd like a buy-in so I can commit the code :-) More suggestions for
improvements are totally welcomed.

Paul


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
http://raibledesigns.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Rene Gielen

Ted,

I have exactly the same problem. Any updates on this?

Regards,
Rene

Ted Husted schrieb:

When I do the

$ mvn idea:idea -P all

thing, all the plugins resolve their depdencies except JFreeChart. I
don't see a systemic difference between the JasperReport POM and the
JFreeChart POM, but my JaserReport IDEA module has all its
dependencies (including JasperReports), and JFreeChart has none.

Is anyone else having this problem?

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Ted Husted

When I was playing with the settings ast night, I wasn't able to move
most settings out of default.properties at all. As soon as I did, most
of the tests began to fail. Thats as far as I got.

WRT inline documentation, for XML perhaps we could include remarks as
the body of the element and have loader pick it up from there.

 wrote:

The only disadvantage of including the settings in struts-default.xml
file is we lose the comments above each setting.  A recent change I did
was to plug in a Properties file loader that not only remembers line
numbers but also comments above an entry.  These comments are saved in
Location objects so that debugging and error logs later will include them.

However, having default.properties override struts.xml is definitely not
what we want...We could also split up the LegacyPropertiesLoader to only
load one at a time (default.properties and struts.properties).

Don

Ted Husted wrote:
> I'm thinking that a problem I having with setting properties in the
> struts.xml (see r477484) may be because the default properties file is
> being loaded after the XML configurations, and overriding my changes.
>
> In any event, I'm going to try moving the default.properties settings
> to the struts-default.xml, so that everything is configured in one
> place.
>
> -Ted.
>
> On 11/20/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>> Now that we can configure constants via the XML files
>>
>> * http://struts.apache.org/2.x/docs/constant-configuration.html
>>
>> is using the struts.properties deprecated?
>>
>> Or, would there be other valid reasons to keep it around?
>>
>> -T.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jira reports?

2006-11-21 Thread David Blevins
Pinging to see if you guys wanted any kind of reports from JIRA.   
Been wanting to get a few projects setup with some so other projects  
could see how it's done and copy their setups and/or see how to make  
their own reports.  You guys have a truck-load of issues compared to  
most other projects so I figure you might want a few of your own.


As far as what kind of reports can be created, just about anything.   
Certainly anything you can get from a regular Jira filter, but  
furthermore I can group/sort/count/etc just about any way you like,  
even accross several projects at once.


Just to give you some ideas, here's a report that Maven uses to see  
which plugins have the most votes:

  http://repo1.maven.org/reports/plugins/plugin-issues.txt

Here's one Geronimo uses to see which issues have patches and have  
been submitted into the RTC workflow:

  http://marc.theaimsgroup.com/?l=geronimo-dev&m=115556834908128&w=2

I just created one for Henri earilier today that shows all the  
commons projects with issues that aren't yet assigned to a release:

  http://people.apache.org/~dblevins/tmp/commons-jiras.txt

Those are just some examples, as I say just about anything is  
doable.  If you guys want one, I'll write up a quick template for you  
and you can check it in and hook it up however you like.  I typically  
run it straight out of svn on people and mail it to the list.  Jason  
likes to send his to a file which can be browsed.  Henri hasn't set  
his up yet.  And just as an FYI, the scripts are done in velocity, so  
you can output to anything, not just plain-text.


-David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems checking out the source

2006-11-21 Thread Alexandru Popescu

Are you behind a firewall? In case you do then you need a special setup.

./alex
--
.w( the_mindstorm )p.


On 11/21/06, Tarek Nabil <[EMAIL PROTECTED]> wrote:


Thanks Tm, but it's giving me the same error message :(

Does any one know the cause of such a problem?

-Original Message-
From: tm jee [mailto:[EMAIL PROTECTED]
Sent: Monday, November 20, 2006 4:23 PM
To: Struts Developers List
Subject: Re: Problems checking out the source

Hi Tarek,

Try it with this https://svn.apache.org/repos/asf/struts/struts2/trunk
instead and see if it works

rgds

Tarek Nabil <[EMAIL PROTECTED]> wrote: I hope this is the right
place to ask this question. If not, then please accept my apologies.

I've been trying to check out the Struts 2 source tree, but with no
luck. I'm able to browse up to the "trunk" folder using the Tortoise SVN
repository browser, but but for any subfolder of trunk, I get the error
message

svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

The same thing happens when I try to use the command line version of the
client

C:\Sources\Struts2>svn co
http://svn.apache.org/repos/asf/struts/struts2/trunk
svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

Is this a firewall issue or do I need to do some sort of configuration?

Every help is appreciated.
DISCLAIMER**
**
This email and any files transmitted with it are confidential and
contain privileged or copyright information. If you are not the intended
recipient you must not copy, distribute or use this email or the
information contained in it for any purpose other than to notify us of
the receipt thereof.
If you have received this message in error, please notify the sender
immediately, and delete this email from your system.

Please note that e-mails are susceptible to change.The sender shall not
be liable for the improper or incomplete transmission of the information
contained in this communication,nor for any delay in its receipt or
damage to your system.The sender does not guarantee that this material
is free from viruses or any other defects although due care has been
taken to minimise the risk.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]



 Send instant messages to your online friends
http://uk.messenger.yahoo.com
DISCLAIMER
This email and any files transmitted with it are confidential and contain 
privileged or copyright
information. If you are not the intended recipient you must not copy, 
distribute or use this email
or the information contained in it for any purpose other than to notify us of 
the receipt thereof.
If you have received this message in error, please notify the sender 
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be 
liable for the improper
or incomplete transmission of the information contained in this 
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this 
material is free from
viruses or any other defects although due care has been taken to minimise the 
risk.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Message resources from database

2006-11-21 Thread Ted Husted

Is "JPAMailreaderDao" part of this

* http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=149742

or is it a Shale thing?

-T.

On 11/21/06, James Mitchell <[EMAIL PROTECTED]> wrote:

That would be a nice addition to show off a JPAMailreaderDao with a
db backed resource bundle.


--
James Mitchell
678.910.8017




On Nov 21, 2006, at 2:21 PM, Ted Husted wrote:

> Ahh, yes, page 377.
>
> Now, to embarass me further, do we cover the technique anywhere in the
> Struts 2 dcocumentation? It seems straight forward. Perhaps, we could
> even do it for the MailReader.
>
> -Ted.
>
> On 11/21/06, Jason Carreira <[EMAIL PROTECTED]> wrote:
>> I thought you read WebWork in Action ;-)
>> There's a DB-driven ResourceBundle described in there and in the
>> source code for the book.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Constant Configuration

2006-11-21 Thread Ted Husted

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

> 

I don't know what  "a new namespace" means.

An advantage of actually putting the remarks in the element is that
they can be parsed by anything that can read XML.

What we've started to do with properties comments is a neat idea, and
we should elevate it to a first-class feature with a clean
implementation.



> Though, maybe this setting  could be injected now, so that we don't
> recite the same fact twice. (I suppose we should also rename the
> Dispatcher field to match the setting name.)
Yeah, actually, this setting doesn't exist anymore.  This is because the
list of xml files to load can't be in the xml files to load  So,
there is an web.xml init param you can set if you want to override
this.  Otherwise, the list in that Dispatcher constant will be used.


Well, it might be otherwise ignored, but a
"struts.configuration.files" setting does exists in the
default.properties.

Is there a cannonical list of settings expressed as Java code? What
determines whether a "setting exists"?

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[s2] 2.0.2 release this weekend

2006-11-21 Thread Don Brown
We really, really, really need to get a release out there, even if was 
determined to be beta.  The snapshot system is unpredictable and 
confusing for potential users, and really, users shouldn't be using them 
anyways as they aren't "official" struts releases.


Any showstoppers to a likely beta release?

Don

PS. I just deployed the snapshots off trunk to maven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread David H. DeWolf



Antonio Petrelli wrote:

For what I can say, surely Tiles 2 cannot be released as GA (neither as 
alpha I suppose) since there is a blocking issue (just reopened :-) ) 
and some major issues, not to mention a strange effect that I had last 
week under Linux (this evening I will check it, I have Linux only at 
home) that made the Selenium tests fail. I did not open the issue simply 
because I was not sure about it.


Agreed.  Definitely not GA or Beta, but I do think we're close to alpha.

Take a hard look at the open issues, besides the procedural ones which 
we MUST take care of but are trivial (Copyright notices, and Id 
Keywords, retroweaver distributions), what is outstanding that is truly 
a major issue?


1) Do we need to support EL for an alpha release?
2) Must we flush out all documentation for an alpha release?
3) Do we need to extend the putList features (SB-60)

If not, then there's not much left before alpha.  If there are other 
things pending, please add those to jira so we can drive them to completion.






Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Martin Cooper

On 11/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:


Martin Cooper ha scritto:
> If so, the next question would be whether
> or not we have enough people and enough energy to jump-start it.

A good (non Apache yet but with Apache License) candidate for Java Web
Components could be Java Web Parts (http://javawebparts.sourceforge.net/).
And I could suggest a pair of projects I am administrator of:
Scopes (http://scopes.sourceforge.net/);
Dimensions (http://mutidimensions.sourceforge.net/).
The only problem with Dimensions is that it probably needs incubation,
since it is copyrighted by Free2Be LLC (though it seems that this entity
is dead or changed its name... it needs some investigation :-) ).



I think you're misunderstanding. The purpose of Jakarta Web Components is to
form a grouping of small web-related projects, along the same lines as
Jakarta Commons but focussed on web related stuff. It is specifically not a
project in and of itself, and it especially is not a repository for outside
projects coming in to the ASF. Those would still need to go through
incubation.

--
Martin Cooper


Ciao

Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread David H. DeWolf

I have the problem as well and haven't been able to get around it.

Rene Gielen wrote:

Ted,

I have exactly the same problem. Any updates on this?

Regards,
Rene

Ted Husted schrieb:

When I do the

$ mvn idea:idea -P all

thing, all the plugins resolve their depdencies except JFreeChart. I
don't see a systemic difference between the JasperReport POM and the
JFreeChart POM, but my JaserReport IDEA module has all its
dependencies (including JasperReports), and JFreeChart has none.

Is anyone else having this problem?

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Fwd: [s2] Message resources from database

2006-11-21 Thread Jason Carreira
I thought you read WebWork in Action ;-) There's a DB-driven ResourceBundle 
described in there and in the source code for the book.
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50877&messageID=102710#102710


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Rene Gielen
I committed Musachy's patch with some modifications, so that the annotations 
are in place as well as the apt generation code, so we all can give it a 
review. Maybe we will have to do some more changes, but it looks quite straight 
forward in the first place.

Converting doc-tags to annotations is supposed to be a dirty job, I've done 
some tests and will continue tomorrow. May the regexes be with us ... :)

Nonetheless, we still can work "on both ends", giving both the apt and xd2 a 
try while having common meta information convention. I was not able to look 
into Konstantins patch yet, but I will do ASAP after doing the conversion stuff.

Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest 
> it on linux before submitting.
> 
> musachy
> 
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50761&messageID=102782#102782


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Message resources from database

2006-11-21 Thread James Mitchell

LOLno, I was speaking hypothetically.


--
James Mitchell
678.910.8017




On Nov 21, 2006, at 2:53 PM, Ted Husted wrote:


Is "JPAMailreaderDao" part of this

* http://sourceforge.net/project/showfiles.php? 
group_id=49385&package_id=149742


or is it a Shale thing?

-T.

On 11/21/06, James Mitchell <[EMAIL PROTECTED]> wrote:

That would be a nice addition to show off a JPAMailreaderDao with a
db backed resource bundle.


--
James Mitchell
678.910.8017




On Nov 21, 2006, at 2:21 PM, Ted Husted wrote:

> Ahh, yes, page 377.
>
> Now, to embarass me further, do we cover the technique anywhere  
in the
> Struts 2 dcocumentation? It seems straight forward. Perhaps, we  
could

> even do it for the MailReader.
>
> -Ted.
>
> On 11/21/06, Jason Carreira <[EMAIL PROTECTED]>  
wrote:

>> I thought you read WebWork in Action ;-)
>> There's a DB-driven ResourceBundle described in there and in the
>> source code for the book.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread Musachy Barroso

As long as apt can find the classes on the classpath, they can be anywhere.

musachy

Don Brown wrote:
Wait - this isn't going in Struts 2 core, right?  This is a separate 
artifact?


Don

Rene Gielen wrote:

Musachy,

I applied the patch with slight modifications to HEAD. I refactored 
it to use oas2.annotations.taglib namespace, in core module. Looks 
good so far, thank you very much!


As next step, I will work on converting xd javadoc tags to 
annotations, starting tomorrow I guess...


Regards,
Rene

 

I attached a patch to WW-1392. It has the changes to
the POMs and the classes for apt. The namespace  for the apt stuff is
probably not the best.

musachy

Rainer Hermanns wrote:
   

Musachy,
can you send me over your tld processor stuff?
Best would be to attach it to the jira ticket
  

(WW-1392).
   

tia,
Rainer


  

-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=49702&messageID=102766#102766 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Martin Cooper

On 11/21/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:


Greg Reddin ha scritto:
>
> On Nov 21, 2006, at 9:15 AM, David H. DeWolf wrote:
>
>> What I'm more concerned about is the community/oversight.
>
> How will Tiles 2 be accepted when compared with Sitemesh, etc?  I
> don't know.  The JSF community has Facelets and Clay, so Tiles support
> is more of a legacy thing.

It is real until Tiles 2 does not show anything really new. If Tiles 2
becomes "the IoC engine for the view layer", as I tried to explain some
time ago, it probably will be an innovative project. But in this case,
SB-86 needs to be fixed. But probably an alpha version can be released,
leaving "revolution" for a later change.
Just to complete the view, what prohibits me to use Tiles 2 together
with Sitemesh? For example, using the composition capability of Tiles 2
together with decoration capability of Sitemesh?

In conclusion, after fixing the blocking issues, I think that an alpha
can be released, but users should be warned that SB-86 will replace a
feature that Tiles 1.1 had and that currently there is no replacement
for it.



But the point is that an Alpha *cannot* be released while Tiles is still in
the Struts sandbox. Either we need to graduate Tiles out of the sandbox, or
Tiles needs to find a new home. The latter seems to be going from the frying
pan into the fire, so I'd suggest the former as an interim step.

--
Martin Cooper


Ciao

Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Problems checking out the source

2006-11-21 Thread Tarek Nabil
 
Thanks Tm, but it's giving me the same error message :(

Does any one know the cause of such a problem?

-Original Message-
From: tm jee [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 20, 2006 4:23 PM
To: Struts Developers List
Subject: Re: Problems checking out the source

Hi Tarek,

Try it with this https://svn.apache.org/repos/asf/struts/struts2/trunk
instead and see if it works

rgds

Tarek Nabil <[EMAIL PROTECTED]> wrote: I hope this is the right
place to ask this question. If not, then please accept my apologies.

I've been trying to check out the Struts 2 source tree, but with no
luck. I'm able to browse up to the "trunk" folder using the Tortoise SVN
repository browser, but but for any subfolder of trunk, I get the error
message

svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

The same thing happens when I try to use the command line version of the
client

C:\Sources\Struts2>svn co
http://svn.apache.org/repos/asf/struts/struts2/trunk
svn: PROPFIND request failed on '/repos/asf/struts/struts2/trunk'
svn: PROPFIND of '/repos/asf/struts/struts2/trunk': could not connect to
server (http://svn.apache.org)

Is this a firewall issue or do I need to do some sort of configuration?

Every help is appreciated.
DISCLAIMER**
**
This email and any files transmitted with it are confidential and
contain privileged or copyright information. If you are not the intended
recipient you must not copy, distribute or use this email or the
information contained in it for any purpose other than to notify us of
the receipt thereof.
If you have received this message in error, please notify the sender
immediately, and delete this email from your system.

Please note that e-mails are susceptible to change.The sender shall not
be liable for the improper or incomplete transmission of the information
contained in this communication,nor for any delay in its receipt or
damage to your system.The sender does not guarantee that this material
is free from viruses or any other defects although due care has been
taken to minimise the risk.

**

-
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]



 Send instant messages to your online friends
http://uk.messenger.yahoo.com 
DISCLAIMER
This email and any files transmitted with it are confidential and contain 
privileged or copyright 
information. If you are not the intended recipient you must not copy, 
distribute or use this email
or the information contained in it for any purpose other than to notify us of 
the receipt thereof.
If you have received this message in error, please notify the sender 
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be 
liable for the improper
or incomplete transmission of the information contained in this 
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this 
material is free from
viruses or any other defects although due care has been taken to minimise the 
risk.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread Don Brown
It seems to me like this should be a separate Maven 2 plugin, or am I 
missing something?


Don

Musachy Barroso wrote:
As long as apt can find the classes on the classpath, they can be 
anywhere.


musachy

Don Brown wrote:
Wait - this isn't going in Struts 2 core, right?  This is a separate 
artifact?


Don

Rene Gielen wrote:

Musachy,

I applied the patch with slight modifications to HEAD. I refactored 
it to use oas2.annotations.taglib namespace, in core module. Looks 
good so far, thank you very much!


As next step, I will work on converting xd javadoc tags to 
annotations, starting tomorrow I guess...


Regards,
Rene

 

I attached a patch to WW-1392. It has the changes to
the POMs and the classes for apt. The namespace  for the apt stuff is
probably not the best.

musachy

Rainer Hermanns wrote:
  

Musachy,
can you send me over your tld processor stuff?
Best would be to attach it to the jira ticket
  

(WW-1392).
  

tia,
Rainer


  

-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=49702&messageID=102766#102766 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [tiles2] Usefulness of entity resolver in DigesterDefinitionsReader

2006-11-21 Thread David H. DeWolf

Which registrations are you referring to?

I was on the road - without a connection - this weekend and was unable 
to successfully startup the tiles-test app without it (IOException, 
connection refused to struts.apache.org), so I'm assuming the answer is 
no.  That said, I saw that you upgraded the dtd's to 2.0 this weekend, 
so perhaps you did something in that commit that I missed that would 
have taken care of this problem.


Did I miss something?

David

Antonio Petrelli wrote:

Hello! and especially Hello David :-)
I noticed that you (David) commited DigesterDefinitionsReader specifying 
a new entity resolver. Is it really useful? Aren't the registrations 
enough to take DTD files locally?


Thank you
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Don Brown

Rene, is there any reason this code should go into Struts 2 core?
Does it need to referenced at runtime?  I thought you were using these
annotations at compile time, which AFAIK, means they won't be included
in the compiled code, so there would be no reason to include the
annotation code in the jar.

I think this should be pushed out to a new Maven 2 plugin, perhaps
under /struts/maven instead of Struts 2.

Don

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:

I committed Musachy's patch with some modifications, so that the annotations 
are in place as well as the apt generation code, so we all can give it a 
review. Maybe we will have to do some more changes, but it looks quite straight 
forward in the first place.

Converting doc-tags to annotations is supposed to be a dirty job, I've done 
some tests and will continue tomorrow. May the regexes be with us ... :)

Nonetheless, we still can work "on both ends", giving both the apt and xd2 a 
try while having common meta information convention. I was not able to look into 
Konstantins patch yet, but I will do ASAP after doing the conversion stuff.

Regards,
Rene

> I have everything working fine, but I'm waiting to
> get home and retest
> it on linux before submitting.
>
> musachy
>
> Ted Husted wrote:
> > Likewise. Either will be fine with me. From the
> other thread, I think
> > Rene was going to look at apt again later today.
> >
> > -Ted.
> >
> > On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:
> >> I believe whoever is planning on doing the actual
> commit decides. I
> >> call "not it!" :)
> >>
> >> Don
> >>
> >> James Mitchell wrote:
> >>
> >> > I was under the impression that we were going to
> use apt.
> >> >
> >> > --
> >> > James Mitchell
> >> > 678.910.8017
> >
> >> >
> >> > On Nov 19, 2006, at 6:33 PM, Musachy Barroso
> wrote:
> >> >
> >> >> Are we finally going to stick to xdoclet or use
> annotations?  I  have
> >> >> the
> >> >> maven-apt plugin  almost ready(from tobago
> project + some fixes)
> >> >> with the
> >> >> apt stuff, but I don't want to spend more time
> on it if we are not
> >> >> going to
> >> >> use it.
> >> >>
> >> >> regards
> >> >> musachy
> >> >>
> >> >> On 11/18/06, Konstantin Priblouda
> <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>>
> >> >>> HI all,
> >> >>>
> >> >>> I just created an issue containing patch to
> pom.xml
> >> >>> to enable tld-generation by xdoclet-2
> >> >>> ( WW-1512 )
> >> >>>
> >> >>> feel free to ask questions.
> >> >>>
> >> >>> regards,
> >> >>>
> >> >>> [ Konstantin Pribluda
> http://www.pribluda.de ]
> >> >>> Still using XDoclet 1.x?  XDoclet 2 is
> released and of production
> >> >>> quality.
> >> >>> check it out: http://xdoclet.codehaus.org
> >> >>>
> >
> >
> --
> ---
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
> --
> ---
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
-
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=50761&messageID=102782#102782


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread David H. DeWolf
How about getting an initial tiles release out so that the 2.0.2 tiles 
plugin can rely upon it instead of a snapshot? It would probably only be 
'alpha' quality at this point, but the same snapshot logic that you 
described below applies to it.


I'll do the release (prior to the weekend), if someone that's done one 
before will help me through it.



David

Don Brown wrote:
We really, really, really need to get a release out there, even if was 
determined to be beta.  The snapshot system is unpredictable and 
confusing for potential users, and really, users shouldn't be using them 
anyways as they aren't "official" struts releases.


Any showstoppers to a likely beta release?

Don

PS. I just deployed the snapshots off trunk to maven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: taglib generation with xdoclet 2

2006-11-21 Thread Musachy Barroso
I have everything working fine, but I'm waiting to get home and retest 
it on linux before submitting.


musachy

Ted Husted wrote:

Likewise. Either will be fine with me. From the other thread, I think
Rene was going to look at apt again later today.

-Ted.

On 11/20/06, Don Brown <[EMAIL PROTECTED]> wrote:

I believe whoever is planning on doing the actual commit decides. I
call "not it!" :)

Don

James Mitchell wrote:

> I was under the impression that we were going to use apt.
>
> --
> James Mitchell
> 678.910.8017



>
> On Nov 19, 2006, at 6:33 PM, Musachy Barroso wrote:
>
>> Are we finally going to stick to xdoclet or use annotations?  I  have
>> the
>> maven-apt plugin  almost ready(from tobago project + some fixes)
>> with the
>> apt stuff, but I don't want to spend more time on it if we are not
>> going to
>> use it.
>>
>> regards
>> musachy
>>
>> On 11/18/06, Konstantin Priblouda <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> HI all,
>>>
>>> I just created an issue containing patch to pom.xml
>>> to enable tld-generation by xdoclet-2
>>> ( WW-1512 )
>>>
>>> feel free to ask questions.
>>>
>>> regards,
>>>
>>> [ Konstantin Pribluda http://www.pribluda.de ]
>>> Still using XDoclet 1.x?  XDoclet 2 is released and of production
>>> quality.
>>> check it out: http://xdoclet.codehaus.org
>>>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [tiles2] Servlet 2.3 or 2.4?

2006-11-21 Thread David H. DeWolf

Sorry for the delay, I've been traveling. . .

Greg Reddin wrote:


On Nov 17, 2006, at 6:30 AM, Antonio Petrelli wrote:

* compile against Servlet 2.4, though I think it can be used under 
Servlet 2.3 environments, declaring the problems with JSP < 2.0 pages 
(that miss EL);


+1.



+1 as well.



Greg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Konstantin Priblouda


--- Martin Cooper <[EMAIL PROTECTED]> wrote:

> 
> I think you're misunderstanding. The purpose of
> Jakarta Web Components is to
> form a grouping of small web-related projects, along
> the same lines as
> Jakarta Commons but focussed on web related stuff.
> It is specifically not a
> project in and of itself, and it especially is not a
> repository for outside
> projects coming in to the ASF. Those would still
> need to go through
> incubation.

I could donate menu management system if somebody is
interested:
http://www.sourceforge.net/projects/jtec/
( jtec-menu ) 
( J Tec Team it's actually me and only me ) 

regards,

[ Konstantin Pribluda http://www.pribluda.de ]
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org


 

Sponsored Link

Online degrees - find the right program to advance your career. 
www.nextag.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dispatcher

2006-11-21 Thread Tarek Nabil
I've been going through the documentation and the source and trying to
understand the architecture of Struts 2.

In the documentation for the createDispatcher method in
FilterDispatcher, it says

Create a default [EMAIL PROTECTED] Dispatcher} that subclasses can 
override
with a custom Dispatcher, if needed.

But when checking out the Dispatcher class, it seems that it does not
implement any interface. How can one go about implementing a different
Dispatcher if there's no defined interface? Or is there something that
I'm missing?

Thanks,
Tarek Nabil
DISCLAIMER
This email and any files transmitted with it are confidential and contain 
privileged or copyright 
information. If you are not the intended recipient you must not copy, 
distribute or use this email
or the information contained in it for any purpose other than to notify us of 
the receipt thereof.
If you have received this message in error, please notify the sender 
immediately, and delete this
email from your system.

Please note that e-mails are susceptible to change.The sender shall not be 
liable for the improper
or incomplete transmission of the information contained in this 
communication,nor for any delay in
its receipt or damage to your system.The sender does not guarantee that this 
material is free from
viruses or any other defects although due care has been taken to minimise the 
risk.
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] Message resources from database

2006-11-21 Thread Craig McClanahan

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:


Is "JPAMailreaderDao" part of this

*
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=149742

or is it a Shale thing?



The mailreader-jpa[1] "shale thing" :-) is actually independent of Shale, in
the same way that mailreader-dao has been independent of Struts.  The
contents are a persistence.xml file and the corresponding JPA entity
classes.   It's perfectly reasonable to consider using it in a Struts
example, if you want.


-T.


Craig

[1]
http://svn.apache.org/viewvc/shale/framework/trunk/shale-apps/mailreader-jpa/


[s2] Constant Configuration

2006-11-21 Thread Ted Husted

Now that we can configure constants via the XML files

* http://struts.apache.org/2.x/docs/constant-configuration.html

is using the struts.properties deprecated?

Or, would there be other valid reasons to keep it around?

-T.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Paul Benedict

Matt,

In my opinion, that feature would be too customized. I don't want to 
force people into any particular style. You may like asterisks, but 
other people prefer bold text, or some other character and styling. Do 
you have a more generalized idea?


Paul

Matt Raible wrote:

If you're going to add a Label tag to Struts, I'd suggest including
the ability to put an indicator (i.e. an asterisk) of when a field is
required.  We do this in AppFuse and it works quite well.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread David H. DeWolf



Wendy Smoak wrote:

On 11/20/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:

How about getting an initial tiles release out so that the 2.0.2 tiles
plugin can rely upon it instead of a snapshot? It would probably only be
'alpha' quality at this point, but the same snapshot logic that you
described below applies to it.

I'll do the release (prior to the weekend), if someone that's done one
before will help me through it.


Tiles 2 is in the sandbox, and sandbox projects are not allowed to do
releases.  Choosing a particular snapshot for Struts 2 to depend on is
all we can do, unless we change the rules.


Ok, thanks for clarifying.



If Tiles is ready to graduate, then we need to decide where it's going
to live.  Top level?  Over at Jakarta, or wasn't there some sort of
'web components' project being started?



Are these the only two options?  My fear with both of them (a top level 
project or the 'seed' project for a new web components project at 
jakarta) would be lack of community due to the fact that there seem to 
be just a few active committers interested in tiles right now.  Jakarta 
would be an option, though their recent trend seems to be graduating 
projects to TLP - not accepting new projects.


Is it possible for tiles2 to 'graduate' into a full struts project 
(sibling of struts1 and struts2) until it gains a little more momentum? 
 The idea would be to allow tiles to leverage the 
participation/oversight   that's allready here?  This seems to make 
sense since I would guess that the vast majority of tiles users are 
using it in conjunction with one version of struts or another.


Also, what warrants graduation from the sandbox?  A we assuming the same 
requirements as graduating a project from the incubator?  My assessment 
at this point is that tiles has come a long way and is ready to be 
pushed out to the masses in order to allow them to play.  I'd like to 
'release early/release often'.



Thoughts?

David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] IDEA - JFreeChart Dependencies

2006-11-21 Thread Rahul Akolkar

On 11/21/06, Rene Gielen <[EMAIL PROTECTED]> wrote:

Hmm, just had a closer look into the output of
$ mvn idea:idea -P all
Looks like there's the problem...




[WARNING] An error occurred during dependency resolution of the
following artifact:

 org.apache.struts:struts2-jfreechart-plugin2.0.2-SNAPSHOT

Caused by: Missing:
--
1) jfree:jfreechart:jar:[1.0.0,)

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=jfree -DartifactId=jfreechart \
   -Dversion=[1.0.0,) -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.apache.struts:struts2-jfreechart-plugin:jar:2.0.2-SNAPSHOT
 2) jfree:jfreechart:jar:[1.0.0,)

2) jfree:jcommon:jar:[1.0.0,)

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=jfree -DartifactId=jcommon \
   -Dversion=[1.0.0,) -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.apache.struts:struts2-jfreechart-plugin:jar:2.0.2-SNAPSHOT
 2) jfree:jcommon:jar:[1.0.0,)

--
2 required artifacts are missing.




The dependency s for jfree groupId dependencies seem to be off here:

http://svn.apache.org/repos/asf/struts/struts2/trunk/plugins/jfreechart/pom.xml

-Rahul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Showcase and zero xml config

2006-11-21 Thread Ted Husted

On 11/21/06, Don Brown <[EMAIL PROTECTED]> wrote:

Ah, OK, I see where you are coming from now.  Sure, if you use the
classpath provider, the problem is really solved.  We could create a
mapper for every action method we discover - "action", "action!execute",
"action!input" - which also has the advantage of making the
configuration browser plugin, which I think we really should promote
more, more useful.


Speaking of ClasspathConfigurationProvider, what is the use case for
this swatch from processActionClass:

   if (actionName.length() > 1) {
   int lowerPos = actionName.lastIndexOf('/') + 1;
   StringBuilder sb = new StringBuilder();
   sb.append(actionName.substring(0, lowerPos));
   sb.append(Character.toLowerCase(actionName.charAt(lowerPos)));
   sb.append(actionName.substring(lowerPos + 1));
   actionName = sb.toString();
   }

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Ted Husted

On 11/21/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote:

> The people working on Tiles2 are gearing up for some sort of release,
> maybe even this weekend. But, since we distribute Tiles as a plugin,
> so we could still mark Core GA and leave the Tiles plugin at beta.
> Right now, all the plugins, including Tiles2 and Codebehind, are
> tagged and released along with Core.
>

Why that? To have the users confused?


Bitter experience.

Struts 1.1 was a long, hard, demoralizing trek because we had to have
each and every component "just right" in order to have a release.
Life's too short to live through that kind of frustration again.

Right now, we already have eleven plugins. If each and every one of
those have to be GA in order for the Core to be GA, then, once again,
it will be years between GA release.

I'd rather that the general public were confused but had GA releases,
then have everyone wait years for the next GA release.

The alternative would be to strongly separate the plugins from the
core, as Maven does, but I don't relish having eleven more artifacts
to release.



That was a good decission whoever took it.


AFAIK, importing the Guice code into XWork2 was Don's idea, and I would agree.



Building is one... having time to play with it is another. A
successful build doesn't guarantee anything in fact.


Exactly. When it comes to a release, it's the PMC's to do more than
make sure the code builds. It's our job to warrant that the bits work
well, based on our own direct experience. As the saying goes, "We eat
our own dog food," and then we pass the bowl. :)

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Greg Reddin


On Nov 21, 2006, at 9:15 AM, David H. DeWolf wrote:


What I'm more concerned about is the community/oversight.


I think the scope of the Tiles 2 community remains to be seen.  There  
are several other templating solutions out there.  How will Tiles 2  
be accepted when compared with Sitemesh, etc?  I don't know.  The JSF  
community has Facelets and Clay, so Tiles support is more of a legacy  
thing.  The thing we do have going for us is that there's a lot of  
users who are familiar with Tiles 1.x.  Migration from Tiles 1.x to  
Tiles 2 might be easier than, say, Tiles 1.x to Sitemesh for those  
who don't want to learn too many new things.  It also helps that the  
Tiles integration for Struts 2 and Shale is Tiles 2 exclusively.  But  
the risk is that people who know Tiles 1 and start using Struts 2 or  
Shale will not be willing to port their Tiles knowledge to Tiles 2  
and would rather take on a different framework.


So, all we can do is work it up, release it, and doc it and see what  
happens.  I tend to think the earlier we get it out of the sandbox  
the better.  A snapshot project in the sandbox just doesn't have the  
same credence as even an alpha that has a real project commitment  
behind it.


For me personally, I'll support Tiles whether it's a TLP, part of  
Jakarta, or part of Struts.  Honestly, I'm not interested in  
spearheading a TLP right now.  I'm just not yet convinced enough that  
the community will come along and make the effort worth it.  But if  
someone else wants to write up the proposals and be the "chair" and  
whatever else needs to be done, then count me in as a full-time  
supporter.  It's possible that my situation will change when my day  
job settles down a bit, but right now I just don't have the bandwidth  
to kick it off.  I think the Struts community has made it clear that  
we want Struts to be focused on building an MVC framework and not  
necessarily all the stuff surrounding that (and I agree with that  
BTW).  So unless that sentiment has changed I think we have to stay  
in the Struts sandbox until we have enough momentum to either join  
Jakarta or go TLP.


Greg



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread David H. DeWolf

Well said, exactly what I was trying to communicate.

I was just hoping that we weren't "stuck in the sandbox" since that 
seems like it will prevent an alpha release.


David


Greg Reddin wrote:


On Nov 21, 2006, at 9:15 AM, David H. DeWolf wrote:


What I'm more concerned about is the community/oversight.


I think the scope of the Tiles 2 community remains to be seen.  There 
are several other templating solutions out there.  How will Tiles 2 be 
accepted when compared with Sitemesh, etc?  I don't know.  The JSF 
community has Facelets and Clay, so Tiles support is more of a legacy 
thing.  The thing we do have going for us is that there's a lot of users 
who are familiar with Tiles 1.x.  Migration from Tiles 1.x to Tiles 2 
might be easier than, say, Tiles 1.x to Sitemesh for those who don't 
want to learn too many new things.  It also helps that the Tiles 
integration for Struts 2 and Shale is Tiles 2 exclusively.  But the risk 
is that people who know Tiles 1 and start using Struts 2 or Shale will 
not be willing to port their Tiles knowledge to Tiles 2 and would rather 
take on a different framework.


So, all we can do is work it up, release it, and doc it and see what 
happens.  I tend to think the earlier we get it out of the sandbox the 
better.  A snapshot project in the sandbox just doesn't have the same 
credence as even an alpha that has a real project commitment behind it.


For me personally, I'll support Tiles whether it's a TLP, part of 
Jakarta, or part of Struts.  Honestly, I'm not interested in 
spearheading a TLP right now.  I'm just not yet convinced enough that 
the community will come along and make the effort worth it.  But if 
someone else wants to write up the proposals and be the "chair" and 
whatever else needs to be done, then count me in as a full-time 
supporter.  It's possible that my situation will change when my day job 
settles down a bit, but right now I just don't have the bandwidth to 
kick it off.  I think the Struts community has made it clear that we 
want Struts to be focused on building an MVC framework and not 
necessarily all the stuff surrounding that (and I agree with that BTW).  
So unless that sentiment has changed I think we have to stay in the 
Struts sandbox until we have enough momentum to either join Jakarta or 
go TLP.


Greg



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Ted Husted

Struts 2.0.2 TODO

Here's a quick list of documentation elements that I'm working on today.

Snippets

* Textfield and button snippets using new key syntax
* action-class-ref
* action tag with flush
* checkboxlist with map
* Direct results

Pages
* Spring, Plexus, Pell-Multipart, Struts1 plugins
* Composite ActionMapper description
* ReST-ful URLs.

Also updates to blank and mailreader to use new configuration options.

-T.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s 1.3.6]: New label tag

2006-11-21 Thread Paul Benedict

Martin,
This is *exactly* why I was suggesting a tag that simply renders a 
span or a div that can take care of rendering differences, regardless 
of the content within them.


In your reply to my earlier message, you described it as "a radical 
new tag library structure", which I didn't get, but now you're 
advocating what I was suggesting. So perhaps we agree on this after all.


I am speaking of library that does nothing more than take care of the 
HTML label tag, plus struts error customization.


Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] 2.0.2 release this weekend

2006-11-21 Thread Alexandru Popescu

On 11/21/06, Ted Husted <[EMAIL PROTECTED]> wrote:

On 11/21/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote:
> > The people working on Tiles2 are gearing up for some sort of release,
> > maybe even this weekend. But, since we distribute Tiles as a plugin,
> > so we could still mark Core GA and leave the Tiles plugin at beta.
> > Right now, all the plugins, including Tiles2 and Codebehind, are
> > tagged and released along with Core.
> >
>
> Why that? To have the users confused?

Bitter experience.

Struts 1.1 was a long, hard, demoralizing trek because we had to have
each and every component "just right" in order to have a release.
Life's too short to live through that kind of frustration again.

Right now, we already have eleven plugins. If each and every one of
those have to be GA in order for the Core to be GA, then, once again,
it will be years between GA release.

I'd rather that the general public were confused but had GA releases,
then have everyone wait years for the next GA release.

The alternative would be to strongly separate the plugins from the
core, as Maven does, but I don't relish having eleven more artifacts
to release.



I am not gonna argue against your argument but just say: the user will
be confused when he will not be able to run the plugins because a
small change in one of them has broken it. The release should be able
to guarantee a set of plugins that work out of the box. The user
should not have to deal with different projects, different lifecycles,
etc and finally figure out that we must use beta-xyz of plugin X
instead of beta-xxz of the same plugin. This would be synonim to
saying: "hey, we have tried our release with something that worked for
us, but we cannot guarantee what will work for you".

./alex
--
.w( the_mindstorm )p.



> That was a good decission whoever took it.

AFAIK, importing the Guice code into XWork2 was Don's idea, and I would agree.


> Building is one... having time to play with it is another. A
> successful build doesn't guarantee anything in fact.

Exactly. When it comes to a release, it's the PMC's to do more than
make sure the code builds. It's our job to warrant that the bits work
well, based on our own direct experience. As the saying goes, "We eat
our own dog food," and then we pass the bowl. :)

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [s2] XWork2 release plan

2006-11-21 Thread James Mitchell

No objections here.

Konstantin, I hope you understand that I (and I'm sure others) really  
appreciate your help.  I hate that this is an either/or decision that  
has to be made and I can't help but feel that you might be let down  
by our interest in making apt work.




--
James Mitchell
678.910.8017




On Nov 21, 2006, at 2:26 AM, Rene Gielen wrote:


James, Musachy, others,

FYI, I took the ticket. I will take care of the patch and start the  
xdoctet-tag to annotation conversion this evening, if there are no  
objections.


Regards,
Rene


The systemPath configuration for the maven plugin
looks similar to
what we have to do for Retrotranslator, I'm wondering
if this is
something we can simply configure in each of our
local settings.xml
and document on the wiki.  That would help me out as
well.  I'll look
into it.

Ted, are you looking at this patch?  I assume you are
running with
it, unless you're tied up.


--
James Mitchell
678.910.8017




On Nov 20, 2006, at 10:40 PM, Musachy Barroso wrote:


I attached a patch to WW-1392. It has the changes

to the POMs and

the classes for apt. The namespace  for the apt

stuff is probably

not the best.

musachy

Rainer Hermanns wrote:

Musachy,
can you send me over your tld processor stuff?
Best would be to attach it to the jira ticket

(WW-1392).


tia,
Rainer



After 2 hours trying to make apt run from ant in

a generic way, I

found
out that ant 1.7 has an AptTask. I guess I will

borrow that class

until
struts upgrades to 1.7(RC1 right now).

musachy

Musachy Barroso wrote:


Rene,

Let me know when you get this done, I have apt

ready.


musachy

Rene Gielen wrote:


When we started the taglib generation in ww2,

we had to tweak the

xdoclet templates and a little bit of code

because the meta

information had to be in the component sources

rather than the

Tag-classes. Because of the dual use of the

components (fm-

support),
the real logic sits there while the Tag classes

are simple

wrappers.
Also I remenber there were some small issues

with html artifact

generation. We could not get xdoclet to go

without tweaking it.


Maybe Konstantin could bring some light into

whether standard xd2

taglib doclet would deliver this flexibility.

Also, the idea of

using
real annotations, while doing generation with

xd2, does not sound

that bad, if it would help us to get things out

the door more

quickly.

BTW, I did not find much on apt based tld

generation, too ...


Regards,
Rene




If the xdoclet 2 project already has a taglib

module,

I'd rather use that.  Is there any technical

reason we would

need to
have our own custom taglib generation module?

Don

Konstantin Priblouda wrote:



--- Don Brown <[EMAIL PROTECTED]> wrote:




Surely, we can't be the first project

interested




in



using annotations to generate taglib tld's?

 Is there any other





solution



out there we can leverage?



Hi Don,  you have several options out of the

box:

1. XD2 has working taglib module, maven2

plugin,




and



fresh version of qdox parser (1.6.1) is said

to




work



with 1.5 sources - just add plugin invocation

to




your



pom.xml

If you like to go for annotations, there is



posibility



to create metadata provider which would pull

the




same



metadata from  annotations instead of @tags

and

utilize the same templates.
regards,

[ Konstantin Pribluda

http://www.pribluda.de




]



Still using XDoclet 1.x?  XDoclet 2 is

released and




of production quality.



check it out: http://xdoclet.codehaus.org









__

__



Do you Yahoo!?
Everyone is raving about the all-new Yahoo!

Mail




beta.



http://new.mail.yahoo.com







--

---



To unsubscribe, e-mail:



[EMAIL PROTECTED]



For additional commands, e-mail:



[EMAIL PROTECTED]




-

---
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]







--


---
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?
threadID=49702&messageID=102084#102084





--


---
To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]








--
-

--
To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]







--
--

-
To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]









--
---

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[

Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Antonio Petrelli

Greg Reddin ha scritto:


On Nov 21, 2006, at 9:15 AM, David H. DeWolf wrote:


What I'm more concerned about is the community/oversight.


How will Tiles 2 be accepted when compared with Sitemesh, etc?  I 
don't know.  The JSF community has Facelets and Clay, so Tiles support 
is more of a legacy thing.


It is real until Tiles 2 does not show anything really new. If Tiles 2 
becomes "the IoC engine for the view layer", as I tried to explain some 
time ago, it probably will be an innovative project. But in this case, 
SB-86 needs to be fixed. But probably an alpha version can be released, 
leaving "revolution" for a later change.
Just to complete the view, what prohibits me to use Tiles 2 together 
with Sitemesh? For example, using the composition capability of Tiles 2 
together with decoration capability of Sitemesh?


In conclusion, after fixing the blocking issues, I think that an alpha 
can be released, but users should be warned that SB-86 will replace a 
feature that Tiles 1.1 had and that currently there is no replacement 
for it.


Ciao
Antonio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: form bean Scope problem?help me

2006-11-21 Thread Ted Husted

Wrong list.

* http://struts.apache.org/mail.html

On 11/7/06, Mallik <[EMAIL PROTECTED]> wrote:


Hi friends
i would like to explain the situation first
i am working for college application...in that
 if user clicks on view,i am displaying data (for this action normal
ActionForm). In that user may click on modify button,where i am transforing
to modify page(for this action also i am using ActionForm). after modifying
some data if he clicks on "update" button, i am validating data using
DynaValidatorForm nad i am calling a action where updation takes place and
redirect to view page.
all action forms scope is request only.
my problem is:
when i click on update in modify page, it is saying that no form bean in any
scope .
why it is?
help me please

ur's
Mallik

--
View this message in context: 
http://www.nabble.com/form-bean-Scope-problem-help-me-tf2588032.html#a7216355
Sent from the Struts - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Releasing Tiles (was: Re: [s2] 2.0.2 release this weekend)

2006-11-21 Thread Ted Husted

On 11/21/06, David H. DeWolf <[EMAIL PROTECTED]> wrote:

Thoughts?


The key question is whether there are at least three (3) active
committers who are using Tiles in their own projects and could vote +1
for GA release, should the build quality warrant.

When making the tally, we should keep in mind that a binding +1 on a
release means: I will help support the release by applying patching
and answering questions on the user list.

Regardless of where the code lives, under ASF rules, we need a binding
quorum of three, but a binding quorum of three is all we need.

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >