Form submission in Tap5

2008-10-31 Thread Vinayak Borkar

Hi,

I am trying to build a simple GET based form to implement a search box. 
All the examples (that I could find) seem to focus on forms using POST 
to create new entities.


Is there an example to show simple GET based form requests?

Thanks,
Vinayak

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



Re: Port Redirect problem

2008-10-31 Thread Jecki
Hi,

It might be related to ProxyPassReverse setting.
http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse

On Sat, Nov 1, 2008 at 5:50 AM, abangkis <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've created a simple T 5.0.15 app, and deploy it to my server. The
> server setup for my server is, a tomcat server behind apache server.
> I Used reverse proxy to do this. But i've encounter A problem. I've
> managed to get to the start page just fine. But after i logged in it
> keep redirecting me to the tomcat port.
>
> So for example after I've accessed  www.myserver.net/myapp/start ,
> after login i will get
> www.myserver.net:8080/myapp/listuser
>
> Any idea why is this happening ? Would it make a different if i inject
> the page to navigate between pages, instead returning ListUser.class ?
>
> here's my reverse proxy setting :
>
> ProxyRequests off
> ProxyPass /myapp/ http://www.myserver.net:8080/myapp/

Can you try to add this line in between:

ProxyPassReverse /myapp/ http://www.myserver.net:8080/myapp/

> ProxyHTMLURLMap http://www.myserver.net:8080/myapp /myapp
>
> 
>ProxyPassReverse /
>SetOutputFilter  proxy-html
>ProxyHTMLURLMap  /  /myapp/
>ProxyHTMLURLMap  /myapp /myapp
>RequestHeaderunset  Accept-Encoding
> 
>

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



Application hangs

2008-10-31 Thread raulmt

Hi,

I'm load testing my T5 application in a Jboss server. Using jmeter with 50
threads making an HTTP request to a tapestry page that has medium
processing, the application stops responding after 5k - 7k requests. It's
weird because a new request stays waiting for ever, but the server doesn't
use any cpu... the application server doesn't hangs, because jmx-console or
web-console for example still responded... only the t5 app stops responding.

This is my environment:
Ubuntu Server 8.04
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
Jboss 4.2.3.GA-jdk6
Tapestry 5.0.15

And Application defaults is configured with page pool hard limit to 60 (the
other values aren't set).

Any ideas of what is happening? If more information is needed, please ask me
to.

Regards.
-- 
View this message in context: 
http://www.nabble.com/Application-hangs-tp20276307p20276307.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] Creating Links At Runtime

2008-10-31 Thread Marcel Sammut

Thanks for the quick response.  My delima is that I need to have a reference
to the link in the .tml template.  I was hoping to just use a pure Java
implementation to let the developer configure the menu via code.
In order to do this, I believe I have to inject the ComponentResources
object of my container when instantiating the AbstractLink component.  Any
idea to do that?

Thanks,
Marcel


Robert Zeigler wrote:
> 
> Why not just use ComponentResources.createActionLink and  
> ComponentResources.createPageLink?
> 
> .tml:
>  $somelink Link Text 
> .java:
> 
> @Inject
> private ComponentResources resources;
> 
> public String getSomeLink() {
>return  
> resources.createPageLink("mypage",true,contextValue1,contextValue2,...);
> }
> 
> 
> Robert
> 
> On Oct 31, 2008, at 10/315:04 PM , Marcel Sammut wrote:
> 
>>
>> Greetings,
>> I'm looking at porting my 3.0 tapestry web application to v5 and I'm  
>> trying
>> to build a menu component which accepts a parameter of type  
>> ArrayList that
>> contains a list of AbstractLink objects.  These items get rendered  
>> in a menu
>> layout etc.  The page that this menu component exists on will  
>> create, at
>> runtime, the set of desired menu item and pass them to the menu  
>> component.
>>
>> This sounds straight forward, however, I am unable to determin how to
>> instantiate, for example, a new instance of a ActionLink.  In the  
>> previous
>> version (3.0), I simply rendered the anchor myself and generated the  
>> URi in
>> a custom implementation.  I was hoping that in T5, I would be able  
>> to use
>> the internal Link components since they do pretty much what I was  
>> doing in
>> 3.0.
>>
>> Is there a way, in code, to create a new ActionLink component and  
>> have it
>> act as the model for another component to be rendered?
>>
>> Your thoughts are much appreciated.
>> - Marcel
>> -- 
>> View this message in context:
>> http://www.nabble.com/-T5--Creating-Links-At-Runtime-tp20274715p20274715.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]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Creating-Links-At-Runtime-tp20274715p20275943.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: Problems with 4.1.6 ExternalPages and back/forward button

2008-10-31 Thread Jon Williams
Alejandro
Your suggestions totally fixed my problem. Thank you very much.
Jon

-Original Message-
From: Alejandro Scandroli [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 30, 2008 2:30 PM
To: Tapestry users
Subject: Re: Problems with 4.1.6 ExternalPages and back/forward button


This one is tricky, specially on IE.
The equiv meta tags are not enough for this to work properly across
browsers, the cache configurations (Pragma, CacheControl, Expires)
need to be in the HTTP headers.
To accomplish this I've a shell render with an injected WebResponse
and then I do this:

public void render(IMarkupWriter writer, IRequestCycle cycle) {
webResponse.setHeader("Cache-control",
"no-cache,no-store,must-revalidate");
webResponse.setHeader("Pragma", "no-cache");
webResponse.setHeader("Expires", "Mon, 06 Jan 1990 
00:00:01 GMT");
.
}

I hope it helps.

Cheers.
Alejandro.


--
Alejandro Scandroli - http://weblog.amneris.es/
Amneris: We build process-driven web applications.
http://www.amneris.es


On Thu, Oct 30, 2008 at 12:24 AM, Jon Williams <[EMAIL PROTECTED]> wrote:
> No luck with the "preventBackButtonFix=true". Same problems/symptoms.
Thanks
> for the suggestion any how.
>
> -Original Message-
> From: Norman Franke [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2008 2:44 PM
> To: Tapestry users
> Subject: Re: Problems with 4.1.6 ExternalPages and back/forward button
>
>
> There is a "preventBackButtonFix" attribute of shell that may help.
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>
> On Oct 29, 2008, at 5:19 PM, Jon Williams wrote:
>
>> Tapestry Version 4.1.6 Release
>>
>> I have Shell.disableCaching = true
>> When I back & forward button in my browser to IExternalPages shouldn't
>> ExternalService.service be invoked?
>> It isn't, and I know this was not the case with Tapestry 4.0.*.
>> I can back and forward and ExternalService.service is NOT invoked,
>> however
>> when I Refresh the page using browser refresh button then the method
>> is
>> invoked.
>>
>> Was this behavior changed on purpose? or is it something that could
>> get
>> fixed at the 4.1.* level?
>>
>> Thanks a lot
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




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



Re: [T5] Creating Links At Runtime

2008-10-31 Thread Robert Zeigler
Why not just use ComponentResources.createActionLink and  
ComponentResources.createPageLink?


.tml:
Link Text
.java:

@Inject
private ComponentResources resources;

public String getSomeLink() {
  return  
resources.createPageLink("mypage",true,contextValue1,contextValue2,...);

}


Robert

On Oct 31, 2008, at 10/315:04 PM , Marcel Sammut wrote:



Greetings,
I'm looking at porting my 3.0 tapestry web application to v5 and I'm  
trying
to build a menu component which accepts a parameter of type  
ArrayList that
contains a list of AbstractLink objects.  These items get rendered  
in a menu
layout etc.  The page that this menu component exists on will  
create, at
runtime, the set of desired menu item and pass them to the menu  
component.


This sounds straight forward, however, I am unable to determin how to
instantiate, for example, a new instance of a ActionLink.  In the  
previous
version (3.0), I simply rendered the anchor myself and generated the  
URi in
a custom implementation.  I was hoping that in T5, I would be able  
to use
the internal Link components since they do pretty much what I was  
doing in

3.0.

Is there a way, in code, to create a new ActionLink component and  
have it

act as the model for another component to be rendered?

Your thoughts are much appreciated.
- Marcel
--
View this message in context: 
http://www.nabble.com/-T5--Creating-Links-At-Runtime-tp20274715p20274715.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]



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



[T5] Creating Links At Runtime

2008-10-31 Thread Marcel Sammut

Greetings,
I'm looking at porting my 3.0 tapestry web application to v5 and I'm trying
to build a menu component which accepts a parameter of type ArrayList that
contains a list of AbstractLink objects.  These items get rendered in a menu
layout etc.  The page that this menu component exists on will create, at
runtime, the set of desired menu item and pass them to the menu component.

This sounds straight forward, however, I am unable to determin how to
instantiate, for example, a new instance of a ActionLink.  In the previous
version (3.0), I simply rendered the anchor myself and generated the URi in
a custom implementation.  I was hoping that in T5, I would be able to use
the internal Link components since they do pretty much what I was doing in
3.0.

Is there a way, in code, to create a new ActionLink component and have it
act as the model for another component to be rendered?

Your thoughts are much appreciated.
- Marcel
-- 
View this message in context: 
http://www.nabble.com/-T5--Creating-Links-At-Runtime-tp20274715p20274715.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]



Port Redirect problem

2008-10-31 Thread abangkis
Hi all,

I've created a simple T 5.0.15 app, and deploy it to my server. The
server setup for my server is, a tomcat server behind apache server.
I Used reverse proxy to do this. But i've encounter A problem. I've
managed to get to the start page just fine. But after i logged in it
keep redirecting me to the tomcat port.

So for example after I've accessed  www.myserver.net/myapp/start ,
after login i will get
www.myserver.net:8080/myapp/listuser

Any idea why is this happening ? Would it make a different if i inject
the page to navigate between pages, instead returning ListUser.class ?

here's my reverse proxy setting :

ProxyRequests off
ProxyPass /myapp/ http://www.myserver.net:8080/myapp/
ProxyHTMLURLMap http://www.myserver.net:8080/myapp /myapp


ProxyPassReverse /
SetOutputFilter  proxy-html
ProxyHTMLURLMap  /  /myapp/
ProxyHTMLURLMap  /myapp /myapp
RequestHeaderunset  Accept-Encoding


cheers

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



Accessing ApplicationStateManager from within a Filter

2008-10-31 Thread Keith Bottner

Is it possible to retrieve ApplicationStateManager from within a Filter?

I tried using an @Inject and it always returns null.
I tried placing it in the constructor of the filter but when it is  
accessed it is null.


Is there a recommend way of doing this or is it even advisable?

Thanks in advance for your help.

Keith

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



Re: T5: Ajax components

2008-10-31 Thread devilabit

It is easy to make custom components or create mixins in Tapestry and the
t5components you mention do look promising.  You also have the option of
using another javascript library like extjs if you need more advanced "sexy"
looking widgets.


James Sherwood wrote:
> 
> Hello,
> 
>  
> 
> I have been looking into some Ajax components to use in my upcoming T5
> project.
> 
>  
> 
> Tapestry itself does not seem to have much along these lines built in and
> I
> was wondering where people are getting there Ajax components from(besides
> building them as this seems a bit above me right now)?
> 
>  
> 
> The T5Components site seems to be the best and I am particularly
> interested
> in the in place editor:
> 
>  
> 
> http://87.193.218.134:8080/t5c-demo/inplaceeditorpage
> 
>  
> 
> and the tab set style of component:
> 
>  
> 
> http://87.193.218.134:8080/t5c-demo/tabsetpage
> 
>  
> 
> Are these the components I should be using or is there going to be built
> in
> ones at some point or am I missing something about using Ajax in T5 for
> components such as these?
> 
>  
> 
>  
> 
>  
> 
> Thanks,
> 
> --James
> 
>  
> 
>  
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Ajax-components-tp20246910p20273881.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: flash variables being cleared too aggressively?

2008-10-31 Thread Fernando Padilla
So yes it looks like the Flash variables of a Page are scrubbed when the 
page is removed from the cache, no matter if it's rendered or not.  The 
stack trace is below.


I know that my example might be a bit extreme, but here are some other 
usecases that should be affected as well:


-- Page Rendering
1) render PageA (set flash variable).
2) render PageB
  a) while rendering, it loads PageA for some reason
 (RequestPageCache.get, PageLink, ActionLink, etc)
  b) while loading PageA, its flash variables are cleared
3) render PageA (flash variable is null)

-- Ajax
1) render PageA (set flash variable).
2) Ajax callback to app
  a) either hitting PageA directly, or hitting PageB that
 refers to PageA in some way
 ( PageLink, ActionLink, RequestPageCache.get )
  b) while loading PageA, its flash variables are cleared
3) render PageA (flash variable is null)






STACK TRACE:
showing that flash variables are cleared from pages once they are 
loaded, not once they are rendered, so it can be cleared way before we 
have a change to render it.


setAttribute( flash:core/Start:status.cheerform:defaultTracker, null )
	at 
org.apache.tapestry5.internal.services.SessionImpl.setAttribute(SessionImpl.java:50)
	at 
org.apache.tapestry5.internal.services.FlashPersistentFieldStrategy.didReadChange(FlashPersistentFieldStrategy.java:41)
	at 
org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy.gatherFieldChanges(AbstractSessionPersistentFieldStrategy.java:65)
	at 
org.apache.tapestry5.internal.services.PersistentFieldManagerImpl.gatherChanges(PersistentFieldManagerImpl.java:65)
	at 
$PersistentFieldManager_11d5412d051.gatherChanges($PersistentFieldManager_11d5412d051.java)
	at 
org.apache.tapestry5.internal.structure.PageImpl.getFieldChange(PageImpl.java:185)
	at 
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.getFieldChange(InternalComponentResourcesImpl.java:111)
	at 
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.hasFieldChange(InternalComponentResourcesImpl.java:121)
	at 
com.protrade.fanwars.base.pages.Start.containingPageDidAttach(Start.java)
	at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl$2.run(ComponentPageElementImpl.java:80)
	at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:912)
	at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidAttach(ComponentPageElementImpl.java:726)
	at 
org.apache.tapestry5.internal.structure.PageImpl.attached(PageImpl.java:151)
	at 
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:55)

at $RequestPageCache_11d5412d04b.get($RequestPageCache_11d5412d04b.java)
at $RequestPageCache_11d5412d046.get($RequestPageCache_11d5412d046.java)
	at 
com.protrade.facebook.base.services.FbForceModeFilter.handle(FbForceModeFilter.java:57)

  (this is my PageRenderRequestFilter which cuts off page rendering)




Fernando Padilla wrote:
So I have an issue, and it's that the Form.validationDelegate Flash 
variable is being cleared too soon.  I'll say that we don't have a 
normal usecase, but just wondering how you could help.  The reason for 
the modified flow is because we are embedding the site withing 
Facebook/OpenSocial.  I'm still looking at it, but it looks like Flash 
variables are being cleared from pages, whether they were actually 
rendered or not (just a guess), but the weird thing is that all of this 
was working when we were using 5.0.11.  Any help will be appreciated :) 
:) :)




NORMAL FLOW:
1) PageA is rendered with FormA
2) User submits FormA
 2a) causing ComponentEvent
 2b) we handle component Event,
 there is an error and put error state into
 ValidationDelegate
 2c) Tapestry returns a redirect to render the page
3) PageA is rendered with FormA and error
 3a) Flash variables are cleared



MY FLOW: (difference is 3,3a,4):
1) PageA is rendered with FormA
2) User submits FormA
 2a) causing ComponentEvent
 2b) we handle component Event,
 there is an error and put error state into
 ValidationDelegate
 2c) Tapestry returns a redirect to render the page
3) Tapestry is asked to render PageA, but we intercept that through a 
PageRenderRequestFilter, that returns an iframe that points back to the 
desired pageurl..  the page is NEVER RENDERED

 3a) Flash variables are cleared
 (page is NEVER RENDERED, so they are CLEARED PREMATURELY)
4) PageA is rendered with FormA and NO ERRORS

-
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: Spring prototype behavior equivalent ?

2008-10-31 Thread Lutz Hühnken
Hi Stephane,

I think you can inject the WebApplicationContext and then use
context.getBean to get fresh instances of your prototype bean.

See http://tapestry.apache.org/tapestry5/tapestry-spring/

"The Spring WebApplicationContext is also added as a service..."

"For the moment, you should consider the non-singleton beans to be
not-injectable. Instead, inject the WebApplicationContext service and
obtain the non-singleton beans as needed."


Hth,

Lutz


On Fri, Oct 31, 2008 at 4:58 PM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
> Is there a way to get the same behavior as Spring prototype in Tapestry 5 ?
> If not, what's the easiest way to inject Spring prototype bean ?
>
> thanks in advance
>
> Stephane
>

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



flash variables being cleared too aggressively?

2008-10-31 Thread Fernando Padilla
So I have an issue, and it's that the Form.validationDelegate Flash 
variable is being cleared too soon.  I'll say that we don't have a 
normal usecase, but just wondering how you could help.  The reason for 
the modified flow is because we are embedding the site withing 
Facebook/OpenSocial.  I'm still looking at it, but it looks like Flash 
variables are being cleared from pages, whether they were actually 
rendered or not (just a guess), but the weird thing is that all of this 
was working when we were using 5.0.11.  Any help will be appreciated :) 
:) :)




NORMAL FLOW:
1) PageA is rendered with FormA
2) User submits FormA
 2a) causing ComponentEvent
 2b) we handle component Event,
 there is an error and put error state into
 ValidationDelegate
 2c) Tapestry returns a redirect to render the page
3) PageA is rendered with FormA and error
 3a) Flash variables are cleared



MY FLOW: (difference is 3,3a,4):
1) PageA is rendered with FormA
2) User submits FormA
 2a) causing ComponentEvent
 2b) we handle component Event,
 there is an error and put error state into
 ValidationDelegate
 2c) Tapestry returns a redirect to render the page
3) Tapestry is asked to render PageA, but we intercept that through a 
PageRenderRequestFilter, that returns an iframe that points back to the 
desired pageurl..  the page is NEVER RENDERED

 3a) Flash variables are cleared
 (page is NEVER RENDERED, so they are CLEARED PREMATURELY)
4) PageA is rendered with FormA and NO ERRORS

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



T5: Spring prototype behavior equivalent ?

2008-10-31 Thread Stephane Decleire

Is there a way to get the same behavior as Spring prototype in Tapestry 5 ?
If not, what's the easiest way to inject Spring prototype bean ?

thanks in advance

Stephane


Re: URLEncoder and Javascript

2008-10-31 Thread Howard Lewis Ship
On Fri, Oct 31, 2008 at 8:11 AM, Martijn Brinkers
<[EMAIL PROTECTED]> wrote:
>
> On Fri, 2008-10-31 at 07:59 -0700, Howard Lewis Ship wrote:
>> My general approach is to use query parameters, not context info in
>> the path, for any dynamic portions of a query from the client.
>
> This is new to me. How do you get those query parameters? by injecting
> Request and getting the parameters directly from the request? Or is
> there another way?
>

Nope, that's the way.  There may be another option in the future,
annotating event handler method parameters to identify the query
parameter to pull from.

> Thanks,
>
> Martijn
>
>
> -
> 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: URLEncoder and Javascript

2008-10-31 Thread Martijn Brinkers

On Fri, 2008-10-31 at 07:59 -0700, Howard Lewis Ship wrote:
> My general approach is to use query parameters, not context info in
> the path, for any dynamic portions of a query from the client.

This is new to me. How do you get those query parameters? by injecting
Request and getting the parameters directly from the request? Or is
there another way?

Thanks,

Martijn


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



Re: Tapestry 5.0.15 w/ Tomcat won't start on machine under load

2008-10-31 Thread Francois Armand

Daniel Leffel wrote:

[...]The only solution is
to block request volume at the firewall, start Tomcat up and wait for it to
finish startup, make a single request and wait for it to respond and then
remove the block from the firewall.

Is this a known issue?
  
It would be intersting to know if you didn't encounter a know mutex dead 
lock issue, that should have been corrected.
If it is the case, it would be great to reopen related bugs. Be sure to 
validate that you don't use a JVM version that is known to have such a 
deadlock issue.


Perhaps could you see for more details: 
https://issues.apache.org/jira/browse/TAP5-277


--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


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



Re: URLEncoder and Javascript

2008-10-31 Thread Howard Lewis Ship
My general approach is to use query parameters, not context info in
the path, for any dynamic portions of a query from the client.

On Fri, Oct 31, 2008 at 7:43 AM, Martijn Brinkers
<[EMAIL PROTECTED]> wrote:
> The latest build (5.0.16) comes with a new URLBuilder. The problem I now
> have is that some AJAX'ified javascripts suddenly stops working because
> the context now contains illegal characters (for example the @ symbol of
> an email address). I therefore need to encode the parameters before
> building the context URL. As some of these parameters contain the Id of
> a DOM object I cannot just convert these parameters before calling the
> javascript function because sometimes they will be used to get the value
> of a control (using their id). I therefore need to encode the parameters
> in javascript. Is there already a Tapestry URL encoder for Javascript (I
> mean the Tapestry proprietary URL encoder)?
>
> Thanks,
>
> Martijn Brinkers
>
>
> -
> 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]



URLEncoder and Javascript

2008-10-31 Thread Martijn Brinkers
The latest build (5.0.16) comes with a new URLBuilder. The problem I now
have is that some AJAX'ified javascripts suddenly stops working because
the context now contains illegal characters (for example the @ symbol of
an email address). I therefore need to encode the parameters before
building the context URL. As some of these parameters contain the Id of
a DOM object I cannot just convert these parameters before calling the
javascript function because sometimes they will be used to get the value
of a control (using their id). I therefore need to encode the parameters
in javascript. Is there already a Tapestry URL encoder for Javascript (I
mean the Tapestry proprietary URL encoder)?

Thanks,

Martijn Brinkers


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



Re: T5 id component render in version 5.0.15

2008-10-31 Thread Howard Lewis Ship
Its now done on demand, so no id attribute is rendered unless you
invoke getClientId() on the component.

On Fri, Oct 31, 2008 at 2:01 AM, Riccardo Ruffilli
<[EMAIL PROTECTED]> wrote:
>
> Hi everybody, I've worked with the 5.0.11 version of tapestry creating
> js code that works looking for anchor id. After installing the latest t5
> lib, I've noticed
> that all my action link rendered anchor don't have any id.
>
> I've a look at the new AbstractLink class and the older
>
> Element e = writer.element("a", "href", buildHref(link), "id", clientId);
>
> has been modified with
>
> element = writer.element("a", "href", buildHref(link));
>
> In the same way for the relative caller class
>
> AbstractComponentEvent where the new code
>
> writeLink(writer, link);
>
> instead of
>
> writeLink(writer, clientId, link);
>
> can anyone explain me why ? is there a new way to generate che component id
> render that I probably miss?
>
> thanks in advance
>
> Riccardo
> --
> View this message in context: 
> http://www.nabble.com/T5-id-component-render-in-version-5.0.15-tp20262130p20262130.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: Anyone using weblogic?

2008-10-31 Thread Dan Adams
Well, I did set the check for updates interval to 10h. But I also noticed 
delays when doing things like searching with lucene for the first time which 
loads a bunch of stuff into memory. My first hunch was that weblogic has it's 
own classloader or does it's own memory management or something.

Dan Adams
Principal Software Engineer
Interactive Factory
p: 617.235.5857

- Original Message -
From: "Howard Lewis Ship" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Thursday, October 30, 2008 9:21:14 PM (GMT-0500) America/New_York
Subject: Re: Anyone using weblogic?

I bet it is about scanning the classpath for component classes.  I
don't know if there's a way to speed that up.

On Thu, Oct 30, 2008 at 12:45 PM, Dan Adams <[EMAIL PROTECTED]> wrote:
> One thing I've noticed about weblogic is that the startup time when deploying 
> the application is insanely long and this is not true of when run in Jetty. 
> Anyone run into this or gotten around it?
>
> Dan Adams
> Principal Software Engineer
> Interactive Factory
> p: 617.235.5857
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
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] - Using a mixin on a beaneditform to do an submit without a page reload

2008-10-31 Thread BarryDev

I've tried a few different things and I've searched this mailing list archive
and the website but I can't figure out a way to clear the textbox in my
beaneditform with a zone once I click submit.  Here's my OnSuccess Method
and my beaneditform/zone definition:

@InjectComponent("zone")
private Zone zone;

Object onSuccess(){
chatLine.setChatLineTimestamp(new Date());
chatLine.setUserName(yourName);
registry.recordLine(chatLine);
return zone;
}



 

This returns an empty zone so there is no visible result on the page when
you click submit, is this what's causing my form not to be reset or is that
the expected behaviour.  The ideal behaviour would be if there was an
onComplete method that I could set on my form so once the ajax post is sent,
I could use javascript to clean out the form.  Is this possible? 

-- 
View this message in context: 
http://www.nabble.com/-T5Using-a-mixin-on-a-beaneditform-to-do-an-submit-without-a-page-reload-tp20208457p20265832.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]



T5 id component render in version 5.0.15

2008-10-31 Thread Riccardo Ruffilli

Hi everybody, I've worked with the 5.0.11 version of tapestry creating 
js code that works looking for anchor id. After installing the latest t5
lib, I've noticed
that all my action link rendered anchor don't have any id.

I've a look at the new AbstractLink class and the older

Element e = writer.element("a", "href", buildHref(link), "id", clientId);

has been modified with

element = writer.element("a", "href", buildHref(link));

In the same way for the relative caller class

AbstractComponentEvent where the new code

writeLink(writer, link);

instead of

writeLink(writer, clientId, link);

can anyone explain me why ? is there a new way to generate che component id
render that I probably miss?

thanks in advance

Riccardo
-- 
View this message in context: 
http://www.nabble.com/T5-id-component-render-in-version-5.0.15-tp20262130p20262130.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]