Re: Persistance

2008-11-28 Thread thermus

I'm interested in this as well.  Specifically if a user has two page
instances open, how can T5 persistence be used reliably?

I found on Safari and Firefox (not sure about IE, but likely a problem there
as well) that the persisted session properties are shared between page
instances and each page can overwrite the another.  My searches didn't come
up with a definitive answer although I did see that the question has been
asked several times.  Can anyone comment on this or provide a workaround?



Peter Stavrinides wrote:
> 
> ... but what would be ideal in my humble view is a proper page persistence
> Strategy, where a value is retained until the user leaves the page. In
> truth someone posted such a solution which used a cookie, and it seemed to
> behave exactly as it should, nevertheless I am still against relying on a
> cookie. I understand this may be difficult to implement due to Tapestry's
> inner workings, particularly the way pages are pooled, but since
> conversational state covers some of this ground (the difference being a
> conversation is tied to not only the page, but the window so each tab is
> treated as a new conversation)...
> 

-- 
View this message in context: 
http://www.nabble.com/Persistance-tp20732003p20743522.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: @Propery can not be an Interface? No default coercion?

2008-11-28 Thread Howard Lewis Ship
How to you convert the string "false" to an instance of whatever
PageDelegate is?  Tapestry doesn't know either.

On Wed, Nov 26, 2008 at 3:41 AM, Maximilian Weißböck
<[EMAIL PROTECTED]> wrote:
> I have a component that has a delegate as parameter binding like this:
>
>
>
>   @Parameter("false")
>
>   @Property
>
>   private PageDelegate pageDelegate;
>
>
>
> Inside the page I'm testing if the delegate is set (only then an ActionLink 
> will be shown)
>
>
>
>   
>
>
>
>
>
> PageDelegate is an Interface, and I'm getting this error on startup:
>
>
>
> [ERROR] ipeople.Index Render queue error in 
> BeginRender[ipeople/Index:iphonelistlayout.if_0]: Failure reading parameter 
> 'test' of component ipeople/Index:iphonelistlayout.if_0: Failure reading 
> parameter 'pageDelegate' of component ipeople/Index:iphonelistlayout: Could 
> not find a coercion from type java.lang.Boolean to type 
> at.sphinx.sxfinder.util.PageDelegate.  Available coercions: Double --> Float, 
> Float --> Double, Long --> Boolean, Long --> Byte, Long --> Double, Long --> 
> Integer, Long --> Short, Number --> Long, Object --> Object[], Object --> 
> String,  ... [deleted]
>
>
>
> Everything works fine if I change pageDelegate to type Object, as there is a 
> default coercion for Object.
>
> Now what I would like is the exact same behaviour for an Interface as it is 
> for Object (test returns true if not null, false if null)
>
>
>
> Is there e generic way to do this, or even better could that be standard 
> behaviour in T5?
>
> Anything that is against this possible standard behaviour?
>
>
>
>
>
> And a second question:
>
>
>
> What I'm doing with this PageDelegate is to give the Component access to the 
> Page it is contained in.
>
> Is there a better/standard way to do this?
>
>
>
> Thanks, Max
>
>
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5.0.17 actionlinks with zones do not degrade gracefully ?

2008-11-28 Thread Howard Lewis Ship
This is something that we have been struggling with; there are
multiple conflicting requirements here. The driver for this was that
slow loading pages would allow JS links to be clicked before
client-side event handlers had been wired up, often resulting in
incorrect behavior on the server side (when a link intended for an
Ajax action and partial render was instead interpreted as a
traditional request and full page render).

On Fri, Nov 28, 2008 at 11:54 AM, Janko Muzykant <[EMAIL PROTECTED]> wrote:
>
> hi all,
> as I can see, something has changed in actionlinks since T5.0.14 and now all
> my actionlinks with zone parameter added appear without any arguments. they
> just point at correct address with appended /#. it works ok when javascript
> is enabled, but fails when js is switched off.
>
> regards,
> jm.
>
> --
> View this message in context: 
> http://www.nabble.com/T5.0.17-actionlinks-with-zones-do-not-degrade-gracefully---tp20739783p20739783.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



T5.0.17 actionlinks with zones do not degrade gracefully ?

2008-11-28 Thread Janko Muzykant

hi all,
as I can see, something has changed in actionlinks since T5.0.14 and now all
my actionlinks with zone parameter added appear without any arguments. they
just point at correct address with appended /#. it works ok when javascript
is enabled, but fails when js is switched off. 

regards,
jm.

-- 
View this message in context: 
http://www.nabble.com/T5.0.17-actionlinks-with-zones-do-not-degrade-gracefully---tp20739783p20739783.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: [T5] LinkSumit no event captured

2008-11-28 Thread Henry Chen
I just created one.

https://issues.apache.org/jira/browse/TAP5-389



-Original Message-
From: Martijn Brinkers [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 8:30 AM
To: [EMAIL PROTECTED]
Cc: 'Howard Lewis Ship'; 'Tapestry users'
Subject: RE: [T5] LinkSumit no event captured

Did you file a JIRA entry for this? It seems I experience the same
problem (form with Zone and no event from the LinkSubmit)

Martijn

On Wed, 2008-11-26 at 20:03 -0600, Henry Chen wrote:
> I figured it out. If Form component specifies a 'zone' parameter, the
> following part in linksubmit.js is not doing expected behavior. 
> 
> if (onsubmit == undefined || onsubmit.call(window.document, event))
>  {
>  this.createHidden();
>  this.form.submit();
>  }
> 
> createHidden() is not called so no hidden field is thus inserted. Removing
> 'zone' from Form component fixed this immediately. I think this is a bug.
> 
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 25, 2008 7:01 PM
> To: Tapestry users; [EMAIL PROTECTED]
> Subject: Re: [T5] LinkSumit no event captured
> 
> That should work; what release are you on?
> 
> On Tue, Nov 25, 2008 at 3:52 PM, Henry Chen <[EMAIL PROTECTED]>
wrote:
> > Hi,
> >
> >
> >
> > I tried the following without any luck.
> >
> >
> >
> > In my .tml:
> >
> >
> >
> > Update
> >
> >
> >
> > In java:
> >
> >
> >
> >
> >
> > public void onUpdate() {
> >
> >actionType = SubmitAction.ADD;
> >
> > }
> >
> >
> >
> > Didn't work. Then I tried below:
> >
> >
> >
> > @OnEvent(value="addField")
> >
> > public void onUpdate() {
> >
> >actionType = SubmitAction.ADD;
> >
> > }
> >
> >
> >
> > No luck.
> >
> >
> >
> >
> >
> > Can anybody show me how to use LinkSubmit? Thanks a lot!
> >
> >
> >
> > Henry
> >
> >
> >
> >
> >
> >
> 
> 
> 


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



Re: T5: disabling popup client-side validator alerts

2008-11-28 Thread Eric Ma

Read this thread:

http://www.nabble.com/-Tapestry-5.0.15Hidding-client-side-validation-td20242061.html#a20242061


immutability wrote:
> 
> So I guess there's no simple way? :-(
> 
> Rado
> 
> 
> 
> immutability wrote:
>> 
>> Hey everyone, I'm sure this will (possibly) be a simple thing, but I
>> can't seem to find a straightforward way to disable the fading popup
>> client-side validator alerts (the bubbles). I've searched through the
>> forums, how-tos, but just couldn't find the right way. I've tried to use
>> CSS and set t-error-popup to display:none, but it didn't work, maybe it's
>> visibility is controlled by JavaScript? Can anyone give me a hint?
>> 
>> To make sure I put this right: I DO want client-side validation. I just
>> need it simple - without the bubbles (i.e. field labels and borders
>> turning red + the red "X" are all sufficient for me)
>> 
>> Thanks!
>> Rado
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disabling-popup-client-side-validator-alerts-tp20704228p20738165.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: creating components with Tapestry 5

2008-11-28 Thread Howard Lewis Ship
On Fri, Nov 28, 2008 at 2:30 AM, mad <[EMAIL PROTECTED]> wrote:
>
> Thanks, Howard, that seems to have been the issue.  I moved Layout.tml to
> /src/main/resources/org/apache/tapestry5/tutorial/components, and now
> everything works beautifully.  Is this the right place?
>
> An annotation would be nice, but also might I suggest a less cryptic error
> message for components which do not have this annotation, something like
> "Layout.tml not found in ".

It's perfectly legit for a component to not have a template, or for a
component to have a template and render partially in code, or to
inherit its template from a base class, or for a component to not
render anything but still be useful (!).

>
> Thanks again,
> Marc
>
>
> Howard Lewis Ship wrote:
>>
>> Tapestry couldn't find your component's template and was forced to
>> assume it didn't exist.  I'm beginning to wonder if we need an
>> annotation for components that don't have a template, since this can
>> be a bastard for newbies to track down.
>>
>>
>> Component templates are stored on the classpath, with the associated
>> .class file; i..e, src/main/resources.  In addition, you must match
>> the name of the Java class to the name of the template filed
>> (MyComponent.java --> MyComponent.tml).
>>
>> On Thu, Nov 27, 2008 at 9:49 AM, mad <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi again,
>>>
>>> I hate to ask the same question twice.  I did actually have this working
>>> with a previous version of T5, but in 5.0.15, the  tag is failing,
>>> like this:
>>>
>>> Render queue error in Text[ toto ]: This markup writer does not have a
>>> current element. The current element is established with the first call
>>> to
>>> element() and is maintained across subsequent calls.
>>>
>>>
>>> Here is what I have:
>>>
>>> Layout.tml:
>>>
>>> >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>>>
>>> ...
>>>
>>> 
>>>
>>> ...
>>>
>>> 
>>>
>>>
>>> Layout.java:
>>>
>>> package org.apache.tapestry5.tutorial.components;
>>>
>>> import net.rbcdexia_is.ds.application.Formatters;
>>>
>>> public class Layout {
>>> }
>>>
>>>
>>> Page.tml:
>>>
>>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>>> toto
>>> 
>>>
>>>
>>> Page.java:
>>> package org.apache.tapestry5.tutorial.pages;
>>>
>>> public class Page {
>>>
>>> }
>>>
>>>
>>> As you can see, there really isn't much to it.  What am I doing wrong?  I
>>> believe I am following the example given in
>>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html
>>> in
>>> the "Tapestry Elements" section, for the  tag, pretty much to the
>>> letter.
>>>
>>>
>>> As usual, thanks for all your help,
>>> Marc
>>>
>>>
>>>
>>> mad wrote:

 Hi everyone,

 First off, I am new to Tapestry, although I've been doing WebObjects for
 about 8 years, so the I'm hoping the transition won't be too painful.
 I've chosen to work with Tapestry 5 since it seems like quite a
 signifiicant evolution from the previous version, but I'm having some
 difficulty finding resoureces.  I've done the excellent Tapestry 5
 tutorial, but I need much more input!  Can anybody point me to some
 useful
 places.  I am especially interested in words of wisdom regarding use of
 Tapestry and Cayenne together (which I am also learning).

 My current issue is trying to understand how to create a page wrapper
 component (or any sort of component, actually) in Tapestry 5 --
 something
 like the old WOComponentContent, which I know and love.

 tia,
 Marc


>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20723258.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20732079.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: [T5] - How to restore/re-attach to an ASO after user leave application?

2008-11-28 Thread Martijn Brinkers
Are you using IE? IE sometimes starts a new process for a new window.
This process does not have access to the cookies in the other IE
process.

See for example: http://support.microsoft.com/kb/831678


On Fri, 2008-11-28 at 18:26 +0200, Ovidiu Hurducas wrote:
> Thanks Andy,
> 
> That's very strange. I've tested this scenario (with cookies enabled and
> disabled) with a RequestFilter with http redirect as a re-entry point.
> 
> In the service method when I'm calling:
> 
> TAState state = stateManager.getIfExists(TAState.class);
> 
> this allways retrun null no matter what.
> 
> Also I've tested with a page as a re-entry:
> 
> @ApplicationState
> private TAState state;
> 
> this is also null. Very weird!
> 
> Some parameters (like jsessionid) can be provided as needed if user don't
> have cookies enabled.
> 
> Cheers!
> 
> 
> On Fri, Nov 28, 2008 at 6:01 PM, Andy Pahne <[EMAIL PROTECTED]>wrote:
> 
> >
> > The session reattachment part: as long as the session id is stored in the
> > default place (cookie), it should work right out of the box. It does not
> > matter if the browsing session is interrupted shortly, as long as the
> > session does not time out or the user closes and reopens his browser.
> >
> > I don't understand the parameters thing. Please be a bit more specific.
> >
> > Andy
> >
> >
> >
> >
> >
> > Ovidiu Hurducas schrieb:
> >
> >  Hi!
> >> I have a Tap 5 (5.0.15) application with the following scenario:
> >>
> >> User access a page and init ASO -> User than leave on a 3'rd party site
> >> (can
> >> save some params here) -> user come back on my site and wants to access
> >> the
> >> ASO again (saved params can be provided here)
> >>
> >> So the questions are: How do I reattach the user to its previous session?
> >> What parameters should be provided in order to achieve that?
> >> What is the best option for re-entry point? (page, RequestFilter, anything
> >> else?)
> >>
> >> Thank you!
> >>
> >> --Ovidiu
> >>
> >>
> >>
> >
> >
> > -
> > 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: [T5] - How to restore/re-attach to an ASO after user leave application?

2008-11-28 Thread Ovidiu Hurducas
Thanks Andy,

That's very strange. I've tested this scenario (with cookies enabled and
disabled) with a RequestFilter with http redirect as a re-entry point.

In the service method when I'm calling:

TAState state = stateManager.getIfExists(TAState.class);

this allways retrun null no matter what.

Also I've tested with a page as a re-entry:

@ApplicationState
private TAState state;

this is also null. Very weird!

Some parameters (like jsessionid) can be provided as needed if user don't
have cookies enabled.

Cheers!


On Fri, Nov 28, 2008 at 6:01 PM, Andy Pahne <[EMAIL PROTECTED]>wrote:

>
> The session reattachment part: as long as the session id is stored in the
> default place (cookie), it should work right out of the box. It does not
> matter if the browsing session is interrupted shortly, as long as the
> session does not time out or the user closes and reopens his browser.
>
> I don't understand the parameters thing. Please be a bit more specific.
>
> Andy
>
>
>
>
>
> Ovidiu Hurducas schrieb:
>
>  Hi!
>> I have a Tap 5 (5.0.15) application with the following scenario:
>>
>> User access a page and init ASO -> User than leave on a 3'rd party site
>> (can
>> save some params here) -> user come back on my site and wants to access
>> the
>> ASO again (saved params can be provided here)
>>
>> So the questions are: How do I reattach the user to its previous session?
>> What parameters should be provided in order to achieve that?
>> What is the best option for re-entry point? (page, RequestFilter, anything
>> else?)
>>
>> Thank you!
>>
>> --Ovidiu
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Andy Pahne



I have the same problem, except that the string I want to pass contains 
a space character.


Andy



Angelo Chen schrieb:

Hi,


public Object onActivate(String email);

if i activate it with:

http://localhost/mypage/[EMAIL PROTECTED]

I got an error:
Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 4 
is
not valid.
this used to work in 5.0.15, any idea?

Thanks.
  



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



Re: [T5] - How to restore/re-attach to an ASO after user leave application?

2008-11-28 Thread Andy Pahne


The session reattachment part: as long as the session id is stored in 
the default place (cookie), it should work right out of the box. It does 
not matter if the browsing session is interrupted shortly, as long as 
the session does not time out or the user closes and reopens his browser.


I don't understand the parameters thing. Please be a bit more specific.

Andy





Ovidiu Hurducas schrieb:

Hi!
I have a Tap 5 (5.0.15) application with the following scenario:

User access a page and init ASO -> User than leave on a 3'rd party site (can
save some params here) -> user come back on my site and wants to access the
ASO again (saved params can be provided here)

So the questions are: How do I reattach the user to its previous session?
What parameters should be provided in order to achieve that?
What is the best option for re-entry point? (page, RequestFilter, anything
else?)

Thank you!

--Ovidiu

  



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



[T5] - How to restore/re-attach to an ASO after user leave application?

2008-11-28 Thread Ovidiu Hurducas
Hi!
I have a Tap 5 (5.0.15) application with the following scenario:

User access a page and init ASO -> User than leave on a 3'rd party site (can
save some params here) -> user come back on my site and wants to access the
ASO again (saved params can be provided here)

So the questions are: How do I reattach the user to its previous session?
What parameters should be provided in order to achieve that?
What is the best option for re-entry point? (page, RequestFilter, anything
else?)

Thank you!

--Ovidiu


Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Andy Pahne



Space  = $0020
'@'  = $0040






Tobias Wehrum schrieb:

Sorry, my bad: I forgot to update with the project I tested it.

Andy Pahne schrieb:


Tobias Wehrum schrieb:

Hi,

URL encoding works fine for me:

[EMAIL PROTECTED]:  abc%40abc.com
two words: two%20words

- Tobias



http://localhost:8080/oos/administration/task/list/type/two%20words

Response:

But definetly not for me. I double checked that I use 5.0.17.

   * java.lang.IllegalArgumentException
 Input string 'two words' is not valid; the character ' ' at
 position 4 is not valid.

 Stack trace
 o 
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143) 

 o 
org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:70) 

 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:88) 

 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71) 

 o 
org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) 

 o 
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) 

 o 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) 

 o 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) 

 o 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) 

 o 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) 

 o 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) 

 o 
org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) 

 o 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) 

 o 
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179)
 o 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359) 

 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) 

 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.basicauth.BasicProcessingFilte

Re: T5: disabling popup client-side validator alerts

2008-11-28 Thread immutability

So I guess there's no simple way? :-(

Rado



immutability wrote:
> 
> Hey everyone, I'm sure this will (possibly) be a simple thing, but I can't
> seem to find a straightforward way to disable the fading popup client-side
> validator alerts (the bubbles). I've searched through the forums, how-tos,
> but just couldn't find the right way. I've tried to use CSS and set
> t-error-popup to display:none, but it didn't work, maybe it's visibility
> is controlled by JavaScript? Can anyone give me a hint?
> 
> To make sure I put this right: I DO want client-side validation. I just
> need it simple - without the bubbles (i.e. field labels and borders
> turning red + the red "X" are all sufficient for me)
> 
> Thanks!
> Rado
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disabling-popup-client-side-validator-alerts-tp20704228p20735799.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: [T5] LinkSumit no event captured

2008-11-28 Thread Martijn Brinkers
Did you file a JIRA entry for this? It seems I experience the same
problem (form with Zone and no event from the LinkSubmit)

Martijn

On Wed, 2008-11-26 at 20:03 -0600, Henry Chen wrote:
> I figured it out. If Form component specifies a 'zone' parameter, the
> following part in linksubmit.js is not doing expected behavior. 
> 
> if (onsubmit == undefined || onsubmit.call(window.document, event))
>  {
>  this.createHidden();
>  this.form.submit();
>  }
> 
> createHidden() is not called so no hidden field is thus inserted. Removing
> 'zone' from Form component fixed this immediately. I think this is a bug.
> 
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 25, 2008 7:01 PM
> To: Tapestry users; [EMAIL PROTECTED]
> Subject: Re: [T5] LinkSumit no event captured
> 
> That should work; what release are you on?
> 
> On Tue, Nov 25, 2008 at 3:52 PM, Henry Chen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >
> >
> > I tried the following without any luck.
> >
> >
> >
> > In my .tml:
> >
> >
> >
> > Update
> >
> >
> >
> > In java:
> >
> >
> >
> >
> >
> > public void onUpdate() {
> >
> >actionType = SubmitAction.ADD;
> >
> > }
> >
> >
> >
> > Didn't work. Then I tried below:
> >
> >
> >
> > @OnEvent(value="addField")
> >
> > public void onUpdate() {
> >
> >actionType = SubmitAction.ADD;
> >
> > }
> >
> >
> >
> > No luck.
> >
> >
> >
> >
> >
> > Can anybody show me how to use LinkSubmit? Thanks a lot!
> >
> >
> >
> > Henry
> >
> >
> >
> >
> >
> >
> 
> 
> 


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



Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Tobias Wehrum

Sorry, my bad: I forgot to update with the project I tested it.

Andy Pahne schrieb:


Tobias Wehrum schrieb:

Hi,

URL encoding works fine for me:

[EMAIL PROTECTED]:  abc%40abc.com
two words: two%20words

- Tobias



http://localhost:8080/oos/administration/task/list/type/two%20words

Response:

But definetly not for me. I double checked that I use 5.0.17.

   * java.lang.IllegalArgumentException
 Input string 'two words' is not valid; the character ' ' at
 position 4 is not valid.

 Stack trace
 o 
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143) 

 o 
org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:70) 

 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:88) 

 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71) 

 o 
org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) 

 o 
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) 

 o 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) 

 o 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) 

 o 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) 

 o 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) 

 o 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) 

 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) 

 o 
org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) 

 o 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) 

 o 
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179)
 o 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359) 

 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) 

 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) 

 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) 

 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371) 

 o 
org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:173) 

 o 

Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Martijn Brinkers
The 'URL' encoder has been changed in 5.0.16. Since 5.0.16 @ is for
example encoded as $0040. Seach the mail archive for the rationale for
this and how to solve this.

Martijn 

On Fri, 2008-11-28 at 05:38 -0800, Angelo Chen wrote:
> kind of strange, abc%40abc.com does not work for me.
> 
> 
> Tobias Wehrum wrote:
> > 
> > Hi,
> > 
> > URL encoding works fine for me:
> > 
> > [EMAIL PROTECTED]:  abc%40abc.com
> > two words: two%20words
> > 
> > - Tobias
> > 
> > Andy Pahne schrieb:
> >>
> >> I have the same problem, except that my string contains a space 
> >> character. Regular URL encoding does not seem to work.
> >>
> >> Andy
> >>
> >>
> >> Angelo Chen schrieb:
> >>> Hi,
> >>>
> >>>
> >>> public Object onActivate(String email);
> >>>
> >>> if i activate it with:
> >>>
> >>> http://localhost/mypage/[EMAIL PROTECTED]
> >>>
> >>> I got an error:
> >>> Input string '[EMAIL PROTECTED]' is not valid; the character '@' at 
> >>> position 4 is
> >>> not valid.
> >>> this used to work in 5.0.15, any idea?
> >>>
> >>> Thanks.
> >>>   
> >>
> >>
> >> -
> >> 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: t5.0.17 how to pass an email address from url

2008-11-28 Thread Andy Pahne


Tobias Wehrum schrieb:

Hi,

URL encoding works fine for me:

[EMAIL PROTECTED]:  abc%40abc.com
two words: two%20words

- Tobias



http://localhost:8080/oos/administration/task/list/type/two%20words

Response:

But definetly not for me. I double checked that I use 5.0.17.

   * java.lang.IllegalArgumentException
 Input string 'two words' is not valid; the character ' ' at
 position 4 is not valid.

 Stack trace
 o 
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143)
 o 
org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:70)
 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:88)
 o 
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71)
 o 
org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029)
 o 
org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42)
 o 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
 o 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621)
 o 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611)
 o 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85)
 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93)
 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
 o 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83)
 o 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106)
 o 
org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007)
 o 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
 o 
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179)
 o 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
 o 
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
 o 
org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:173)
 o 
org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
 o 
org.springframework.security.util.FilterChainProxy$

Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Angelo Chen

kind of strange, abc%40abc.com does not work for me.


Tobias Wehrum wrote:
> 
> Hi,
> 
> URL encoding works fine for me:
> 
> [EMAIL PROTECTED]:  abc%40abc.com
> two words: two%20words
> 
> - Tobias
> 
> Andy Pahne schrieb:
>>
>> I have the same problem, except that my string contains a space 
>> character. Regular URL encoding does not seem to work.
>>
>> Andy
>>
>>
>> Angelo Chen schrieb:
>>> Hi,
>>>
>>>
>>> public Object onActivate(String email);
>>>
>>> if i activate it with:
>>>
>>> http://localhost/mypage/[EMAIL PROTECTED]
>>>
>>> I got an error:
>>> Input string '[EMAIL PROTECTED]' is not valid; the character '@' at 
>>> position 4 is
>>> not valid.
>>> this used to work in 5.0.15, any idea?
>>>
>>> Thanks.
>>>   
>>
>>
>> -
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5.0.17--how-to-pass-an-email-address-from-url-tp20732525p20734583.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5.0.17 how to pass an email address from url

2008-11-28 Thread Tobias Wehrum

Hi,

URL encoding works fine for me:

[EMAIL PROTECTED]:  abc%40abc.com
two words: two%20words

- Tobias

Andy Pahne schrieb:


I have the same problem, except that my string contains a space 
character. Regular URL encoding does not seem to work.


Andy


Angelo Chen schrieb:

Hi,


public Object onActivate(String email);

if i activate it with:

http://localhost/mypage/[EMAIL PROTECTED]

I got an error:
Input string '[EMAIL PROTECTED]' is not valid; the character '@' at 
position 4 is

not valid.
this used to work in 5.0.15, any idea?

Thanks.
  



-
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: t5.0.17 how to pass an email address from url

2008-11-28 Thread Andy Pahne


I have the same problem, except that my string contains a space 
character. Regular URL encoding does not seem to work.


Andy


Angelo Chen schrieb:

Hi,


public Object onActivate(String email);

if i activate it with:

http://localhost/mypage/[EMAIL PROTECTED]

I got an error:
Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 4 
is
not valid.
this used to work in 5.0.15, any idea?

Thanks.
  



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



t5.0.17 how to pass an email address from url

2008-11-28 Thread Angelo Chen

Hi,


public Object onActivate(String email);

if i activate it with:

http://localhost/mypage/[EMAIL PROTECTED]

I got an error:
Input string '[EMAIL PROTECTED]' is not valid; the character '@' at position 4 
is
not valid.
this used to work in 5.0.15, any idea?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/t5.0.17--how-to-pass-an-email-address-from-url-tp20732525p20732525.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Antwort: [T5] Bug in HibernateModule?

2008-11-28 Thread Kristian Marinkovic
it looks like it was not merged yet

i guess now, after the final release (5.0.17) Howard will 
probably merge  them in the next couple of days 

in the meantime you could use the version from the
5.0 Branch




Imants Firsts <[EMAIL PROTECTED]> 
28.11.2008 10:38
Bitte antworten an
"Tapestry users" 


An
Tapestry users 
Kopie

Thema
Re: Antwort: [T5] Bug in HibernateModule?







I am using HEAD branch from SVN, could be that it is not merged in 
Tapestry 5.1?

Quoting Kristian Marinkovic <[EMAIL PROTECTED]>:
> hi,
> 
> now i know what you mean, because i had the same 
> problem and reported it as 
> https://issues.apache.org/jira/browse/TAP5-230 
> :)
> 
> it is fixed in Tapestry 5.0.16
> 
> g,
> kris
> 
> 
> 
> 
> 
> Imants Firsts <[EMAIL PROTECTED]> 
> 27.11.2008 18:14
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> Tapestry users 
> Kopie
> 
> Thema
> Re: Antwort: [T5] Bug in HibernateModule?
> 
> 
> 
> 
> 
> 
> 
> Adding ids to my services does not help. The problem occurs when 
> HibernateModule is trying to contribute the default HibernateConfigurer,
> 
> but is unable to look it up, because it does not specify which one is 
the
> 
> default.
> 
> This is the code from HibernateModule:
> 
> public static void 
> 
contributeHibernateSessionSource(OrderedConfiguration
> 
> config, HibernateConfigurer defaultHibernateConfigurer) {
> config.add("Default", defaultHibernateConfigurer);
> config.addInstance("PackageName", 
> PackageNameHibernateConfigurer.class);
> }
> 
> Of course if there is only one HibernateConfigurer implementation then 
> there is no problem.
> 
> 
> Quoting Kristian Marinkovic <[EMAIL PROTECTED]>:
> > not a bug.  this is correct behavior!
> > 
> > if you declare multiple ioc services with the same interface you
> have
> > to qualifiy them with an id. otherwise the ioc container wont know
> which
> > service instance of the HibernateConfigurer interface to inject
> > 
> > in your use case you could also contribute the HibernateConfigurer
> > directly...
> > 
> > public void 
> > 
> 
contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, ObjectLocator locator)
> > {
> > config.add(locator.proxy(HibernateConfigurer.class, 
> > MyImplementation.class));
> > // or
> > config.add(locator.autobuild(MyOtherImplementation.class));
> > }
> > 
> > g,
> > kris
> > 
> > 
> > 
> > 
> > Imants Firsts <[EMAIL PROTECTED]> 
> > 27.11.2008 17:37
> > Bitte antworten an
> > "Tapestry users" 
> > 
> > 
> > An
> > users@tapestry.apache.org
> > Kopie
> > 
> > Thema
> > [T5] Bug in HibernateModule?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi!
> > 
> > I am getting the following exception if I have a service in my
> > application 
> > that implements HibernateConfigurer and I contribute it to 
> > HibernateSessionSource.
> > 
> > org.apache.tapestry5.ioc.internal.OperationException
> > Service interface org.apache.tapestry5.hibernate.HibernateConfigurer
> is 
> > matched by 3 services: DefaultHibernateConfigurer, 
> > HibernateAdministration, HibernateInterceptorConfigurer. Automatic 
> > dependency resolution requires that exactly one service implement
> the 
> > interface.
> > 
> > The problem is fixed by adding the 
> > @InjectService("DefaultHibernateConfigurer") annotation to
> the
> > 
> > contributeHibernateSessionSource defaultHibernateConfigurer
> parameter.
> > 
> > Current declaration:
> > public static void 
> > 
> 
contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, HibernateConfigurer defaultHibernateConfigurer)
> > 
> > Fixed declaration:
> > public static void 
> > 
> 
contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, @InjectService("DefaultHibernateConfigurer")
> > HibernateConfigurer 
> > defaultHibernateConfigurer)
> > 
> > 
> >
> -
> > 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: creating components with Tapestry 5

2008-11-28 Thread mad7777

Thanks, Howard, that seems to have been the issue.  I moved Layout.tml to
/src/main/resources/org/apache/tapestry5/tutorial/components, and now
everything works beautifully.  Is this the right place?

An annotation would be nice, but also might I suggest a less cryptic error
message for components which do not have this annotation, something like
"Layout.tml not found in ".

Thanks again,
Marc


Howard Lewis Ship wrote:
> 
> Tapestry couldn't find your component's template and was forced to
> assume it didn't exist.  I'm beginning to wonder if we need an
> annotation for components that don't have a template, since this can
> be a bastard for newbies to track down.
> 
> 
> Component templates are stored on the classpath, with the associated
> .class file; i..e, src/main/resources.  In addition, you must match
> the name of the Java class to the name of the template filed
> (MyComponent.java --> MyComponent.tml).
> 
> On Thu, Nov 27, 2008 at 9:49 AM, mad <[EMAIL PROTECTED]> wrote:
>>
>> Hi again,
>>
>> I hate to ask the same question twice.  I did actually have this working
>> with a previous version of T5, but in 5.0.15, the  tag is failing,
>> like this:
>>
>> Render queue error in Text[ toto ]: This markup writer does not have a
>> current element. The current element is established with the first call
>> to
>> element() and is maintained across subsequent calls.
>>
>>
>> Here is what I have:
>>
>> Layout.tml:
>>
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>>
>> ...
>>
>> 
>>
>> ...
>>
>> 
>>
>>
>> Layout.java:
>>
>> package org.apache.tapestry5.tutorial.components;
>>
>> import net.rbcdexia_is.ds.application.Formatters;
>>
>> public class Layout {
>> }
>>
>>
>> Page.tml:
>>
>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>> toto
>> 
>>
>>
>> Page.java:
>> package org.apache.tapestry5.tutorial.pages;
>>
>> public class Page {
>>
>> }
>>
>>
>> As you can see, there really isn't much to it.  What am I doing wrong?  I
>> believe I am following the example given in
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html
>> in
>> the "Tapestry Elements" section, for the  tag, pretty much to the
>> letter.
>>
>>
>> As usual, thanks for all your help,
>> Marc
>>
>>
>>
>> mad wrote:
>>>
>>> Hi everyone,
>>>
>>> First off, I am new to Tapestry, although I've been doing WebObjects for
>>> about 8 years, so the I'm hoping the transition won't be too painful.
>>> I've chosen to work with Tapestry 5 since it seems like quite a
>>> signifiicant evolution from the previous version, but I'm having some
>>> difficulty finding resoureces.  I've done the excellent Tapestry 5
>>> tutorial, but I need much more input!  Can anybody point me to some
>>> useful
>>> places.  I am especially interested in words of wisdom regarding use of
>>> Tapestry and Cayenne together (which I am also learning).
>>>
>>> My current issue is trying to understand how to create a page wrapper
>>> component (or any sort of component, actually) in Tapestry 5 --
>>> something
>>> like the old WOComponentContent, which I know and love.
>>>
>>> tia,
>>> Marc
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20723258.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20732079.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Persistance

2008-11-28 Thread Peter Stavrinides
Hi,

I have been thinking about persistence lately... and after moving all our apps 
from Tapestry 4 to Tapestry 5 this past year, I have noticed distinct patterns 
emerge in the way pages fit together and use persistence, and I have been 
searching all the while for best practices... here are some comments on how 
persistence evolved in my code:

@Persist - I tended to use it a lot in the beginning, but far less now, I have 
found it optimal not to clutter the session, and therefore persist only a 
select few fields (mostly primitives).

@Persist("flash") - I moved to flash persistence wherever I could, as it helps 
limit the number of queries required, but its not always feasible to use. On 
the odd occasion I also ran into problems with render methods when pages were 
complex.

I now use mostly onActivate and onPassivate, this has proven to be the most 
reliable pattern, and the most scalable. It does require a bit more boilerplate 
code for checking that URL parameters are passed correctly, particularly for 
pages that have 'optional parameters'... the one downside is that I have a few 
more queries now.

So whats missing in an ideal world? A read in a post some time ago that 
conversational patterns may be added in 5.1, that would be great! but what 
would be ideal in my humble view is a proper page persistence Strategy, where a 
value is retained until the user leaves the page. In truth someone posted such 
a solution which used a cookie, and it seemed to behave exactly as it should, 
nevertheless I am still against relying on a cookie. I understand this may be 
difficult to implement due to Tapestry's inner workings, particularly the way 
pages are pooled, but since conversational state covers some of this ground 
(the difference being a conversation is tied to not only the page, but the 
window so each tab is treated as a new conversation), I thought to at least to 
ask if it could be considered at some point if at all feasible. I would also 
love to hear other peoples thoughts/opinions on this.

cheers,
Peter

  


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



Re: Antwort: [T5] Bug in HibernateModule?

2008-11-28 Thread Imants Firsts
I am using HEAD branch from SVN, could be that it is not merged in Tapestry 5.1?

Quoting Kristian Marinkovic <[EMAIL PROTECTED]>:
> hi,
> 
> now i know what you mean, because i had the same 
> problem and reported it as 
> https://issues.apache.org/jira/browse/TAP5-230 
> :)
> 
> it is fixed in Tapestry 5.0.16
> 
> g,
> kris
> 
> 
> 
> 
> 
> Imants Firsts <[EMAIL PROTECTED]> 
> 27.11.2008 18:14
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> Tapestry users 
> Kopie
> 
> Thema
> Re: Antwort: [T5] Bug in HibernateModule?
> 
> 
> 
> 
> 
> 
> 
> Adding ids to my services does not help. The problem occurs when 
> HibernateModule is trying to contribute the default HibernateConfigurer,
> 
> but is unable to look it up, because it does not specify which one is the
> 
> default.
> 
> This is the code from HibernateModule:
> 
> public static void 
> contributeHibernateSessionSource(OrderedConfiguration
> 
> config, HibernateConfigurer defaultHibernateConfigurer) {
> config.add("Default", defaultHibernateConfigurer);
> config.addInstance("PackageName", 
> PackageNameHibernateConfigurer.class);
> }
> 
> Of course if there is only one HibernateConfigurer implementation then 
> there is no problem.
> 
> 
> Quoting Kristian Marinkovic <[EMAIL PROTECTED]>:
> > not a bug.  this is correct behavior!
> > 
> > if you declare multiple ioc services with the same interface you
> have
> > to qualifiy them with an id. otherwise the ioc container wont know
> which
> > service instance of the HibernateConfigurer interface to inject
> > 
> > in your use case you could also contribute the HibernateConfigurer
> > directly...
> > 
> > public void 
> > 
> contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, ObjectLocator locator)
> > {
> > config.add(locator.proxy(HibernateConfigurer.class, 
> > MyImplementation.class));
> > // or
> > config.add(locator.autobuild(MyOtherImplementation.class));
> > }
> > 
> > g,
> > kris
> > 
> > 
> > 
> > 
> > Imants Firsts <[EMAIL PROTECTED]> 
> > 27.11.2008 17:37
> > Bitte antworten an
> > "Tapestry users" 
> > 
> > 
> > An
> > users@tapestry.apache.org
> > Kopie
> > 
> > Thema
> > [T5] Bug in HibernateModule?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi!
> > 
> > I am getting the following exception if I have a service in my
> > application 
> > that implements HibernateConfigurer and I contribute it to 
> > HibernateSessionSource.
> > 
> > org.apache.tapestry5.ioc.internal.OperationException
> > Service interface org.apache.tapestry5.hibernate.HibernateConfigurer
> is 
> > matched by 3 services: DefaultHibernateConfigurer, 
> > HibernateAdministration, HibernateInterceptorConfigurer. Automatic 
> > dependency resolution requires that exactly one service implement
> the 
> > interface.
> > 
> > The problem is fixed by adding the 
> > @InjectService("DefaultHibernateConfigurer") annotation to
> the
> > 
> > contributeHibernateSessionSource defaultHibernateConfigurer
> parameter.
> > 
> > Current declaration:
> > public static void 
> > 
> contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, HibernateConfigurer defaultHibernateConfigurer)
> > 
> > Fixed declaration:
> > public static void 
> > 
> contributeHibernateSessionSource(OrderedConfiguration
> > 
> > config, @InjectService("DefaultHibernateConfigurer")
> > HibernateConfigurer 
> > defaultHibernateConfigurer)
> > 
> > 
> >
> -
> > 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]



t5components 0.5.17 is now available for Tapestry 5.0.17

2008-11-28 Thread Sven Homburg
Hi there,

t5components 0.5.17 is now available for Tapestry 5.0.17

project page http://tapestry5-components.googlecode.com


-- 
with regards
Sven Homburg
http://www.chenillekit.org
http://tapestry5-components.googlecode.com


Re: @Persist - default to session "by page"?

2008-11-28 Thread Kristian Marinkovic
you have to use the @ApplicationState annotations instead
if you want to share the data between multiple pages

g,
kris




Olexiy Prokhorenko <[EMAIL PROTECTED]> 
28.11.2008 05:02
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
@Persist - default to session "by page"?






Hi there,

I am trying out Tapestry 5, and have some minor (I guess) problem.
I have two different pages and each of them has:

..
@Persist
@Property
private String successMessage;
..

and each of the pages at some point writes something into it. Let's 
say page1 writes "Hi page1", and page2 writes "Aloha page2". Simple 
enough, but the problem is that page1 sees always IT'S OWN message, 
and page2 sees IT'S OWN.

Why successMessage isn't shared between them?
What am I doing wrong?

Thanks!


dojo 1.2.2 and tapestry integration

2008-11-28 Thread shaowei mao

Is there way i can replace current dojo packaged in tapestry jar with dojo
1.2.2 and add dijit?
-- 
View this message in context: 
http://n2.nabble.com/dojo-1.2.2-and-tapestry-integration-tp1588280p1588280.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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