Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Zenberg Ding

Expecting 5.1 stable release :)

BTW, [TAP5-291] - what is the annotation name whitch for methods to invoke  
after the component is fully constructed?




I actually got the idea from Wicket. I think it has some useful
properties, but I still prefer a layout component to a layout base
page class. I envision it as something used with complex components
(Grid, BeanEditForm, maybe Palette) that want to make portions more
easily overridden.

On Mon, Mar 16, 2009 at 11:52 AM, Inge Solvoll   
wrote:

Overriding specific portions of parent template is a feature I have been
waiting for since T4!  Excellent stuff :)

Inge

On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship   
wrote:



March 15 2009

An updated alpha release of Tapestry 5.1 is now available: Tapestry
5.1.0.1.

This release adds localized numeric input validation, both on the
client side and the server side. It also addresses "slow loading"
pages by preventing the user from clicking links that will ultimately
trigger client-side DHTML or Ajax functionality. The embedded version
of Scriptaculous has been upgraded to 1.8.2.

Server-side templates have been improved; there are now new elements
in the Tapestry 5.1 XML namespace to limit template content (similar
to Tapestry 4's special $content$ and $remove$ ids). In addition, it
is now possible for a subclass to override specific portions of its
parent class' template.

See the release notes for more details.
http://tapestry.apache.org/tapestry5.1/release-notes.html

Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html

Upgrading from 5.0.18 should be straight forward, but be sure to read
the upgrade notes first.
http://tapestry.apache.org/tapestry5.1/upgrade.html

Feedback is encouraged!

--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org









-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Autocomplete problems in IE

2009-03-16 Thread Peter Lundberg


I just wanted to followup with my workaround for others.


Firstly one could override assets, or at least this asset, using the
classpath. Eg. createing your own 
src/main/resources/org/apache/tapestry5/corelib/mixins/autocompelte.js
would cause it to get loaded instead of tapestrys. 



However, I looked into first upgrading to the latest (1.8.2/1.6.0.3)
release. Just place all files on your classpath (I used
src/main/resources/com/xxyy/scriptaculous_1_8_2/) and add the following to
your module in contributeApplicationDefaults: 

configuration.add("tapestry.scriptaculous",
"classpath:com/xxyy/scriptaculous_1_8_2/"); 
 By all files I mean the deployed .js including prototype and not just the
src js from scriptaculous.



This release did not help with the autocompleter issue in IE; so I
researched into using the patch outlined by jrochkind in 
http://prototype.lighthouseapp.com/projects/8887/tickets/32-ajax-autocomplete-in-ie-with-doctype
prototyp ticket 32  replacing 

"var offsetParent = element.getOffsetParent();" 
 with  

"var offsetParent = (element.parent) ? element.getOffsetParent() : 0;"

in prototype.js in the above override directory.



And voila my users are happy. Autocomplete and what other things I use work
fine. 


There could be other sideaffects so use normal caution using this patch and
monitor to see if there is a newer release of prototype or scriptaculous.


Hope this helps someone else, and please let me know if there are better
solutions!


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


Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-16 Thread Geoffrey Wiseman
On Mon, Mar 16, 2009 at 7:07 PM, Christian Edward Gruber <
christianedwardgru...@gmail.com> wrote:

> Your behaviour could simply be that the defaults in JRockit are set such
> that you get more permgen space, or that the space is used more efficiently.
>  In such a case, you're masking the problem, not resolving it.
>

I believe the JRockit VM doesn't have a permanent generation (although I
don't remember if it's a generational garbage collection system).
  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


Re: Spring security + tap5

2009-03-16 Thread Thiago H. de Paula Figueiredo

Em Mon, 16 Mar 2009 22:43:02 -0300, iberck  escreveu:

Hi, I'm developing an application based on tapestry5 and spring security  
2.0 with the tapestry-spring-security extension. My application works  
fine with the plugin page's example adapted. My problem is that the   
autentification isagaints hardcode source but I need the autentification  
over db

My question is, how can I put the jdbc authentification in tapestry5 with
tapestry spring security extension ?


Create a class that implements UserDetailsService (UserDetailsServiceImpl,  
for example) and then, in you AppModule.bind() method, add  
binder.bind(UserDetailsService.class, UserDetailsServiceImpl.class).


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Spring security + tap5

2009-03-16 Thread iberck

Hi, I'm developing an application based on tapestry5 and spring security 2.0
with the tapestry-spring-security extension. My application works fine with
the plugin page's example adapted. My problem is that the autentification is
againts hardcode source but I need the autentification over db

My question is, how can I put the jdbc authentification in tapestry5 with
tapestry spring security extension ?
Thanks in advance.


-- 
View this message in context: 
http://www.nabble.com/Spring-security-%2B-tap5-tp22551175p22551175.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-16 Thread Christian Edward Gruber
That's funny, since jrockit is recommended for deployment, not  
development (by BEA anyway).  I'd be careful.  We got some crazy  
garbage collection behaviour on that VM before (using BEA portal, not  
T5).


Your behaviour could simply be that the defaults in JRockit are set  
such that you get more permgen space, or that the space is used more  
efficiently.  In such a case, you're masking the problem, not  
resolving it.


cheers,
Christian.


On Mar 16, 2009, at 3:12 AM, Koka Kiknadze wrote:


On Mon, Mar 16, 2009 at 2:20 AM, Peter Lundberg 
wrote:




While developing I get
PermGenSpace errors daily but a restart is so fast that it does not  
affect

me.

I s3witched to using jrockit jvm for development, no permgen errors  
there.



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Yunhua Sang
Overriding specific portions of parent template is a really amazing
feature from 5.1; however can it be extended to "override specific
portions of template within a component in containing component/page"?
In my opinion, it's the most straightforward way.

Currently only sub-class is able to override parent's template has
limit: if there are 2 sub layouts both extends the a parent layout and
overrides different portion of template, and they don't know each
other, then in a page you want to have all the overrides together in
one layout, it seems hard to make it.

Regards,
Yunhua


On Mon, Mar 16, 2009 at 3:53 PM, Inge Solvoll  wrote:
> I agree. The last few months, I've been working on a complex tree component
> that needs minor overrides for different usages. So far I've solved it by
> having almost identical templates for each variant. This new feature solves
> this nicely.
>
> My company's software has some page layout implementations based on deep and
> complex inheritance, so I won't go there again after what I've seen :) It
> still hurts every time I need to adjust something in my tiles-config.xml.
>
>
> On Mon, Mar 16, 2009 at 8:34 PM, Howard Lewis Ship  wrote:
>
>> I actually got the idea from Wicket. I think it has some useful
>> properties, but I still prefer a layout component to a layout base
>> page class. I envision it as something used with complex components
>> (Grid, BeanEditForm, maybe Palette) that want to make portions more
>> easily overridden.
>>
>> On Mon, Mar 16, 2009 at 11:52 AM, Inge Solvoll 
>> wrote:
>> > Overriding specific portions of parent template is a feature I have been
>> > waiting for since T4!  Excellent stuff :)
>> >
>> > Inge
>> >
>> > On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship 
>> wrote:
>> >
>> >> March 15 2009
>> >>
>> >> An updated alpha release of Tapestry 5.1 is now available: Tapestry
>> >> 5.1.0.1.
>> >>
>> >> This release adds localized numeric input validation, both on the
>> >> client side and the server side. It also addresses "slow loading"
>> >> pages by preventing the user from clicking links that will ultimately
>> >> trigger client-side DHTML or Ajax functionality. The embedded version
>> >> of Scriptaculous has been upgraded to 1.8.2.
>> >>
>> >> Server-side templates have been improved; there are now new elements
>> >> in the Tapestry 5.1 XML namespace to limit template content (similar
>> >> to Tapestry 4's special $content$ and $remove$ ids). In addition, it
>> >> is now possible for a subclass to override specific portions of its
>> >> parent class' template.
>> >>
>> >> See the release notes for more details.
>> >> http://tapestry.apache.org/tapestry5.1/release-notes.html
>> >>
>> >> Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html
>> >>
>> >> Upgrading from 5.0.18 should be straight forward, but be sure to read
>> >> the upgrade notes first.
>> >> http://tapestry.apache.org/tapestry5.1/upgrade.html
>> >>
>> >> Feedback is encouraged!
>> >>
>> >> --
>> >> Howard M. Lewis Ship
>> >>
>> >> Creator Apache Tapestry and Apache HiveMind
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> >> For additional commands, e-mail: users-h...@tapestry.apache.org
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Inge Solvoll
I agree. The last few months, I've been working on a complex tree component
that needs minor overrides for different usages. So far I've solved it by
having almost identical templates for each variant. This new feature solves
this nicely.

My company's software has some page layout implementations based on deep and
complex inheritance, so I won't go there again after what I've seen :) It
still hurts every time I need to adjust something in my tiles-config.xml.


On Mon, Mar 16, 2009 at 8:34 PM, Howard Lewis Ship  wrote:

> I actually got the idea from Wicket. I think it has some useful
> properties, but I still prefer a layout component to a layout base
> page class. I envision it as something used with complex components
> (Grid, BeanEditForm, maybe Palette) that want to make portions more
> easily overridden.
>
> On Mon, Mar 16, 2009 at 11:52 AM, Inge Solvoll 
> wrote:
> > Overriding specific portions of parent template is a feature I have been
> > waiting for since T4!  Excellent stuff :)
> >
> > Inge
> >
> > On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship 
> wrote:
> >
> >> March 15 2009
> >>
> >> An updated alpha release of Tapestry 5.1 is now available: Tapestry
> >> 5.1.0.1.
> >>
> >> This release adds localized numeric input validation, both on the
> >> client side and the server side. It also addresses "slow loading"
> >> pages by preventing the user from clicking links that will ultimately
> >> trigger client-side DHTML or Ajax functionality. The embedded version
> >> of Scriptaculous has been upgraded to 1.8.2.
> >>
> >> Server-side templates have been improved; there are now new elements
> >> in the Tapestry 5.1 XML namespace to limit template content (similar
> >> to Tapestry 4's special $content$ and $remove$ ids). In addition, it
> >> is now possible for a subclass to override specific portions of its
> >> parent class' template.
> >>
> >> See the release notes for more details.
> >> http://tapestry.apache.org/tapestry5.1/release-notes.html
> >>
> >> Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html
> >>
> >> Upgrading from 5.0.18 should be straight forward, but be sure to read
> >> the upgrade notes first.
> >> http://tapestry.apache.org/tapestry5.1/upgrade.html
> >>
> >> Feedback is encouraged!
> >>
> >> --
> >> Howard M. Lewis Ship
> >>
> >> Creator Apache Tapestry and Apache HiveMind
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Howard Lewis Ship
I actually got the idea from Wicket. I think it has some useful
properties, but I still prefer a layout component to a layout base
page class. I envision it as something used with complex components
(Grid, BeanEditForm, maybe Palette) that want to make portions more
easily overridden.

On Mon, Mar 16, 2009 at 11:52 AM, Inge Solvoll  wrote:
> Overriding specific portions of parent template is a feature I have been
> waiting for since T4!  Excellent stuff :)
>
> Inge
>
> On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship  wrote:
>
>> March 15 2009
>>
>> An updated alpha release of Tapestry 5.1 is now available: Tapestry
>> 5.1.0.1.
>>
>> This release adds localized numeric input validation, both on the
>> client side and the server side. It also addresses "slow loading"
>> pages by preventing the user from clicking links that will ultimately
>> trigger client-side DHTML or Ajax functionality. The embedded version
>> of Scriptaculous has been upgraded to 1.8.2.
>>
>> Server-side templates have been improved; there are now new elements
>> in the Tapestry 5.1 XML namespace to limit template content (similar
>> to Tapestry 4's special $content$ and $remove$ ids). In addition, it
>> is now possible for a subclass to override specific portions of its
>> parent class' template.
>>
>> See the release notes for more details.
>> http://tapestry.apache.org/tapestry5.1/release-notes.html
>>
>> Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html
>>
>> Upgrading from 5.0.18 should be straight forward, but be sure to read
>> the upgrade notes first.
>> http://tapestry.apache.org/tapestry5.1/upgrade.html
>>
>> Feedback is encouraged!
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator Apache Tapestry and Apache HiveMind
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Inge Solvoll
Overriding specific portions of parent template is a feature I have been
waiting for since T4!  Excellent stuff :)

Inge

On Mon, Mar 16, 2009 at 3:46 PM, Howard Lewis Ship  wrote:

> March 15 2009
>
> An updated alpha release of Tapestry 5.1 is now available: Tapestry
> 5.1.0.1.
>
> This release adds localized numeric input validation, both on the
> client side and the server side. It also addresses "slow loading"
> pages by preventing the user from clicking links that will ultimately
> trigger client-side DHTML or Ajax functionality. The embedded version
> of Scriptaculous has been upgraded to 1.8.2.
>
> Server-side templates have been improved; there are now new elements
> in the Tapestry 5.1 XML namespace to limit template content (similar
> to Tapestry 4's special $content$ and $remove$ ids). In addition, it
> is now possible for a subclass to override specific portions of its
> parent class' template.
>
> See the release notes for more details.
> http://tapestry.apache.org/tapestry5.1/release-notes.html
>
> Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html
>
> Upgrading from 5.0.18 should be straight forward, but be sure to read
> the upgrade notes first.
> http://tapestry.apache.org/tapestry5.1/upgrade.html
>
> Feedback is encouraged!
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How to do a Menu divided in many war packages ?

2009-03-16 Thread Thiago H. de Paula Figueiredo
Em Mon, 16 Mar 2009 14:09:29 -0300, Lucas Silva   
escreveu:



Hi, Thiago thanks for the help. I tried to without a jar because it is my
need.So I have into my services many AppModule... but it didn't work. I  
would

work if it is in a JAR, isn't ?


You can have as many modules as you want. AppModule is just one that is  
automaticallly recognized by Tapestry.


My final module contains all classes. Maybe I should use reflection to  
read all class of a determined package.


To do that, use the ComponentClassResolver service from Tapestry IoC.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to do a Menu divided in many war packages ?

2009-03-16 Thread Lucas Silva
Hi, Thiago thanks for the help. I tried to without a jar because it is my
need.
So I have into my services many AppModule... but it didn't work. I would
work if it is in a JAR, isn't ?
My final module contains all classes. Maybe I should use reflection to read
all class of a determined package.


Lucas

On Mon, Mar 16, 2009 at 10:36 AM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Mon, Mar 16, 2009 at 11:17 AM, Lucas Silva  wrote:
> > Hi, I was reading web site documentation and didn't anything I need. Is
> > there a way to ignore a component that is not available ?
>
> Short answer. No.
>
> Long answer: Using a little of imagination and Tapestry IoC
> distributed configuration
> (http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html),
> you can do what you want. Outline of a solution.
>
> 1) Define a MenuContents service and a MenuItem class or interface.
> The service would receive an OrderedCollection as its
> configuration.
> 2) Make each of you JARs have a Tapestry-IoC module that contributes
> MenuItem to the MenuContents service.
> 3) The component or page that builds the menu uses MenuConstants to
> get the menu contents.
>
> --
> Thiago
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How to get a page's html to send it as an email?

2009-03-16 Thread Lance Java
DWR does this by forwarding to the URL passing a response object that writes
to a local stringbuffer.
See the attached files, the method is DefaultWebContext.forwardToString();

Cheers,
Lance.

2009/3/16 Andreas Pardeike 

> Hi,
>
> I build it so my users can customize their tapestry pages. Now I
> want to add that they can send html emails by using the output of
> a specific page. How do I grab the outcome of a page for further
> processing?
>
> Regards,
> Andreas Pardeike
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

How to get a page's html to send it as an email?

2009-03-16 Thread Andreas Pardeike

Hi,

I build it so my users can customize their tapestry pages. Now I
want to add that they can send html emails by using the output of
a specific page. How do I grab the outcome of a page for further
processing?

Regards,
Andreas Pardeike

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] Web Service

2009-03-16 Thread Marcus Veloso
http://code.google.com/p/t5-restful-webservices/


[ANNOUNCE] Tapestry 5.1.0.1 (alpha release)

2009-03-16 Thread Howard Lewis Ship
March 15 2009

An updated alpha release of Tapestry 5.1 is now available: Tapestry 5.1.0.1.

This release adds localized numeric input validation, both on the
client side and the server side. It also addresses "slow loading"
pages by preventing the user from clicking links that will ultimately
trigger client-side DHTML or Ajax functionality. The embedded version
of Scriptaculous has been upgraded to 1.8.2.

Server-side templates have been improved; there are now new elements
in the Tapestry 5.1 XML namespace to limit template content (similar
to Tapestry 4's special $content$ and $remove$ ids). In addition, it
is now possible for a subclass to override specific portions of its
parent class' template.

See the release notes for more details.
http://tapestry.apache.org/tapestry5.1/release-notes.html

Download Tapestry 5.1.0.1 http://tapestry.apache.org/download.html

Upgrading from 5.0.18 should be straight forward, but be sure to read
the upgrade notes first.
http://tapestry.apache.org/tapestry5.1/upgrade.html

Feedback is encouraged!

-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



How to do a Menu divided in many war packages ?

2009-03-16 Thread Lucas Silva
Hi, I was reading web site documentation and didn't anything I need. Is
there a way to ignore a component that is not available ? I use in my tml
components that may not be available and I want it print empty instead of
giving an error. Or if someone have other idea...
My program is divided in many war package and in each package there should
be a menu (java.util.List) and it is printed only if I am using it.
I have an war package that put together others modules.
And in its principal I have a Menu.tml inside it there is a call of other
ones such as:
 and so on.
So if I remove Module2 of my dependencies I don't want to remove
 from Menu.tml, I want it easier.


Lucas


Re: How to do a Menu divided in many war packages ?

2009-03-16 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 16, 2009 at 11:17 AM, Lucas Silva  wrote:
> Hi, I was reading web site documentation and didn't anything I need. Is
> there a way to ignore a component that is not available ?

Short answer. No.

Long answer: Using a little of imagination and Tapestry IoC
distributed configuration
(http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html),
you can do what you want. Outline of a solution.

1) Define a MenuContents service and a MenuItem class or interface.
The service would receive an OrderedCollection as its
configuration.
2) Make each of you JARs have a Tapestry-IoC module that contributes
MenuItem to the MenuContents service.
3) The component or page that builds the menu uses MenuConstants to
get the menu contents.

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 16, 2009 at 11:00 AM, Daniel Sanchez
 wrote:

> Thiago, sorry for disturbing again but... Must i add any other piece of code
> to your snipet for make it work?

1) Just make sure that Prototype is included in your page. If not,
take a look at the T5 and Javascript explained page.
2) Make sure your link has an id attribute and its value is the same
used in the snippet.

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Daniel Sanchez

Thiago, sorry for disturbing again but... Must i add any other piece of code
to your snipet for make it work?

Thanks again


Thiago H. de Paula Figueiredo wrote:
> 
> On Mon, Mar 16, 2009 at 10:00 AM, Daniel Sanchez
>  wrote:
>> onclick="this.disabled='true'"
> 
> Instead of using inline JavaScript, use Event.observe from Prototype,
> something like this:
> 
> 
> 
> 
> 
> Prototype's documentation about Event.observe is here:
> http://www.prototypejs.org/api/event/observe.
> By the way, read
> http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. It
> explains very nicely the proper way of using JavaScript in Tapestry.
> 
> -- 
> Thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Prevent-multiple-submits-with-t5.0.14-tp22535389p22538819.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Daniel Sanchez

Hi again! Thanks to both of you a lot!

Umm, martijn, I don't know the particular behaviour of that idea, because
after a user clicks on the button, the onSelectedFromButton method is called
and after that, there is a transition to another page. We need to disable
the button while the actual page is still sending the form (i don't know if
the explanation is right, because some time has passed since the last time I
spoke english more often...

On the other hand, Thiago: thanks a lot for your response again. I'm going
to give a try to that and response you as soon as possible.

More things soon!



martijn.list wrote:
> 
> Daniel Sanchez wrote:
>> So, here I am, writing in this mailing list and asking all the guys: is
>> there any way to disable the button after the submitting?
> 
> Why don't you set a flash persistent boolean after the submission and 
> disable to button in the render phase when the boolean indicates that 
> the form has been posted?
> 
> 
> This should also work when javascript is disabled.
> 
> Martijn
> 
> -- 
> Djigzo open source email encryption www.djigzo.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Prevent-multiple-submits-with-t5.0.14-tp22535389p22538227.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread martijn.list

Daniel Sanchez wrote:

So, here I am, writing in this mailing list and asking all the guys: is
there any way to disable the button after the submitting?


Why don't you set a flash persistent boolean after the submission and 
disable to button in the render phase when the boolean indicates that 
the form has been posted?



This should also work when javascript is disabled.

Martijn

--
Djigzo open source email encryption www.djigzo.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 16, 2009 at 10:00 AM, Daniel Sanchez
 wrote:
> onclick="this.disabled='true'"

Instead of using inline JavaScript, use Event.observe from Prototype,
something like this:





Prototype's documentation about Event.observe is here:
http://www.prototypejs.org/api/event/observe.
By the way, read
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. It
explains very nicely the proper way of using JavaScript in Tapestry.

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Daniel Sanchez

In fact it was the first idea that came from my mind, but after testing it,
i've discovered that no request is made to the server. The submit button is
disabled, an so on, no request is made.

onclick="this.disabled='true'"

Thanks for your response, thiago 


Thiago H. de Paula Figueiredo wrote:
> 
> On Mon, Mar 16, 2009 at 7:35 AM, Daniel Sanchez
>  wrote:
>> So, here I am, writing in this mailing list and asking all the guys: is
>> there any way to disable the button after the submitting?
> 
> Disable the button using JavaScript.
> 
> -- 
> Thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Prevent-multiple-submits-with-t5.0.14-tp22535389p22537604.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prevent multiple submits with t5.0.14

2009-03-16 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 16, 2009 at 7:35 AM, Daniel Sanchez
 wrote:
> So, here I am, writing in this mailing list and asking all the guys: is
> there any way to disable the button after the submitting?

Disable the button using JavaScript.

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Loop through HashMap.

2009-03-16 Thread kasper
Problem solved since I always know the Key values I read them now directly.

I loop through the list and then read the hashmap.
List>
${ognl:post.get('title')}

Yours,
Kasper

> Hi all,
>
> I have a List> which can be looped through by the Loop
> component. This works fine, but I also need Key values. As far as I know,
> a list only has integer key values where I do need Strings. For this I
> want to use a List>. But it seems to be impossible
> to loop through a HashMap. (it may also be HashMap String>>)
>
> Currently I am doing this:
> 
>   
>   
>   ${var:postDetail}
>   
>   
> 
>
> When I try to do the same with a HashMap, it doesn't work.
>
> The final layout must be:
> key: value
> As in: Author: Someone
>
> Does someone know how to do this inside the *.tml file?
>
> Thanks,
> Yours,
> Kasper
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Prevent multiple submits with t5.0.14

2009-03-16 Thread Daniel Sanchez

Hi to everybody. First of all, I want to thank all the people in this mailing
list for their work and support. As you can imagine, i have a problem
tapestry:

Our customer has requested to prevent the forms of multiple submitting. The
first way that we thought was  editing the visibility property of the submit
component in order to make it dissapear, but the customer has rejected that
solution.

So, here I am, writing in this mailing list and asking all the guys: is
there any way to disable the button after the submitting?

Thank you so much in advance


-- 
View this message in context: 
http://www.nabble.com/Prevent-multiple-submits-with-t5.0.14-tp22535389p22535389.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-16 Thread Koka Kiknadze
On Mon, Mar 16, 2009 at 2:20 AM, Peter Lundberg  wrote:

>
> While developing I get
> PermGenSpace errors daily but a restart is so fast that it does not affect
> me.
>
I s3witched to using jrockit jvm for development, no permgen errors there.


T5: Loop through HashMap.

2009-03-16 Thread kasper
Hi all,

I have a List> which can be looped through by the Loop
component. This works fine, but I also need Key values. As far as I know,
a list only has integer key values where I do need Strings. For this I
want to use a List>. But it seems to be impossible
to loop through a HashMap. (it may also be HashMap>)

Currently I am doing this:



${var:postDetail}




When I try to do the same with a HashMap, it doesn't work.

The final layout must be:
key: value
As in: Author: Someone

Does someone know how to do this inside the *.tml file?

Thanks,
Yours,
Kasper


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: ActionLink button called twice when onclick.

2009-03-16 Thread DH
Hi,

I am not sure whether it is produced by button nested in .
What about replacing Convert with 'Convert' and have a try?


Thanks,
DH


- Original Message - 
From: "Tan cyb...@n" 
To: "Tapestry users" 
Sent: Monday, March 16, 2009 5:20 PM
Subject: ActionLink button called twice when onclick.


> Hi,
> 
> I have a problem on my ActionLink button. it call twice onActionFrom
> after i have clicked on it.
> below are my coding. is anyone have any idea on it?
> 
> Thank you.
> Regards,
> tan
> TML:
> 
>  t:id="grid"
> 
> t:source="Materials"
> t:Model="MaterialModel"
> t:row="Material"
> t:rowsPerPage="10"
> t:pagerPosition="both"
> t:inPlace="literal:true">
> 
> 
> 
> 
>  t:message="Are you sure you want to Convert?" t:context="Material.id"
>>
> Convert
> 
> 
> 
> 
> 
> class file:
> void onActionFromSelect(Long id)
> {
> try
> {
> System.out.println("clicked");
> }
> catch (Exception e)
> {
> System.out.println("error");
> }
> }
> 
> 
> Console message :
> 
> clicked
> clicked
>

ActionLink button called twice when onclick.

2009-03-16 Thread Tan cyb...@n
Hi,

I have a problem on my ActionLink button. it call twice onActionFrom
after i have clicked on it.
below are my coding.  is anyone have any idea on it?

Thank you.
Regards,
tan
TML:




       
       
       
       Convert
       
       
       
   

class file:
void onActionFromSelect(Long id)
    {
        try
        {
    System.out.println("clicked");
    }
    catch (Exception e)
   {
 System.out.println("error");
    }
    }


Console message :

clicked
clicked


Re: "OnEvent" no response

2009-03-16 Thread Zenberg Ding

Thanks :)

I would suggest you to look at the source of onevent mixin (not onevent  
annotation) in t5commons project.



Thanks,
DH



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: "OnEvent" no response

2009-03-16 Thread DH
I would suggest you to look at the source of onevent mixin (not onevent 
annotation) in t5commons project.


Thanks,
DH


- Original Message - 
From: "Zenberg Ding" To: "Tapestry users" 
Sent: Monday, March 16, 2009 2:00 PM
Subject: Re: "OnEvent" no response


> It's realy helpful, I'll look into it, thank you :)
> 
> How can I link js tree's internal envent (onSelect(itemIdList)  
> onDblClick(itemId)) with t5 xtree's component when I use createEventLink?
> Or write js code to encapsulate the original js tree events?
> 
> Does tapestry5 has some internal mechanisms linking client to backgroud?
> 
> Any further information on event topic is welcome.
> 
>> Use ComponentResources.createEventLink to get the url of relevant events.
>> If you put the xtree component in login page,in your xtree component,  
>> componentResources.createEventLink("click", {11,22}) would produce like  
>> http://localhost/login.xtree:click/11/22.
>> First to understand url of tapestry:  
>> http://localhost/login.xtree:click/11/22
>> login is the page, xtree is the component, click means the event name,  
>> 11/22 means values.
>>
>> so you can generate the base url in xtree  
>> component:componentResources.createEventLink("click") to get  
>> http://localhost/login.xtree:click, and append the value 11/22 by js  
>> code.
>>
>> Hope it helps.
>>
>> Thanks,
>>
>> DH