4.1.1 (or 4.1.2) Dojo Dialog escaping pageBeginRender

2007-07-03 Thread Paul Stanton

Hi all,

Currently I've got a couple of dialogs within a page. Each time a dialog 
is shown or hidden (via @EventLister annotation) the page's 
pageBeginRender method is called and this is more work than is necessary 
just do display a simple dialog.


Is there a way to detect that the call is being made by the dialog 
request and in that case, not execute exhaustive code?


Thanks, Paul.



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



Re: T5: Generic page classes with beaneditform

2007-07-03 Thread Jun Tsai

wish Jesse to fix the bug in T5.

Jun Tsai

2007/6/26, Jesse Kuhnert <[EMAIL PROTECTED]>:


I don't know if this helps or not, but I got generics working in a very
limited way with 4.1.x in that I do all the type lookup work
manually...(this probably won't work for this use case but thought I'd
throw
it out just in case it does, even this breaks down in many places)


http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/enhance/GenericsMethodSignatureImpl.java?view=markup

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/enhance/GenericsClassInspectorImpl.java?view=markup

On 6/26/07, Francois Armand <[EMAIL PROTECTED]> wrote:
>
> Francois Armand wrote:
> > Actually, it's not really an acceptable solution, but the sole
> > workaround I know (if somebody as another idea, I would be glad to use
> > it).
> Well, this sentence is not true.
> You may ask users to implement a "factory" interface for Class they
> intend to use as parameter type for the bean component source object.
>
> The interface should be like that :
> 8<--
> interface Factory {
> T create();
> }
> 8<--
> And then you just call the create() implementation.
>
> The problem is that that "solution" is very error prone :  the interface
> base implementation has to be overridden by each subclass or you will
> end with the same type problem.
> So, it seems to be a wore solution than the other one...
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com





--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net


Re: 4.1.1 upgrade to 4.1.2 async listener no longer works

2007-07-03 Thread Paul Stanton

Should I log this in Jira Jesse?

Paul Stanton wrote:

Thanks Jesse,

I've changed it to
   @EventListener(targets = {"myButton"}, events = "onclick", async = 
true, autoSubmit = false)

   public void showMyDialog()
and the same exception is thrown. Any more info?

Paul.

Jesse Kuhnert wrote:

Components implementing IFormComponent that are targeted with an
@EventListener do now have their surrounding forms submitted 
automatically

as part of the async request.  If there is something in your logic that
doesn't need/want this to happen you can set the autoSubmit = false
parameter in the annotation and it will do the pure async request only
without the form submission.

http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html#EventListener 



On 7/3/07, Paul Stanton <[EMAIL PROTECTED]> wrote:


Hi,

I've upgraded to 4.1.2 from 4.1.1 and am getting the following when I
try to load one of my Dojo Dialogs (async).

It seems tapestry is trying to call getPage with a null page name, but
I'm not sure why formSubmit is being called at all (unless it's part of
a rewind?)

The trigger is being defined like so:


The listener being called is defined like so:
@EventListener(targets = {"myButton"}, events = "onclick", async =
true)
public void showMyDialog()

If i click my button i get the following exception wrapped in a error
dialog  (async):

Failure invoking listener method 'public org.apache.tapestry.IPage
MyPage.formSubmit()' on [EMAIL PROTECTED]: Parameter name must 
not

be null.
org.apache.hivemind.ApplicationRuntimeException
Failure invoking listener method 'public org.apache.tapestry.IPage
com.pds.pdsv3.tapestry.pages.veridical.VeridicalPage.formSubmit()' on
[EMAIL PROTECTED]/Comparables]: Parameter name must not be
null.
component:
[EMAIL PROTECTED]/Comparables]
location:
context:/WEB-INF/veridical/Comparables.page, line 5, column 81
1

2
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
4

5





[ +/- ] Exception:  Parameter name must
not be null.
java.lang.NullPointerException
Parameter name must not be null.
Stack Trace:

* org.apache.hivemind.util.Defense.notNull(Defense.java:41)
* org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
:217)

* 
$IRequestCycle_1138a7ba350.getPage($IRequestCycle_1138a7ba350.java)
* 
$IRequestCycle_1138a7ba25a.getPage($IRequestCycle_1138a7ba25a.java)

* MyPage.formSubmit(VeridicalPage.java:65)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
* sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

* sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

* java.lang.reflect.Method.invoke(Method.java:597)
*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod( 


ListenerMethodInvokerImpl.java:276)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod 


(ListenerMethodInvokerImpl.java:221)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(
ListenerMethodInvokerImpl.java:157)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod 


(ListenerMethodInvokerImpl.java:80)

* org.apache.tapestry.listener.SyntheticListener.actionTriggered(
SyntheticListener.java:52)

*
org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(
ListenerInvokerTerminator.java:50)

*
$ListenerInvoker_1138a7ba23c.invokeListener($ListenerInvoker_1138a7ba23c.java) 



* org.apache.tapestry.form.Form.renderComponent(Form.java:200)
* 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java

:725)

* org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(
DojoAjaxResponseBuilder.java:625)

* org.apache.tapestry.form.Form.rewind(Form.java:269)
* 
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java

:453)

* org.apache.tapestry.form.Form.trigger(Form.java:280)
* org.apache.tapestry.engine.DirectService.triggerComponent(
DirectService.java:166)

* 
org.apache.tapestry.engine.DirectService.service(DirectService.java

:142)

*
$IEngineService_1138a7ba2ba.service($IEngineService_1138a7ba2ba.java)
* 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(

EngineServiceOuterProxy.java:72)

* org.apache.tapestry.engine.AbstractEngine.service(
AbstractEngine.java:237)

* org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:54)

*
$WebRequestServicer_1138a7ba28e.service($WebRequestServicer_1138a7ba28e.java) 



* org.apache.tapestry.services.impl.DisableCachingFilter.service(
DisableCachingFilter.java:54)

*
$WebRequestServicerFilter_1138a7ba290.service($WebRequestServicerFilter_1138a7ba290.java) 








-
To unsubscribe, e-mail: [EMAIL PROTECT

Re: [T5] service override, more apps per context

2007-07-03 Thread Nick Westgate

Norbert Sándor wrote:

Hello,

1. Is it possible to run more than one T5 applications per servlet context?


Search for the thread "T5: web.xml - multiple applications?"


2. Is it possible to override a service (like in Hivemind)?


Search for the thread "T5 IOC questions" mid June.

"You override built-in services by contributing to the Alias service
(or the AliasOverrides service)."

Also ...
http://tapestry.apache.org/tapestry5/tapestry-core/guide/alias.html

And perhaps more in the tapestry-ioc docs if you look.

Cheers,
Nick.

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



Re: [T5] How create sub component

2007-07-03 Thread Nick Westgate

All components declared in a template or class for a component/page are
"embedded components". They all share the same parent component/page
which is returned by getContainer() as you've seen.

This is completely separate from the DOM hierarchy that T5 builds as it
renders. In that case you can navigate elements (but not components) e.g:

void beginRender(MarkupWriter writer)
{
Element element = writer.getElement();
Element parent = element.getParent();
...
}

At least, that is my undestanding so far.

Cheers,
Nick.


David Avenante wrote:

Hi,

I try to create sub compponent in T5 (5.0.5).

My template is :


   
   Content
   


In myComponent2 class when i try to access to the Container :

@Inject
private ComponentResources componentResources;

componentResources.getContainer(), tapestry return to me my page and
not my component.

If I place :

   Content


in myCompnent1 template it's works 

Why and what is the difference ?

Thank for any input.

-
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]



Problem in mvn package (can not include all the required jars)

2007-07-03 Thread Eko S.W.

Dear community,

I use jetty as the mean to achieve hot development in Maven.
And it works very fine.

But, when I try to package it into WAR and have it deployed to Tomcat, it
doesn't works.
And when I try to understand what happen, I realize that in the WAR there
are required JAR missing.
Such as tapestry-ioc.jar, and other.

And then, I try to declare the required JARS (who already included
automatically in using mvn jetty:run), e.g.

  tapestry-ioc
  ...


Of course this is not the right way (and not easy anyway, because I have to
predict, what dependency needed)
What am I doing wrong?

Thanks in advance!

* FYI : I am using Maven 2.0.7

--
Best wishes,
Eko SW
http://swdev.blogs.friendster.com/my_blog/


Re: T5 tutorial

2007-07-03 Thread [EMAIL PROTECTED]


There is T5 tutorial (HTML) on the T5 site, you didn't found it?

http://tapestry.apache.org/tapestry5/tutorial1/



在 Tue, 03 Jul 2007 16:01:09 +0800,Olasoji Ajayi <[EMAIL PROTECTED]> 写道:



Hello Everybody,


I am new to T5, can anyone point me to some tutorial on T5 that I can
download, I know there is documentation online but I don't have regular
internet access for the moment. I downloaded a PDF file sometime ago
(t5-tutorial.pdf) but its incomplete, chapter 3 is missing.


Olasoji Ajayi



He who fights and runs away, lives to fight and run again






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



Re: T5 tutorial

2007-07-03 Thread Nick Westgate

The tutorial is now online:
http://tapestry.apache.org/tapestry5/tutorial1/

Cheers,
Nick.


Olasoji Ajayi wrote:
 


Hello Everybody,

 


I am new to T5, can anyone point me to some tutorial on T5 that I can
download, I know there is documentation online but I don't have regular
internet access for the moment. I downloaded a PDF file sometime ago
(t5-tutorial.pdf) but its incomplete, chapter 3 is missing.

 


Olasoji Ajayi



He who fights and runs away, lives to fight and run again

 





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



Re: Need Quick Help on else statement

2007-07-03 Thread Eko S.W.

Yess!!!
That was very helpful crowd!

Thank you very much!

2007/7/3, Nick Westgate <[EMAIL PROTECTED]>:


Another option is to use the negate parameter.

Then you only need the one logic method,
and you can have the if's wherever you want:


   ...

...

   ...


Cheers,
Nick.


Erik Vullings wrote:
> Hi Eko,
>
>
>Whatever
>Please select an object first!
>
>
> Cheers
> Erik
>
> On 7/2/07, Eko S.W. <[EMAIL PROTECTED]> wrote:
>>
>> Dear community,
>>
>> Is there else clause in  construct ???
>> I've try (but maybe not hard), but can not find it.
>> That is, is there an else if you use  ???
>>
>> * I imagine it to be like this :
>> 
>> 
>>
>> 
>>
>> Currently, to give the same behaviour I create a getIfSummaryActive
>> method and a getIfSummaryNotActive, like this:
>> 
>>
>>
>> 
>> 
>>
>> 
>>
>> Not perfect, but it's works...
>>
>> Thanks in advance
>> --
>> Best wishes,
>> Eko SW
>> http://swdev.blogs.friendster.com/my_blog/
>>
>> -
>> 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]





--
Best wishes,
Eko SW
http://swdev.blogs.friendster.com/my_blog/


Re: Tapestry make me feel happy !

2007-07-03 Thread Eko S.W.

I just want to ask one question, but why not T5?
I just try Tap too, and I do straight coding in T5 (to my opinion, because
it is the latest, and it should be the only choice)
Is the current T5 can not do the same ?

Thank you in advance!

2007/7/4, #Cyrille37# <[EMAIL PROTECTED]>:


Hi,

I spent a lot of time for discovering the Java World. After used Php,
C++ and C# for years, this new learning adventure need a lot of energy.
But today Tapestry make my feel really Happy !

Yesterday I started a fresh project with Tapestry 4.1.2, Acegi,
Hibernate3, Spring2, Tomcat6, Eclipse3.3, and tonight I've just finished
a Hivemind service to server Json-RPC calls
(http://oss.metaparadigm.com/jsonrpc/) to give access to the application
from some Java Applet and other stuff.

Great, it's working !

Thank you very much to the Tapestry Team and other people from this
mailing list. Thanks you all !

Best regards,
Cyrille.
PS: in 1 month I will have to hard test all of that in a cluster
environment, I think the adventure will restart ;-)

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





--
Best wishes,
Eko SW
http://swdev.blogs.friendster.com/my_blog/


Re: [T5] Is there a working Acegi example available?

2007-07-03 Thread Daniel Jue

Thanks Petros, your example is one of a few I've been working with.
My main issue now is where to assign the principal to an ASO, so I
don't have to look it up in the security context all the time.

This is a normal/proper thing to do, right?  In my previous non-Acegi
applications where a user logged in, I stored a user object (that held
all the user details) as an ASO.

Looking up the Acegi principal from the security context all the time
seems like a hassle.

In your example, your "shell" component ends up calling
"getTapestryPrincipal()".

I think what I want to do is have that kind of method called
immediately after a successful login.  Should I redirect to a common
loginsuccess page, or can I do something immediately after the link
gets returned from this function:

private Link getLink() {
System.out.println("onSuccessFromLoginForm");
System.out.println("request.getContextPath() "
+ request.getContextPath());

Link link = new LinkImpl(response, request.getContextPath(),
"j_acegi_security_check");
link.addParameter("j_username", username);
link.addParameter("j_password", password);

return link;
}

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



Tapestry make me feel happy !

2007-07-03 Thread #Cyrille37#

Hi,

I spent a lot of time for discovering the Java World. After used Php, 
C++ and C# for years, this new learning adventure need a lot of energy.

But today Tapestry make my feel really Happy !

Yesterday I started a fresh project with Tapestry 4.1.2, Acegi, 
Hibernate3, Spring2, Tomcat6, Eclipse3.3, and tonight I've just finished 
a Hivemind service to server Json-RPC calls 
(http://oss.metaparadigm.com/jsonrpc/) to give access to the application 
from some Java Applet and other stuff.


Great, it's working !

Thank you very much to the Tapestry Team and other people from this 
mailing list. Thanks you all !


Best regards,
Cyrille.
PS: in 1 month I will have to hard test all of that in a cluster 
environment, I think the adventure will restart ;-)


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



Q : Tapestry 5 and EJB 3

2007-07-03 Thread Dwi Ardi Irawan

does anyone can give me a little example of using tapestry 5 and EJB 3 ?

thnx u

dwi ardi irawan

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



Q : Tapestry 5 and EJB 3

2007-07-03 Thread Dwi Ardi Irawan

does anyone can give me a little example of using tapestry 5 and EJB 3 ?

thnx u

dwi ardi irawan

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



Q : Tapestry 5 and EJB 3

2007-07-03 Thread Dwi Ardi Irawan

does anyone can give me a little example of using tapestry 5 and EJB 3 ?

thnx u

dwi ardi irawan

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



[T5] How create sub component

2007-07-03 Thread David Avenante

Hi,

I try to create sub compponent in T5 (5.0.5).

My template is :


   
   Content
   


In myComponent2 class when i try to access to the Container :

@Inject
private ComponentResources componentResources;

componentResources.getContainer(), tapestry return to me my page and
not my component.

If I place :

   Content


in myCompnent1 template it's works 

Why and what is the difference ?

Thank for any input.

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



Re: T5 Templates In src/main/resources Might Interfere With Resource Filtering

2007-07-03 Thread Howard Lewis Ship

Can't you set up multiple resource folders, some filtered, some not?

On 7/2/07, Steven Coco <[EMAIL PROTECTED]> wrote:


Hi.

Has there been discussion about the fact that Maven can filter resources,
located in src/main/resources, and if templates are placed there, then
Maven
may munge expansions intended for Tapestry, or maybe also vice-versa?

The tutorial says templates should be placed here. I have been using
WEB-INF,
mainly because application reloading during development is instant this
way,
but when they are in the resources directory, it doesn't pick up changes.
And
other than that there seems to be no difference. But I can easily see a
problem with resource filtering.

In light of this comment, what then is the fate for component templates? I
think they currently are required to appear in src/main/resources, so
there
may be real problems.

You can configure excludes in Maven's resource plugin; but that may not be
a
guaranteed solution: you may have properties bundles for components that
do
need to be filtered by Maven, and the task of configuring those excludes
is
not straightforward, and things may get too onerous to be practical.

The potential for clashes should be a pretty big concern I'd think; since
resource filtering is common, and once a project scales up with many pages
and components, the odds of a Tapestry expansion matching a Maven one will
be
high.

Any comments on this?

Ciao!
Steev Coco.

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: [T5] Acegi integration

2007-07-03 Thread #Cyrille37#

Sébastien,

Perhaps it would not help (Im' so beginer) : perhaps pages are loaded 
before a HttpRequest exists, just the time for Tapestry to add some code 
decoration.


cyrille

Deleuze Sébastien a écrit :

Hi again,

 


During our login process, in 
org.apache.tapestry.internal.services.InternalModule,buildCookieSource(), the 
first time we load our page, _requestGlobals.getHTTPServletRequest() return 
null, so _requestGlobals.getHTTPServletRequest().getCookies(); throw a NPE.

 


The second time everything is ok.

 


Our web.xml is :

 




Acegi Security Filter

/*

  

  

Hibernate Session In View Filter

/*

  

  

app

/*

  

 


Someone can help us ?

Sébastien Deleuze

  _  

De : Deleuze Sébastien 
Envoyé : mardi 3 juillet 2007 18:04

À : users@tapestry.apache.org
Objet : [T5] Acegi integration

 


Hi,

 


We would like to use Acegi with tapestry 5, but we see a NPE (we put Acegi 
filter before Tapestry 5 filter (for security reason).

 


If someone has successfully integrated Aceji with T5, can he send us his 
web.xml ? We would like to see how filters are defined.

 


You will find bellow the stacktrace :

 


java.lang.NullPointerException
 at 
org.apache.tapestry.internal.services.InternalModule$2.getCookies(InternalModule.java:364)
 at $CookieSource_1138ccba180.getCookies($CookieSource_1138ccba180.java)
 at 
org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:58)
 at $Cookies_1138ccba17f.readCookieValue($Cookies_1138ccba17f.java)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:44)
 at $PersistentLocale_1138ccba17e.get($PersistentLocale_1138ccba17e.java)
 at 
org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:98)
 at 
$LocalizationSetter_1138ccba17b.setThreadLocale($LocalizationSetter_1138ccba17b.java)
 at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:628)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at $RequestHandler_1138ccba175.service($RequestHandler_1138ccba175.java)
 at 
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1022)
 at 
$HttpServletRequestHandler_1138ccba174.service($HttpServletRequestHandler_1138ccba174.java)
 at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:352)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:230)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
 at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
 at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
 at org.mortbay.jetty.Server.handle(Server.java:286)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:444)
 at 
or

RE: [T5] Acegi integration

2007-07-03 Thread Deleuze Sébastien
Hi again,

 

During our login process, in 
org.apache.tapestry.internal.services.InternalModule,buildCookieSource(), the 
first time we load our page, _requestGlobals.getHTTPServletRequest() return 
null, so _requestGlobals.getHTTPServletRequest().getCookies(); throw a NPE.

 

The second time everything is ok.

 

Our web.xml is :

 



Acegi Security Filter

/*

  

  

Hibernate Session In View Filter

/*

  

  

app

/*

  

 

Someone can help us ?

Sébastien Deleuze

  _  

De : Deleuze Sébastien 
Envoyé : mardi 3 juillet 2007 18:04
À : users@tapestry.apache.org
Objet : [T5] Acegi integration

 

Hi,

 

We would like to use Acegi with tapestry 5, but we see a NPE (we put Acegi 
filter before Tapestry 5 filter (for security reason).

 

If someone has successfully integrated Aceji with T5, can he send us his 
web.xml ? We would like to see how filters are defined.

 

You will find bellow the stacktrace :

 

java.lang.NullPointerException
 at 
org.apache.tapestry.internal.services.InternalModule$2.getCookies(InternalModule.java:364)
 at $CookieSource_1138ccba180.getCookies($CookieSource_1138ccba180.java)
 at 
org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:58)
 at $Cookies_1138ccba17f.readCookieValue($Cookies_1138ccba17f.java)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:44)
 at $PersistentLocale_1138ccba17e.get($PersistentLocale_1138ccba17e.java)
 at 
org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:98)
 at 
$LocalizationSetter_1138ccba17b.setThreadLocale($LocalizationSetter_1138ccba17b.java)
 at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:628)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at $RequestHandler_1138ccba175.service($RequestHandler_1138ccba175.java)
 at 
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1022)
 at 
$HttpServletRequestHandler_1138ccba174.service($HttpServletRequestHandler_1138ccba174.java)
 at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:352)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:230)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
 at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
 at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
 at org.mortbay.jetty.Server.handle(Server.java:286)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:444)
 at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:701)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
 a

Re: OGNL 2.7 Must use #this

2007-07-03 Thread Kalle Korhonen

Yeap, you are absolutely right Jesse, the unit test succeeds. Must have had
the wrong snapshot version in the classpath. However, a more complex case
still fails in latest 2.7.1, opened
http://jira.opensymphony.com/browse/OGNL-105 for it with a unit test to show
the problem (sorry for the trouble!).

Kalle


On 7/2/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote:


The unit test doesn't succeed for me (and neither does the real world
example, which is slightly different, but I assume the unit test would cover
for it). Well, if you say the unit test should pass now, I'll double-check I
have the right version and get back to you.

Kalle


On 7/2/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> That looks like the right one to me.   The code you provided in the test
> case was re-produced / fixed.  You did mention something about
> "object[linkProperty]" not working before you provided a code example
> but
> I'm assuming the code example was what was intended to be fixed
>
> Does the same test case not work for you?
>
> On 7/2/07, Kalle Korhonen <[EMAIL PROTECTED] > wrote:
> >
> > Hey Jesse - saw you had marked
> > http://jira.opensymphony.com/browse/OGNL-97as resolved so I assumed
> > the fix might be in the latest snapshot
> > ognl-2.7.1-20070630.205921-4 posted later but there were no changes as
> far
> > as I could notice. Certainly don't want to sound impatient as you are
> > doing
> > superb job in fixing these, but how do I know in which snapshot the
> fix
> > might be?
> >
> > Kalle
> >
> >
> > On 6/26/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote:
> > >
> > > Thanks. I wasn't 100% how legitimate, but filed as
> > > http://jira.opensymphony.com/browse/OGNL-97
> > >
> > > Kalle
> > >
> > > On 6/26/07, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > > >
> > > > No time to look at this right now,  but if you file a jira report
> > here:
> > > >
> > > > http://jira.opensymphony.com/browse/OGNL
> > > >
> > > > it can be looked in to for the next 2.7.1 release.
> > > >
> > > > The forums are here:
> > > >
> > > > http://forums.opensymphony.com/category.jspa?categoryID=10
> > > >
> > > > (though I'm thinking of moving them to google groups as well)
> > > >
> > > > On 6/26/07, Kalle Korhonen <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi Jesse et al,
> > > > >
> > > > > while trying to migrate to Tap 4.1.2 we started getting lots of
> > > > > OgnlExceptions with message "source is null" from
> > > > OgnlRuntime.getProperty.
> > > > > The workaround was to add #this to a lot of places where we used
>
> > more
> > > > > complex OGNL expressions. I realize this is probably much more
> to do
> > > > with
> > > > > enhanced Ognl than Tapestry, so I would have taken the
> discussion to
> > > > ognl
> > > > > list, but subscribing to ognl-interest failed with
> > lists.ognl.orgdomain
> > > > > not
> > > > > found. Anyway, an example of failing expression is:
> > > > > ognl:object[linkProperty]
> > > > >
> > > > > that now only works with:
> > > > > ognl:object[#this.linkProperty]
> > > > >
> > > > > Without knowing anything about how compiled OGNL works, just
> > following
> > > > the
> > > > > ExpressionEvaluatorImpl.java source I tried to make a test case
> that
> > > > > fails:
> > > > > public String getKey() {
> > > > > return "key";
> > > > > }
> > > > >
> > > > > public void testEnhancedOgnl() throws Exception {
> > > > > map = new HashMap();
> > > > > map.put("key", "value");
> > > > > ClassResolver ognlResolver = new OgnlClassResolver();
> > > > > OgnlContext context =
> > > > (OgnlContext)Ognl.createDefaultContext(this,
> > > > > ognlResolver);
> > > > > Node expression = Ognl.compileExpression(context, map,
> > "key");
> > > > > assertEquals(map.get("key"), Ognl.getValue(
> > > > expression.getAccessor
> > > > > (),
> > > > > context, map)) ;
> > > > >
> > > > > context = (OgnlContext)Ognl.createDefaultContext(this,
> > > > > ognlResolver);
> > > > > expression = Ognl.compileExpression(context, this,
> > > > "#this[key]");
> > > > > assertEquals("key", Ognl.getValue(expression.getAccessor
> (),
> > > > > context,
> > > > > this)) ;
> > > > >
> > > > > context = (OgnlContext)Ognl.createDefaultContext(this,
> > > > > ognlResolver);
> > > > > expression = Ognl.compileExpression (context, this,
> > > > "#this.key");
> > > > > assertEquals("key", Ognl.getValue(expression.getAccessor
> (),
> > > > > context,
> > > > > this)) ;
> > > > >
> > > > > // Fails
> > > > > context = (OgnlContext)Ognl.createDefaultContext(this,
> > > > > ognlResolver);
> > > > > expression = Ognl.compileExpression (context, this,
> "key");
> > > > > assertEquals("key", Ognl.getValue(expression.getAccessor
> (),
> > > > > context,
> > > > > this)) ;
> > > > > }
> > > > >
> > > > >
> > > > > I might be way off here (like I said, I don't know anything
> about it
> > > > :),
> > > > > but

[T5] service override, more apps per context

2007-07-03 Thread Norbert Sándor

Hello,

1. Is it possible to run more than one T5 applications per servlet context?
2. Is it possible to override a service (like in Hivemind)?

Thanks:
Norbi

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



Re: [T4] Login.html as the Login and Failed page for Acegi

2007-07-03 Thread #Cyrille37#

Alejandro Scandroli a écrit :

Salut Cyrille

This trick has two parts:
1) the acegi configuration:

  
class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
ref="authenticationManager"/>
value="/Login.page?login_error=1"/>


value="/j_acegi_security_check"/>



The important property here is "authenticationFailureUrl", pay
attention to the added parameter "?login_error=1" after the login page
name.

2) Then in your login page you check if the "login_error" parameter 
exist.




value="message:org.trails.login.error">Error:

Wrong Username or Password


Thanks you Alejandro ! Of course it's help ;-)
It's so simple that it is powerful.

But if someone has another idea, that will be managing "inside" Tapestry 
... It will be a good way for learning more about Tapestry.


Cheers
cyrille





I hope this helps.
Alejandro.


On 7/3/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:

Ken nashua a écrit :
> Here is a sample working login...
>
> Best I can provide at this point.
>
> public abstract class LoginPage extends BasePage {
>
> private static final Log LOG = LogFactory.getLog(LoginPage.class);
>
> public abstract String getUsername();
>
> public abstract String getPassword();
>
> public void login(IRequestCycle cycle) throws RedirectException {
>
> LOG.debug("User " + getUsername() + " is attempting login.");
>
> String acegiUrl =
> cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" +
> getUsername() + "&j_password=" + getPassword());
>
> throw new RedirectException(acegiUrl);
> }
> }
>
Thanks but it is not what I need. And in my post there was exactly the
same code (for login method).

What I would like to find is how to distinguish between an arrival on
the Login page for login against an arrival because login failed while
I'm using the same page for Acegi parameters
AuthenticationProcessingFilterEntryPoint.loginFormUrl (Login) and
AuthenticationProcessingFilter.authenticationFailureUrl (LoginFailed)

cheers
cyrille




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



Re: [T4] Login.html as the Login and Failed page for Acegi

2007-07-03 Thread Alejandro Scandroli

Salut Cyrille

This trick has two parts:
1) the acegi configuration:








The important property here is "authenticationFailureUrl", pay
attention to the added parameter "?login_error=1" after the login page
name.

2) Then in your login page you check if the "login_error" parameter exist.



Error:
Wrong Username or Password



I hope this helps.
Alejandro.


On 7/3/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:

Ken nashua a écrit :
> Here is a sample working login...
>
> Best I can provide at this point.
>
> public abstract class LoginPage extends BasePage {
>
> private static final Log LOG = LogFactory.getLog(LoginPage.class);
>
> public abstract String getUsername();
>
> public abstract String getPassword();
>
> public void login(IRequestCycle cycle) throws RedirectException {
>
> LOG.debug("User " + getUsername() + " is attempting login.");
>
> String acegiUrl =
> cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" +
> getUsername() + "&j_password=" + getPassword());
>
> throw new RedirectException(acegiUrl);
> }
> }
>
Thanks but it is not what I need. And in my post there was exactly the
same code (for login method).

What I would like to find is how to distinguish between an arrival on
the Login page for login against an arrival because login failed while
I'm using the same page for Acegi parameters
AuthenticationProcessingFilterEntryPoint.loginFormUrl (Login) and
AuthenticationProcessingFilter.authenticationFailureUrl (LoginFailed)

cheers
cyrille


-
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: [T4] Login.html as the Login and Failed page for Acegi

2007-07-03 Thread #Cyrille37#

Ken nashua a écrit :

Here is a sample working login...

Best I can provide at this point.

public abstract class LoginPage extends BasePage {

private static final Log LOG = LogFactory.getLog(LoginPage.class);

public abstract String getUsername();

public abstract String getPassword();

public void login(IRequestCycle cycle) throws RedirectException {

LOG.debug("User " + getUsername() + " is attempting login.");

String acegiUrl = 
cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" + 
getUsername() + "&j_password=" + getPassword());


throw new RedirectException(acegiUrl);
}
}

Thanks but it is not what I need. And in my post there was exactly the 
same code (for login method).


What I would like to find is how to distinguish between an arrival on 
the Login page for login against an arrival because login failed while 
I'm using the same page for Acegi parameters 
AuthenticationProcessingFilterEntryPoint.loginFormUrl (Login) and 
AuthenticationProcessingFilter.authenticationFailureUrl (LoginFailed)


cheers
cyrille


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



[T5] Acegi integration

2007-07-03 Thread Deleuze Sébastien
Hi,

 

We would like to use Acegi with tapestry 5, but we see a NPE (we put Acegi 
filter before Tapestry 5 filter (for security reason).

 

If someone has successfully integrated Aceji with T5, can he send us his 
web.xml ? We would like to see how filters are defined.

 

You will find bellow the stacktrace :

 

java.lang.NullPointerException
 at 
org.apache.tapestry.internal.services.InternalModule$2.getCookies(InternalModule.java:364)
 at $CookieSource_1138ccba180.getCookies($CookieSource_1138ccba180.java)
 at 
org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:58)
 at $Cookies_1138ccba17f.readCookieValue($Cookies_1138ccba17f.java)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50)
 at 
org.apache.tapestry.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:44)
 at $PersistentLocale_1138ccba17e.get($PersistentLocale_1138ccba17e.java)
 at 
org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:98)
 at 
$LocalizationSetter_1138ccba17b.setThreadLocale($LocalizationSetter_1138ccba17b.java)
 at 
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:628)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
 at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
 at 
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
 at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java)
 at $RequestHandler_1138ccba175.service($RequestHandler_1138ccba175.java)
 at 
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1022)
 at 
$HttpServletRequestHandler_1138ccba174.service($HttpServletRequestHandler_1138ccba174.java)
 at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
 at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
 at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
 at 
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
 at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
 at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
 at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:352)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:230)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
 at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
 at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
 at org.mortbay.jetty.Server.handle(Server.java:286)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:444)
 at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:701)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:203)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:340)
 at org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
 at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
13735 [ERROR] org.apache.tapestry.corelib.pages.ExceptionReport  - Render queue 
error in 
BeginRender[org.apache.tapestry.corelib.pages.ExceptionReport:renderobject_0]: 
java.lang.NullPointerException
java.lang.NullPointerException
 at $Request_1138ccba1b6.getContextPath($Request_1138ccba1b6.java)
 at $Request_1138ccba16e.getContextPath($Request_1138ccba16e.java)
 at 
org.apache.tapestry.internal.services.RequestRenderer.render(RequestRenderer.java:34)
 at 
org.apache.ta

Re: [T4] Login.html as the Login and Failed page for Acegi

2007-07-03 Thread Ken nashua

Here is a sample working login...

Best I can provide at this point.

public abstract class LoginPage extends BasePage {

private static final Log LOG = LogFactory.getLog(LoginPage.class);

public abstract String getUsername();

public abstract String getPassword();

public void login(IRequestCycle cycle) throws RedirectException {

LOG.debug("User " + getUsername() + " is attempting login.");

		String acegiUrl = 
cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" + getUsername() + 
"&j_password=" + getPassword());


throw new RedirectException(acegiUrl);
}
}

_
http://newlivehotmail.com


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



[T4] Login.html as the Login and Failed page for Acegi

2007-07-03 Thread #Cyrille37#

Hello,

After many mails on that list and many read on the web I get something 
running (Tap4.1.2, Spring2, Hibernate3, Acegi, Json-Rpc).

Ouf !

I would like to make only one page for Login and LoginFailed but I could 
not find how the Login page can know that it is coming back from the 
ACEGI url  /j_acegi_security_check.


I've got a easy Login class :
   ...
   public void login( IRequestCycle cycle ) throws RedirectException
   {
   if (!getDelegate().getHasErrors())
   {
   String acegiUrl = cycle.getAbsoluteURL( 
"/j_acegi_security_check?" + "j_username="

   + getUsername() + "&j_password=" + getPassword() ) ;
   throw new RedirectException( acegiUrl ) ;
   }
   }
   ...

So, which feature to use by the Login page to know if the request is 
from the user (for Login request) or from Acegi (Login failed) ?

Thanks a lot
cyrille



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



Re: how to reference property value ? quiz question please.

2007-07-03 Thread Ken nashua
Yes, I tried all of these and also applied @Persist to try on other 
properties too.


ognl:session.title
ognl:page.title
ognl:page.components.title
ognl:headComponent.title

I am stuck...
?

_
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507


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



Re: how to tile/stretch a header image in css

2007-07-03 Thread Daniel Jue

Ken,

At this point, you would benefit more by going through some CSS
tutorials.  (I don't know of any useful CSS forums).  There, you will
probably be exposed to even more neat things you can do.  You can
search Digg for CSS and you should be able to find some good tutorial
sites.

Good luck!!

On 7/3/07, Ken nashua <[EMAIL PROTECTED]> wrote:

Sorry folks if this does not belong in this group but I think it might.

I have the following:


div#header {
color: black;
clear: both;
padding: 0;
height: 94px;
margin: 5px 5px 5px 5px;
background: #fff url( images/header.jpg ) top left no-repeat;
}

But the image is coming up in original width/height.

How can I stretch the image?

How can I tile it?

If I stretch it does the percentage have to be against a component like
 or  or 

The above css element is rendered in a div tag




Ideally I would like this header to occupy 15% of the top main page it lies
within and stretch the header image to 80% of that.

Help is greatly appreciated.

Thanks

_
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2


-
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: how to reference property value ? quiz question please.

2007-07-03 Thread #Cyrille37#

Ken nashua a écrit :
I declared an id to a widget and trying to reference a property of 
that widget further below in html.


Here is the code..

title="ognl:page.components.headComponent.title" 
stylesheet="ognl:assets.stylesheet">







value="ognl:page.components.headComponent.title"/>





The widget in question is headComponent...

Now the widget CustomHead has no problem referencing 
ognl:page.components.headComponent.title


but thereafter down below in html... it fails nosuchproperty
value="ognl:page.components.headComponent.title"/>

Did you try

or




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



how to tile/stretch a header image in css

2007-07-03 Thread Ken nashua

Sorry folks if this does not belong in this group but I think it might.

I have the following:


div#header {
color: black;
clear: both;
padding: 0;
height: 94px;
margin: 5px 5px 5px 5px;
background: #fff url( images/header.jpg ) top left no-repeat;
}

But the image is coming up in original width/height.

How can I stretch the image?

How can I tile it?

If I stretch it does the percentage have to be against a component like 
 or  or 


The above css element is rendered in a div tag




Ideally I would like this header to occupy 15% of the top main page it lies 
within and stretch the header image to 80% of that.


Help is greatly appreciated.

Thanks

_
Don't get caught with egg on your face. Play Chicktionary!  
http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2



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



how to reference property value ? quiz question please.

2007-07-03 Thread Ken nashua

Thanks...

I just have a little question...

I declared an id to a widget and trying to reference a property of that 
widget further below in html.


Here is the code..

title="ognl:page.components.headComponent.title" 
stylesheet="ognl:assets.stylesheet">







		value="ognl:page.components.headComponent.title"/>





The widget in question is headComponent...

Now the widget CustomHead has no problem referencing 
ognl:page.components.headComponent.title


but thereafter down below in html... it fails nosuchproperty
value="ognl:page.components.headComponent.title"/>


How am I suppose to refer to this value?

i tried @Persist annotation in the java...

I am at a loss for how to get this thing into the session/page and refer to 
it.


Can someone help and let me know whats oging on... I believe this is basic 
tapestry 101. Sorry.

Thanks in advance.

Best regards
Ken in nashua

org.apache.tapestry.BindingException
Unable to read OGNL expression '' of 
[EMAIL PROTECTED]/$Border]: source is null for getProperty(null, 
"title")
binding: 	ExpressionBinding[Home/$Border 
page.components.headComponent.title]

location:   context:/WEB-INF/Border.html, line 8
3   
4   
5   
6   
7   
8	value="ognl:page.components.headComponent.title"/>

9   
10  
11  
12
13	


org.apache.hivemind.ApplicationRuntimeException
Unable to read OGNL expression '' of 
[EMAIL PROTECTED]/$Border]: source is null for getProperty(null, 
"title")

component:  [EMAIL PROTECTED]/$Border]
location:   context:/WEB-INF/Home.html, line 1
1   
2   Welcome to Trails
3   
4	value="ognl:descriptor">

5   
6	typeName="ognl:descriptor.type.name"/>


ognl.OgnlException
source is null for getProperty(null, "title")
Stack Trace:

   * ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1611)
   * ognl.ASTProperty.getValueBody(ASTProperty.java:96)
   * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
   * ognl.SimpleNode.getValue(SimpleNode.java:210)
   * ognl.ASTChain.getValueBody(ASTChain.java:109)
   * ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
   * ognl.SimpleNode.getValue(SimpleNode.java:210)
   * ognl.Ognl.getValue(Ognl.java:333)
   * ognl.Ognl.getValue(Ognl.java:310)
   * 
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:91)
   * 
$ExpressionEvaluator_1138c8dc9ee.readCompiled($ExpressionEvaluator_1138c8dc9ee.java)
   * 
org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:110)
   * 
org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:103)
   * 
org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:87)

   * $Insert_6.getValue($Insert_6.java)
   * org.apache.tapestry.components.Insert.renderComponent(Insert.java:42)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
   * 
org.apache.tapestry.link.DefaultLinkRenderer.renderLink(DefaultLinkRenderer.java:81)
   * 
org.apache.tapestry.link.AbstractLinkComponent.renderComponent(AbstractLinkComponent.java:95)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)

   * org.apache.tapestry.html.Body.renderComponent(Body.java:129)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
   * 
org.trails.demo.components.CustomHead.renderComponent(CustomHead.java:219)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
   * 
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
   * 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)

   * org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
   * 
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:366)
   * 
org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:71)
   * 
$ResponseRenderer_1138c8dc8ec.renderResponse($ResponseRenderer_1138c8dc8ec.java)
   * 
$ResponseRenderer_1138c8dc8eb.renderResponse($ResponseRenderer_1138c8dc8eb.java)

   * org.apache.tapestry.engine.HomeService.service(HomeService.java:65)
   * $IEngineService_1138c8dc957.service($IEngineService_1138c8dc957.java)
   * 
org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(EngineServiceInnerProxy.java:77)
   * 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.ja

T5 tutorial

2007-07-03 Thread Olasoji Ajayi
 

Hello Everybody,

 

I am new to T5, can anyone point me to some tutorial on T5 that I can
download, I know there is documentation online but I don't have regular
internet access for the moment. I downloaded a PDF file sometime ago
(t5-tutorial.pdf) but its incomplete, chapter 3 is missing.

 

Olasoji Ajayi



He who fights and runs away, lives to fight and run again

 



Re: [T5] how to use Meta annotation?

2007-07-03 Thread Jun Tsai

I find use ComponentResource to get the meta value;

@Inject
private ComponentResources componentResources;

componentResources.getComponentModel().getMeta("key");

2007/7/3, Jun Tsai <[EMAIL PROTECTED]>:



I find a meta annotation in tapestry5.but i didn't to inject the meta.

thanks

jun tsai
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net





--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net


[T5] how to use Meta annotation?

2007-07-03 Thread Jun Tsai

I find a meta annotation in tapestry5.but i didn't to inject the meta.

thanks

jun tsai
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net


Re: Selenium problem with T4.1.2

2007-07-03 Thread Geoff Callender

Jesse,

Thanks, but I'm sad to say that there are no other error messages to  
go on.


However, dojo was patched in April for an almost identical problem:

	http://trac.dojotoolkit.org/ticket/2723  -  PopupContainer load  
error within a cross-domain IFRAME


Would you be able to have a quick look into whether the error  
"dialog" in T4.1.2 does something similar with to what's described in  
the ticket, ie. does it call dojo.html.getDocumentWindow()?  I think  
the Selenium TestRunner URL counts as a cross-domain URL, eg:


	chrome://selenium-ide/content/selenium/TestRunner.html?test=file:/// 
jumpstart-max-1.5.0/web/src/test/SmokeTestSuite.html&baseURL=http:// 
localhost:8080


Regards,

Geoff

On 03/07/2007, at 2:25 PM, Jesse Kuhnert wrote:


That's an internal error thrown by the mozilla dom implementation.
nsiDOMEventListener is the class and handleEvent is the method
NS_ERROR_XPC.blahblah is just some constant and the hex-y  
looking string
is probably the current op code in the current pseudo js vm  
context...(i

think?)

Other than that I have absolutely no idea.  I'm not sure if even a  
mozilla

dev could tell you what was wrong with that much information.

On 7/2/07, Geoff Callender <[EMAIL PROTECTED]>  
wrote:


Hi,

My Selenium tests that worked with T4.1.1 now fail with T4.1.2.  They
still work just fine with Selenium IDE but not in Selenium TestRunner
which runs the whole suite in an IFRAME.

It looks like client-side validation, which used to work, is now dead
in TestRunner.  Could this be the cause...

[Exception... "'Permission denied to get property
HTMLDocument._parentWindow' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

Firebug shows that error whenever you arrive in a page with a form.

I found a similar report but no solution: http://forums.openqa.org/
thread.jspa?threadID=4638&tstart=111

Suggestions, anyone?

Regards,

Geoff


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




Re: T4.1.2 - css background images not working - bug?

2007-07-03 Thread Jan Vissers

The actual images are defined within .css files
that are incorporated (at runtime) into the HTML files like so:






Jesse Kuhnert wrote:

Tapestry doesn't process your css files or the images it
referencesunless for some reason your relative context image path is
somehow setup to match an asset Tapestry is managing it should be 
handled by

your servlet container.

Is that not the case here?

On 7/2/07, Jan Vissers <[EMAIL PROTECTED]> wrote:


Apparently the images are a bit differently processed in T4.1.2
Change the url below from ../images/... to images/... makes the
page render properly again. However this means I can no longer see
these images in the wysiwyg view of the page.

Not a show stopper, but if anybody has an idea to have both (design +
runtime) that would be nice.

-J.

Jan Vissers wrote:
> Hi,
>
> Moving from 4.1.1 to 4.1.2 I noticed that css background images are
> broken.
>
> For example:
>
> #logo {
>float: left;
>padding-top: 15px;
>padding-left: 200px;
>padding-bottom: 40px;
>background: url(../images/logo.gif) no-repeat;
>background-position: 5% 50%
> }
>
> "background:url" Worked in 4.1.1, but is broken in 4.1.2.
>
> Am I missing something?
>
> Thanks,
> -J.
>
> -
> 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]







--
Cumquat Information Technology
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)30 - 6940499
W http://www.cumquat.nl

E [EMAIL PROTECTED]
M +31 6 51 169 556
B http://www.cumquat.nl/technology_atom10.xml



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



Re: a servlet with a tapestry servlet in one web.xml

2007-07-03 Thread Lutz Hühnken

Which servlet/filter handles which request is configured in web.xml.
Apparently, yours is set up in a way that a request which should go to
the WingS-Servlet is handled by the Tapestry filter, although it
shouldn't be.

Check the filter-mapping for the TapestryFilter, does it include
/application/  ? For your purpose, it shouldn't. If you can't resolve
it, you might want to post your web.xml, or the relevant sections of
it.

hth,

Lutz


On 7/3/07, Tina Umlandt <[EMAIL PROTECTED]> wrote:

Hello,

I have the following problem. I have a servlet which should be in the same 
context as the tapestry application but it is
built with a different framework named wings.

Wings is using another framework named dwr. dwr is sending request like "GET 
/application/dwr/engine.js".
Now I get the exception
"java.lang.IllegalArgumentException: Unable to resolve page 'dwr/engine' to a 
known page name. Available page names: ...
at 
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:393)
at 
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:388)
at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
at
org.apache.tapestry.internal.services.ComponentClassResolverImpl.canonicalizePageName(ComponentClassResolverImpl.java:386)
..."

Is there a way to tell tapestry several request about which it should not care 
and just ignore?

Thx,
Tina


-
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: 4.1.1 upgrade to 4.1.2 async listener no longer works

2007-07-03 Thread Paul Stanton

Thanks Jesse,

I've changed it to
   @EventListener(targets = {"myButton"}, events = "onclick", async = 
true, autoSubmit = false)

   public void showMyDialog()
and the same exception is thrown. Any more info?

Paul.

Jesse Kuhnert wrote:

Components implementing IFormComponent that are targeted with an
@EventListener do now have their surrounding forms submitted 
automatically

as part of the async request.  If there is something in your logic that
doesn't need/want this to happen you can set the autoSubmit = false
parameter in the annotation and it will do the pure async request only
without the form submission.

http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html#EventListener 



On 7/3/07, Paul Stanton <[EMAIL PROTECTED]> wrote:


Hi,

I've upgraded to 4.1.2 from 4.1.1 and am getting the following when I
try to load one of my Dojo Dialogs (async).

It seems tapestry is trying to call getPage with a null page name, but
I'm not sure why formSubmit is being called at all (unless it's part of
a rewind?)

The trigger is being defined like so:


The listener being called is defined like so:
@EventListener(targets = {"myButton"}, events = "onclick", async =
true)
public void showMyDialog()

If i click my button i get the following exception wrapped in a error
dialog  (async):

Failure invoking listener method 'public org.apache.tapestry.IPage
MyPage.formSubmit()' on [EMAIL PROTECTED]: Parameter name must not
be null.
org.apache.hivemind.ApplicationRuntimeException
Failure invoking listener method 'public org.apache.tapestry.IPage
com.pds.pdsv3.tapestry.pages.veridical.VeridicalPage.formSubmit()' on
[EMAIL PROTECTED]/Comparables]: Parameter name must not be
null.
component:
[EMAIL PROTECTED]/Comparables]
location:
context:/WEB-INF/veridical/Comparables.page, line 5, column 81
1

2
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
4

5





[ +/- ] Exception:  Parameter name must
not be null.
java.lang.NullPointerException
Parameter name must not be null.
Stack Trace:

* org.apache.hivemind.util.Defense.notNull(Defense.java:41)
* org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
:217)

* 
$IRequestCycle_1138a7ba350.getPage($IRequestCycle_1138a7ba350.java)
* 
$IRequestCycle_1138a7ba25a.getPage($IRequestCycle_1138a7ba25a.java)

* MyPage.formSubmit(VeridicalPage.java:65)
* sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
* sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

* sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

* java.lang.reflect.Method.invoke(Method.java:597)
*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeTargetMethod( 


ListenerMethodInvokerImpl.java:276)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod 


(ListenerMethodInvokerImpl.java:221)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.searchAndInvoke(
ListenerMethodInvokerImpl.java:157)

*
org.apache.tapestry.listener.ListenerMethodInvokerImpl.invokeListenerMethod 


(ListenerMethodInvokerImpl.java:80)

* org.apache.tapestry.listener.SyntheticListener.actionTriggered(
SyntheticListener.java:52)

*
org.apache.tapestry.listener.ListenerInvokerTerminator.invokeListener(
ListenerInvokerTerminator.java:50)

*
$ListenerInvoker_1138a7ba23c.invokeListener($ListenerInvoker_1138a7ba23c.java) 



* org.apache.tapestry.form.Form.renderComponent(Form.java:200)
* 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java

:725)

* org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(
DojoAjaxResponseBuilder.java:625)

* org.apache.tapestry.form.Form.rewind(Form.java:269)
* 
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java

:453)

* org.apache.tapestry.form.Form.trigger(Form.java:280)
* org.apache.tapestry.engine.DirectService.triggerComponent(
DirectService.java:166)

* 
org.apache.tapestry.engine.DirectService.service(DirectService.java

:142)

*
$IEngineService_1138a7ba2ba.service($IEngineService_1138a7ba2ba.java)
* org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
EngineServiceOuterProxy.java:72)

* org.apache.tapestry.engine.AbstractEngine.service(
AbstractEngine.java:237)

* org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:54)

*
$WebRequestServicer_1138a7ba28e.service($WebRequestServicer_1138a7ba28e.java) 



* org.apache.tapestry.services.impl.DisableCachingFilter.service(
DisableCachingFilter.java:54)

*
$WebRequestServicerFilter_1138a7ba290.service($WebRequestServicerFilter_1138a7ba290.java) 








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





a servlet with a tapestry servlet in one web.xml

2007-07-03 Thread Tina Umlandt

Hello,

I have the following problem. I have a servlet which should be in the same context as the tapestry application but it is 
built with a different framework named wings.


Wings is using another framework named dwr. dwr is sending request like "GET 
/application/dwr/engine.js".
Now I get the exception
"java.lang.IllegalArgumentException: Unable to resolve page 'dwr/engine' to a 
known page name. Available page names: ...
at 
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:393)
at 
org.apache.tapestry.internal.services.ComponentClassResolverImpl$8.invoke(ComponentClassResolverImpl.java:388)
at 
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
	at 
org.apache.tapestry.internal.services.ComponentClassResolverImpl.canonicalizePageName(ComponentClassResolverImpl.java:386)

..."

Is there a way to tell tapestry several request about which it should not care 
and just ignore?

Thx,
Tina


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



Re: T5 How to Override the default banner message (Errors component)

2007-07-03 Thread Ulrich Stärk
AFAICS that would be:

Errors.properties:
default-banner=You must correct the following errors before you may continue.

ValidationMessages.properties:
required=You must provide a value for %s.
minimum-string-length=You must provide at least %d characters for %s.
maximum-string-length=You may provide at most %d characters for %s.
min-integer=%2$s requires a value of at least %1$d.
max-integer=%2$s requires a value no larger than %1$d.
integer-format-exception=The input value '%s' is not parseable as an
integer value.
number-format-exception=The input value '%s' is not parseable as a numeric
value.
icon-label=[Error]

Just have a look at the tapestry jarfile. You might also be interested in
the German translation of the two I did and attached.

Cheers,

Uli

On Di, 3.07.2007, 09:31, Erik Vullings sagte:
> Thanks Uli and Marcus, that will be useful in the near future!
>
> BTW, what are the labels that can be overruled: default-banner and ...?
>
> I will add them to the Tapestry Wiki
> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
>
> Cheers
> Erik
>
> On 7/3/07, Marcus <[EMAIL PROTECTED]> wrote:
>> Hi Uli,
>> org/apache/tapestry/corelib/components/Errors.properties
>> org/apache/tapestry/internal/ValidationMessages.properties
>> :-)
>> Thank you!
>> Marcus
>


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