Re: [ANN] Tapestry/Seam integration

2008-01-15 Thread Jesse Kuhnert
I forwarded his announcement to them and the response sounded excited
so we'll see...

On Jan 15, 2008 8:26 PM, Joshua Jackson <[EMAIL PROTECTED]> wrote:
> Perhaps we can request seam pageflow from JSF. I know the seam team
> currently is working very hard to decouple JSF from seam.
>
> On 1/16/08, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> > No, actually not. I have no idea whether any Tapestry user needs it. I have
> > no idea how tough it would be to support it.
>
>
> --
> I'm a coder not a drag-n-dropper
>
> Blog: http://joshuajava.wordpress.com/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

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

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



T5: using velocity in the app

2008-01-15 Thread AngeloChen960

hi,

I need to use velocity's template to format an email, something like this:

 VelocityEngine ve = new VelocityEngine();
 ve.init();
 Template t = ve.getTemplate("email.vm");
but always got :ResourceNotFoundException
any idea how to use Velocity with Tapestry 5? thanks.

A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-using-velocity-in-the-app-tp14861724p14861724.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: Get user input of custom components which themselves are forms

2008-01-15 Thread ronaldlee

I take it back.. it doesn't store the user input, just for old display
info...

I think some how I need to access my Question component and get those things
out thru getter functions, but the problem is the form is triggered by the
page, not the component. I am able to do that if the page has only one
component, and I can use "@Component Question question" to directly access
the values..


ronaldlee wrote:
> 
> oh it seems that the data structure I use for the loop somehow able to
> store the user response, after making that list @Persist("flash")... may
> be that is good enough for me.
> 
> 
> ronaldlee wrote:
>> 
>> Hi,
>> 
>> I created a custom component "Question", and this component simply
>> displays a question and textfield (or radiobox, depends on the question
>> type) to get user input. It doesn't have  defined inside the
>> component's template.
>> 
>> And now I need to do something like this (see below) on the page which
>> contains those Question components and not sure how can I can get the
>> user input from them:
>> 
>> Main.page:
>> ...
>> 
>>   
>> 
>>  
>> 
>>   
>> 
>>   
>> 
>> 
>> So you can see, I need to surround each Question with "" as well,
>> it may look redundant but I need it for a work-round of a DOJO
>> StackContainer issue, until I find a better solution... 
>> 
>> So how can I get the user input from those Question components in my
>> page's "onSuccess" function?
>> 
>> thanks!
>> Ronald
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Get-user-input-of-custom-components-which-themselves-are-forms-tp14857149p14858390.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: Get user input of custom components which themselves are forms

2008-01-15 Thread ronaldlee

oh it seems that the data structure I use for the loop somehow able to store
the user response, after making that list @Persist("flash")... may be that
is good enough for me.


ronaldlee wrote:
> 
> Hi,
> 
> I created a custom component "Question", and this component simply
> displays a question and textfield (or radiobox, depends on the question
> type) to get user input. It doesn't have  defined inside the
> component's template.
> 
> And now I need to do something like this (see below) on the page which
> contains those Question components and not sure how can I can get the user
> input from them:
> 
> Main.page:
> ...
> 
>   
> 
>  
> 
>   
> 
>   
> 
> 
> So you can see, I need to surround each Question with "" as well,
> it may look redundant but I need it for a work-round of a DOJO
> StackContainer issue, until I find a better solution... 
> 
> So how can I get the user input from those Question components in my
> page's "onSuccess" function?
> 
> thanks!
> Ronald
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Get-user-input-of-custom-components-which-themselves-are-forms-tp14857149p14857708.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: [ANN] Tapestry/Seam integration

2008-01-15 Thread Joshua Jackson
Perhaps we can request seam pageflow from JSF. I know the seam team
currently is working very hard to decouple JSF from seam.

On 1/16/08, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> No, actually not. I have no idea whether any Tapestry user needs it. I have
> no idea how tough it would be to support it.


-- 
I'm a coder not a drag-n-dropper

Blog: http://joshuajava.wordpress.com/

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



T5: Get user input of custom components which themselves are forms

2008-01-15 Thread ronaldlee

Hi,

I created a custom component "Question", and this component simply displays
a question and textfield (or radiobox, depends on the question type) to get
user input. It doesn't have  defined inside the component's
template.

And now I need to do something like this (see below) on the page which
contains those Question components and not sure how can I can get the user
input from them:

Main.page:
...

  

 

  

  


So you can see, I need to surround each Question with "" as well, it
may look redundant but I need it for a work-round of a DOJO StackContainer
issue, until I find a better solution... 

So how can I get the user input from those Question components in my page's
"onSuccess" function?

thanks!
Ronald
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Get-user-input-of-custom-components-which-themselves-are-forms-tp14857149p14857149.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: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Sven Homburg
arrgl  today i've checked in my first ajax mixin "OnChange".
i think i must slow down my development ;-)

2008/1/16, Howard Lewis Ship <[EMAIL PROTECTED]>:
>
> This is coming soon, but it won't be part of BeanEditForm ... to get
> that level of interactivity will require that you spell out your
> individual fields and labels, along with extra components & mixins to
> describe the Ajax functionality to Tapestry.
>
> On Jan 15, 2008 2:44 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> > I'm using BeanEditForm to generate a form that includes a drop-down
> selector.  I'd like to get an event when the user selects a value so I can
> update other fields in the form, preferably via a partial-page Ajax-style
> update.  Is this possible?  If so, is there an example I can look at?  If
> not, is there a way to do this with a regular form?  Thanks!
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg


Re: T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Howard Lewis Ship
This is coming soon, but it won't be part of BeanEditForm ... to get
that level of interactivity will require that you spell out your
individual fields and labels, along with extra components & mixins to
describe the Ajax functionality to Tapestry.

On Jan 15, 2008 2:44 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> I'm using BeanEditForm to generate a form that includes a drop-down selector. 
>  I'd like to get an event when the user selects a value so I can update other 
> fields in the form, preferably via a partial-page Ajax-style update.  Is this 
> possible?  If so, is there an example I can look at?  If not, is there a way 
> to do this with a regular form?  Thanks!
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5: How to influence the order JavaScript libraries are loading

2008-01-15 Thread Howard Lewis Ship
I think you might have a situation where component A is rendering
first, and including library Y, then component B renders and includes
library X then Y.

Because the Y is seen first, its order is first, even though component
B wants Y to depend on X.

I'd check what else on your page is including one library and make
sure all locations that inlcude Y first include X.

One way to do this would be to create an application-wide Layout
component and inject the libraries there.

On Jan 15, 2008 2:07 PM, Michael Lake <[EMAIL PROTECTED]> wrote:
>
> I've got a page with two Js Libraries included using the @Inject
> @Path("..."), etc.
>
> The one .js library immediately depends on variables defined the the
> other .js library(meaning that it's not waiting until page ready/DOM is
> loaded)
>
> but the order in which tapestry is outputting the 

[T4.1.3] problems with localisation and possibly Prototype

2008-01-15 Thread Henrik Schlanbusch
Hi

I have to do some of the localisation
work in the java code, and run this
simple method:

public String getLocalisedMessage
  (String key) {
  return getMessages().getMessage(key);
}

The method does only return strings in 
english locale. 

The only special thing with my pages is that
they are loaded via the Ajax.Updater (Prototype).


So my question is, when loading pages through
Prototype, will the application servlet in some
way lose control over the users locale and reset
it to the default one?

The localisation works fine in the container page
that is not loaded through the Ajax.Updater.

Henrik



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



T5: Ajax update of BeanEditForm on drop-down select?

2008-01-15 Thread Franz Amador
I'm using BeanEditForm to generate a form that includes a drop-down selector.  
I'd like to get an event when the user selects a value so I can update other 
fields in the form, preferably via a partial-page Ajax-style update.  Is this 
possible?  If so, is there an example I can look at?  If not, is there a way to 
do this with a regular form?  Thanks!



Re: [ANN] Tapestry/Seam integration

2008-01-15 Thread Igor Drobiazko
No, actually not. I have no idea whether any Tapestry user needs it. I have
no idea how tough it would be to support it.

On Jan 15, 2008 10:20 PM, Michael Courcy <[EMAIL PROTECTED]> wrote:

> Maybe a stupid question, but does your work support also seam page flow ?
>
> That should not be easy, this part is tightly integrated with JSF.
>
> Thanks for your work.
>
> Igor Drobiazko a écrit :
> > Hi all,
> >
> > Seam integration for Tapestry 4 is now available as Tacos subproject:
> > http://tacos.sourceforge.net/tacos4.1/tacos-seam/index.html
> >
> > Read how get the latest snapshots here:
> > http://tacos.sourceforge.net/tacos4.1/tacos-seam/download.html
> >
> > The demo sources can be found here:
> >
> http://tacos.svn.sourceforge.net/viewvc/tacos/tacos-4.1/trunk/tacos-seam/demo/
> >
> > Integration with Tapestry 5 is started as well. This will be the first
> > module for Tacos 5.
> > Unfortunately I can't upload the snapshots yet because some work is
> still
> > needed.
> > But you can expect the snapshots in the next days.
> >
> >
>
>
> --
> Michael Courcy
> http://courcy.blogspot.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,

Igor Drobiazko


T5: How to influence the order JavaScript libraries are loading

2008-01-15 Thread Michael Lake


I've got a page with two Js Libraries included using the @Inject 
@Path("..."), etc.


The one .js library immediately depends on variables defined the the 
other .js library(meaning that it's not waiting until page ready/DOM is 
loaded)


but the order in which tapestry is outputting the 

tapestry-spring

2008-01-15 Thread HongDa Tang
http://howardlewisship.com/repository/ seems to be broken.  Does anyone know of 
a mirror site for http://howardlewisship.com/repository/ where I can use maven 
to retrieve tapestry-spring library version 1.0.0?  Your help is appreciated.


-Hong


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



Re: [ANN] Tapestry/Seam integration

2008-01-15 Thread Michael Courcy

Maybe a stupid question, but does your work support also seam page flow ?

That should not be easy, this part is tightly integrated with JSF.

Thanks for your work.

Igor Drobiazko a écrit :

Hi all,

Seam integration for Tapestry 4 is now available as Tacos subproject:
http://tacos.sourceforge.net/tacos4.1/tacos-seam/index.html

Read how get the latest snapshots here:
http://tacos.sourceforge.net/tacos4.1/tacos-seam/download.html

The demo sources can be found here:
http://tacos.svn.sourceforge.net/viewvc/tacos/tacos-4.1/trunk/tacos-seam/demo/

Integration with Tapestry 5 is started as well. This will be the first
module for Tacos 5.
Unfortunately I can't upload the snapshots yet because some work is still
needed.
But you can expect the snapshots in the next days.

  



--
Michael Courcy
http://courcy.blogspot.com


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



Re: onChangeEvent of a Select component

2008-01-15 Thread Howard Lewis Ship
Currently, Tapestry doesn't have a built-in way to accomplish what you
want.  You will see a property update when the form containing the
Select component is submitted.  The containing Form component will
fire a series of events: prepare, then validate, then success or
failure, then submit.

Using Ajax techniques, it would be possible to add behavior you are
suggesting, it's simply not built in.


On Jan 15, 2008 1:07 AM, Yeeswara Nadapana (HCL Financial Services)
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> How can I implement an onChangeEvent for my  box? I wrote the
> combo as:
>
>
>
>  value="prop:currentFilter" />
>
>
>
> I have to call an event listener method in my page class. Please explain
> how to do that?
>
>
>
> Thanks and Regards
>
> Yeeswara N
>
>
>
> DISCLAIMER:
> ---
>
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. 
> Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the 
> opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, 
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail 
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender 
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> ---



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5: Some problem with prob binding

2008-01-15 Thread Howard Lewis Ship
I see two problems:

1) setId(T) should be type void, not String.

2) Tapestry is not currently aware of generics, so everywhere you see
type T in your class, Tapestry sees java.lang.Object.  There's an
issue about handling this better, but its very tricky.

On Jan 15, 2008 2:27 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> it happens after submit bacuse
> when renderring filed needs getter to render value,
>
> after submit the binding expression "team.id" is evaluated
> to populate value received through form submit
> it is then that setter is needed, hence error only then
>
> you probabla should add
> public void setId(T id);
>
> to ISimpleDesc interface to have setter available.
>
> or persist the id separately and not try to modify the id.
>
> Davor Hrg
>
>
> On Jan 15, 2008 8:59 AM, Foror <[EMAIL PROTECTED]> wrote:
> > In the project there is a following:
> >
> > public interface ISimpDesc {
> >public  getId();
> > }
> >
> > public class Team implements ISimpDesc {
> >
> > // hibernate annotations
> > @DocumentId
> > @Id
> > @MinLength(min=2)
> > @MaxLength(max=50)
> > @Pattern(regex="[\\w-]+")
> >private String id;
> >
> >public String getId() {
> >   return id;
> >}
> >public String setId(String id) {
> >   if (id == null) {
> >  return;
> >   }
> >
> >   this.id = id;
> >}
> > }
> >
> > In tml:
> >
> > :  > class="comment">(${message:default.lat-comment})
> >  > disabled="disabledId" label="message:content.id"/>
> >
> > In Windows XP on Tomcat 5.5 and Jety 6 and JDK 1.5.0_08 there were problems 
> > with
> > transformation of type of the "id" to String (from Object to String),
> > I have added this "translate="translate:string"" for fix problem.
> >
> > In Debian 4.0 on Tomcat 5.5 and JDK 1.5.0_10 there were problems
> > "Expression team.id for class ru.getdone.view.pages.team.form.FormFor
> > is read-only." after submit form.
> >
> > org.apache.tapestry.internal.bindings.PropBinding.set(PropBinding.java:67)
> > org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:229)
> > org.apache.tapestry.corelib.base.AbstractTextField._$update_parameter_value(AbstractTextField.java)
> > org.apache.tapestry.corelib.base.AbstractTextField.processSubmission(AbstractTextField.java:184)
> > org.apache.tapestry.corelib.base.AbstractField.processSubmission(AbstractField.java:186)
> > org.apache.tapestry.corelib.base.AbstractField.access$100(AbstractField.java:33)
> > org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:98)
> > org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:92)
> > org.apache.tapestry.corelib.components.Form.onAction(Form.java:330)
> >
> >
> > -
> > 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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Howard Lewis Ship
Yes, that's the way.

I've been evolving my approach to this kind of class transformation;
where I'm heading is to minimize the amount of dynamically generated
code by offloading as much as possible into stateless helper objects
(or services) that can be injected into the component instance.  In
some cases, the component will pass its component resources to the
helper.  In this way, the logic can be more easily tested in a unit
test ... which is valid, as long as there's integration tests to prove
that all the bits actually do work together.

On Jan 15, 2008 10:41 AM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> I see. Thanks. Just had a look into the ApplicationStateWorker.
> Your are replacing the read and write methods by a call to the manager.
> This way I can implement my use case.
>
>
> On Jan 15, 2008 7:01 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
>
> > Component classes are only transformed once.  This has not changed.
> >
> > The contribution method is only called once.  This too has not changed.
> >
> >
> >
> > On Jan 15, 2008 9:07 AM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> > > Hello,
> > >
> > > Implementing injection workers I experienced that the worker is invoked
> > only
> > > the first time the page is called.
> > > I think this behavior is new since couple of days. Working with the
> > earlier
> > > 5.0.8 snapshots the worker was invoked every time the page is called.
> > > The contribution of the worker is like this:
> > > public static void contributeComponentClassTransformWorker(
> > > OrderedConfiguration
> > > configuration,
> > > ObjectLocator locator,
> > > InjectionProvider injectionProvider,
> > > Environment environment,
> > > ComponentClassResolver resolver,
> > > RequestPageCache requestPageCache,
> > > BindingSource bindingsource,
> > > ApplicationStateManager applicationStateManager)
> > > {
> > > configuration.add("In", new InWorker());
> > > configuration.add("Out", new OutWorker());
> > > }
> >
> > There's no need to pass in parameters you aren't going to use ... only
> > the method name is utilized by the IoC container.
> >
> > >
> > > Are there some changes I should consider implementing transformation
> > > workers?
> > > --
> > > Best regards,
> > >
> > > Igor Drobiazko
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator Apache Tapestry and Apache HiveMind
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Best regards,
>
> Igor Drobiazko
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Igor Drobiazko
I see. Thanks. Just had a look into the ApplicationStateWorker.
Your are replacing the read and write methods by a call to the manager.
This way I can implement my use case.

On Jan 15, 2008 7:01 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

> Component classes are only transformed once.  This has not changed.
>
> The contribution method is only called once.  This too has not changed.
>
>
>
> On Jan 15, 2008 9:07 AM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Implementing injection workers I experienced that the worker is invoked
> only
> > the first time the page is called.
> > I think this behavior is new since couple of days. Working with the
> earlier
> > 5.0.8 snapshots the worker was invoked every time the page is called.
> > The contribution of the worker is like this:
> > public static void contributeComponentClassTransformWorker(
> > OrderedConfiguration
> > configuration,
> > ObjectLocator locator,
> > InjectionProvider injectionProvider,
> > Environment environment,
> > ComponentClassResolver resolver,
> > RequestPageCache requestPageCache,
> > BindingSource bindingsource,
> > ApplicationStateManager applicationStateManager)
> > {
> > configuration.add("In", new InWorker());
> > configuration.add("Out", new OutWorker());
> > }
>
> There's no need to pass in parameters you aren't going to use ... only
> the method name is utilized by the IoC container.
>
> >
> > Are there some changes I should consider implementing transformation
> > workers?
> > --
> > Best regards,
> >
> > Igor Drobiazko
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Best regards,

Igor Drobiazko


Re: T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Howard Lewis Ship
Component classes are only transformed once.  This has not changed.

The contribution method is only called once.  This too has not changed.



On Jan 15, 2008 9:07 AM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Implementing injection workers I experienced that the worker is invoked only
> the first time the page is called.
> I think this behavior is new since couple of days. Working with the earlier
> 5.0.8 snapshots the worker was invoked every time the page is called.
> The contribution of the worker is like this:
> public static void contributeComponentClassTransformWorker(
> OrderedConfiguration
> configuration,
> ObjectLocator locator,
> InjectionProvider injectionProvider,
> Environment environment,
> ComponentClassResolver resolver,
> RequestPageCache requestPageCache,
> BindingSource bindingsource,
> ApplicationStateManager applicationStateManager)
> {
> configuration.add("In", new InWorker());
> configuration.add("Out", new OutWorker());
> }

There's no need to pass in parameters you aren't going to use ... only
the method name is utilized by the IoC container.

>
> Are there some changes I should consider implementing transformation
> workers?
> --
> Best regards,
>
> Igor Drobiazko
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



T5: ComponentClassTransformWorker called only once

2008-01-15 Thread Igor Drobiazko
Hello,

Implementing injection workers I experienced that the worker is invoked only
the first time the page is called.
I think this behavior is new since couple of days. Working with the earlier
5.0.8 snapshots the worker was invoked every time the page is called.
The contribution of the worker is like this:
public static void contributeComponentClassTransformWorker(
OrderedConfiguration
configuration,
ObjectLocator locator,
InjectionProvider injectionProvider,
Environment environment,
ComponentClassResolver resolver,
RequestPageCache requestPageCache,
BindingSource bindingsource,
ApplicationStateManager applicationStateManager)
{
configuration.add("In", new InWorker());
configuration.add("Out", new OutWorker());
}

Are there some changes I should consider implementing transformation
workers?
-- 
Best regards,

Igor Drobiazko


Re: T5: regexp for commas

2008-01-15 Thread Howard Lewis Ship
All the IDEs have some form of regexp testing plugin; I use the
intellij one all the time.

On Jan 14, 2008 4:33 AM, Michael Courcy <[EMAIL PROTECTED]> wrote:
> Did you try this regexp with in a regular java program ?
>
> Thomas Zenglein a écrit :
>
> > Hello everybody,
> >
> > I want my textfield to allow a couple of signs.  For that I have the 
> > following code.
> >
> > @Validate("required,regexp=[<>a-zA-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
> > public void setName(String name) {
> >  this.name = name;
> > }
> >
> > Comma signs should also be allowed here. So I want to extend the regexp to 
> > handle that case.
> >
> > @Validate("required,regexp=[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
> > leads to
> > Coercion of [<>a-zA-Z to type java.util.regex.Pattern (via String --> 
> > java.util.regex.Pattern) failed: Unclosed character class near index 8 
> > [<>a-zA-Z ^
> >
> > @Validate("required,regexp=[<>a-z\\,A-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+") 
> > leads to following error:
> > Coercion of [<>a-z\ to type java.util.regex.Pattern (via String --> 
> > java.util.regex.Pattern) failed: Unclosed character class near index 7 
> > [<>a-z\ ^
> >
> > Has anybody an idea for the correct code??? I use tapestry 5.0.6.
> >
> > THX
> >
> > Thomas
> >
> > -
> > 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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



T5: Event order for "selected" and "validate" events

2008-01-15 Thread Joel Wiegman
All,

I've noticed that the "validate" event for a form fires before the
"selected" event fires from the Submit component.

IMHO, I think the "selected" event should fire first.  Seems like I
would want to know HOW the form was submitted before I validate it (in
case I want to, say, skip validation on the form if a person clicks a
specific button).

Can anyone present a counter argument?  If not I'll create a JIRA bug
(or is it a feature request?).

Cheers,

Joel

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



Re: [ANN] Tapestry/Seam integration

2008-01-15 Thread Jesse Kuhnert
This sounds great Igor,  thanks!

On Jan 14, 2008 3:40 PM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Seam integration for Tapestry 4 is now available as Tacos subproject:
> http://tacos.sourceforge.net/tacos4.1/tacos-seam/index.html
>
> Read how get the latest snapshots here:
> http://tacos.sourceforge.net/tacos4.1/tacos-seam/download.html
>
> The demo sources can be found here:
> http://tacos.svn.sourceforge.net/viewvc/tacos/tacos-4.1/trunk/tacos-seam/demo/
>
> Integration with Tapestry 5 is started as well. This will be the first
> module for Tacos 5.
> Unfortunately I can't upload the snapshots yet because some work is still
> needed.
> But you can expect the snapshots in the next days.
>
> --
> Best regards,
>
> Igor Drobiazko
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

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

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



Re: T5: regexp for commas

2008-01-15 Thread Michael Courcy

Thomas Zenglein a écrit :

Hello,

thanks evrybody for attempting to help me with that problem. I tried every suggest you gave, with no positve result. Now I think this is a Tapetry internal problem. 
Any idea for an alternative solution method?

Meanwhile I have to be happy without the regexp check.
  

Well you could do that inside the onValidate method of your form ...
No ?


THX

Thomas


  
Michael Courcy <[EMAIL PROTECTED]> schrieb am Mo, Jan 14, 2008 um  4:18 


in Nachricht <[EMAIL PROTECTED]>:
  
well I wonder if the comma is not playing a role in the interpretation 
of the annotation ?


did you try to replace the comma by its unicode value :  \u002C


Thomas Zenglein a écrit :


Hello Michael,

I've just tried following lines.

public class Test {
   public static void main(String[] args) {
String foo = ",";
if (foo.matches("[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")){
System.out.println(":)");
} else {
System.out.println(":(");
}
  }
}

With the aim to decide weather String foo contains a ',' ( or  another 
  
blabla that I allow) or not. Fortunately that works fine :). Now I want the 
same functionality in T5.


Thomas

  
  
Michael Courcy <[EMAIL PROTECTED]> schrieb am Mo, Jan 14, 2008 um  1:33 




in Nachricht <[EMAIL PROTECTED]>:
  
  

Did you try this regexp with in a regular java program ?

Thomas Zenglein a écrit :



Hello everybody,

I want my textfield to allow a couple of signs.  For that I have the 
  
  

following code.



@Validate("required,regexp=[<>a-zA-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
public void setName(String name) {
 this.name = name;
}

Comma signs should also be allowed here. So I want to extend the regexp to 
  
  

handle that case.



@Validate("required,regexp=[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
leads to 
Coercion of [<>a-zA-Z to type java.util.regex.Pattern (via String --> 
  
  
java.util.regex.Pattern) failed: Unclosed character class near index 8 
[<>a-zA-Z ^


@Validate("required,regexp=[<>a-z\\,A-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+") 
  
  

leads to following error:


Coercion of [<>a-z\ to type java.util.regex.Pattern (via String --> 
  
  
java.util.regex.Pattern) failed: Unclosed character class near index 7 [<>a-z\ 

^



Has anybody an idea for the correct code??? I use tapestry 5.0.6.

THX 


Thomas

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


  




t5 persist pageLoaded instance variable initialization

2008-01-15 Thread riccaruf

Hi everybody,

I've got the same question as Angelo in this post
http://www.mail-archive.com/users@tapestry.apache.org/msg19237.html
http://www.mail-archive.com/users@tapestry.apache.org/msg19237.html 

about the reasons why if I initialize some instance variable on the
pageLoaded event, the next time
I load the same page from the pool I find them already initialized without
any @Persist annotation use.

I've already read the doc on the page lifecycle and similar but I can't
understand what appened...:(

I've read that at the end of the request submission, when the page instance
in use, is pooled, the instance variables are set at their initial/default
value. And this is the problem for me. From the t5 doc I've read :"...This
means that its value resets to its default value at the end of reach request
(when the page is detached from the request)" ... but default value means
what I define in the on pageLoaded event ?? (who tell me that in the doc??
:) )

What do I miss ?

thanks in advance.


-Rick
-- 
View this message in context: 
http://www.nabble.com/t5-persist-pageLoaded-instance-variable-initialization-tp14838208p14838208.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]



could Grid component receive parameter ?

2008-01-15 Thread dwi ardi irawan
hi i have a loop and each loop makes different output
what i want to do is to create a table depend on the loop output
so if there is 3 iterate from the loop
it will be 3 grid table which is different each other

could anyone help me ??
i could do that on jsp by passing parameter.
how bout tapestry...could grid component receive a parameter


-- 
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"

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



Re: T5: Some problem with prob binding

2008-01-15 Thread Davor Hrg
it happens after submit bacuse
when renderring filed needs getter to render value,

after submit the binding expression "team.id" is evaluated
to populate value received through form submit
it is then that setter is needed, hence error only then

you probabla should add
public void setId(T id);

to ISimpleDesc interface to have setter available.

or persist the id separately and not try to modify the id.

Davor Hrg

On Jan 15, 2008 8:59 AM, Foror <[EMAIL PROTECTED]> wrote:
> In the project there is a following:
>
> public interface ISimpDesc {
>public  getId();
> }
>
> public class Team implements ISimpDesc {
>
> // hibernate annotations
> @DocumentId
> @Id
> @MinLength(min=2)
> @MaxLength(max=50)
> @Pattern(regex="[\\w-]+")
>private String id;
>
>public String getId() {
>   return id;
>}
>public String setId(String id) {
>   if (id == null) {
>  return;
>   }
>
>   this.id = id;
>}
> }
>
> In tml:
>
> :  class="comment">(${message:default.lat-comment})
>  disabled="disabledId" label="message:content.id"/>
>
> In Windows XP on Tomcat 5.5 and Jety 6 and JDK 1.5.0_08 there were problems 
> with
> transformation of type of the "id" to String (from Object to String),
> I have added this "translate="translate:string"" for fix problem.
>
> In Debian 4.0 on Tomcat 5.5 and JDK 1.5.0_10 there were problems
> "Expression team.id for class ru.getdone.view.pages.team.form.FormFor
> is read-only." after submit form.
>
> org.apache.tapestry.internal.bindings.PropBinding.set(PropBinding.java:67)
> org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:229)
> org.apache.tapestry.corelib.base.AbstractTextField._$update_parameter_value(AbstractTextField.java)
> org.apache.tapestry.corelib.base.AbstractTextField.processSubmission(AbstractTextField.java:184)
> org.apache.tapestry.corelib.base.AbstractField.processSubmission(AbstractField.java:186)
> org.apache.tapestry.corelib.base.AbstractField.access$100(AbstractField.java:33)
> org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:98)
> org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:92)
> org.apache.tapestry.corelib.components.Form.onAction(Form.java:330)
>
>
> -
> 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: Use System ClassLoader with Tapestry5

2008-01-15 Thread Lance Semmens
Hi, I'm a dwr user not a tapestry user... I usually only listen on this
list. To do this you would need to implement a tapestry creator
(http://getahead.org/dwr/server/dwrxml/creators). See the
org.directwebremoting.spring.SpringCreator for inspiration. You would
probably want to hook into tapestry's page pooling / page initialization
instead of calling PageClass.newInstance()... can't help you there
sorry.

Please consider submitting your solution to the dwr users list for
inclusion in the project http://getahead.org/dwr/support.

Cheers,
Lance.
 
-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: 14 January 2008 16:03
To: Tapestry users
Subject: Re: Use System ClassLoader with Tapestry5

Tricky.

The class loader Tapestry uses does two different things:
- Transforms the class (for injections, parameters, and lots of other
stuff)
- Handles reloading of classes when they change

When a .class file on the disk changes, Tapestry will actually discard
the class loader and create a new one.

I suspect you are going to have to go into the internals of DWR and
Tapestry in order to get this to work properly.

You can inject the @ComponentLayer ClassLoader and obtain the current
ClassLoader from it.

On Jan 14, 2008 2:29 AM, Yeeswara Nadapana (HCL Financial Services)
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
>
> I am building a Tapestry 5 application. It is using a Tapestry
specific
> ClassLoader called
>
"org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl$P
> ackageAwareLoader" to load all the classes. I am trying to use an DWR
> call to method on my Page class, where its using System ClassLoader to
> load that class. There starts the problem. Its not loading some
library
> files which I already loaded by my Tapestry ClassLoader. Is there any
> way to customize my Tapestry application to use generic System
> ClassLoader to load all the classes.
>
>
>
> Please help
>
>
>
> Thanks and Regards
>
> Yeeswara N
>
>
>
> DISCLAIMER:
>

---
> The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily
reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
> this message without the prior written consent of the author of this
e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>

---



-- 
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: regexp for commas

2008-01-15 Thread Thomas Zenglein
Hello,

thanks evrybody for attempting to help me with that problem. I tried every 
suggest you gave, with no positve result. Now I think this is a Tapetry 
internal problem. 
Any idea for an alternative solution method?
Meanwhile I have to be happy without the regexp check.

THX

Thomas


>>> Michael Courcy <[EMAIL PROTECTED]> schrieb am Mo, Jan 14, 2008 um  4:18 
in Nachricht <[EMAIL PROTECTED]>:
> well I wonder if the comma is not playing a role in the interpretation 
> of the annotation ?
> 
> did you try to replace the comma by its unicode value :  \u002C
> 
> 
> Thomas Zenglein a écrit :
>> Hello Michael,
>>
>> I've just tried following lines.
>>
>> public class Test {
>>public static void main(String[] args) {
>>  String foo = ",";
>>  if (foo.matches("[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")){
>>  System.out.println(":)");
>>  } else {
>>  System.out.println(":(");
>>  }
>>   }
>> }
>>
>> With the aim to decide weather String foo contains a ',' ( or  another 
> blabla that I allow) or not. Fortunately that works fine :). Now I want the 
> same functionality in T5.
>>
>> Thomas
>>
>>   
> Michael Courcy <[EMAIL PROTECTED]> schrieb am Mo, Jan 14, 2008 um  1:33 
> 
> 
>> in Nachricht <[EMAIL PROTECTED]>:
>>   
>>> Did you try this regexp with in a regular java program ?
>>>
>>> Thomas Zenglein a écrit :
>>> 
 Hello everybody,

 I want my textfield to allow a couple of signs.  For that I have the 
   
>>> following code.
>>> 
 @Validate("required,regexp=[<>a-zA-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
 public void setName(String name) {
  this.name = name;
 }

 Comma signs should also be allowed here. So I want to extend the regexp to 
   
>>> handle that case.
>>> 
 @Validate("required,regexp=[<>a-zA-Z,öäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+")
 leads to 
 Coercion of [<>a-zA-Z to type java.util.regex.Pattern (via String --> 
   
>>> java.util.regex.Pattern) failed: Unclosed character class near index 8 
>>> [<>a-zA-Z ^
>>> 
 @Validate("required,regexp=[<>a-z\\,A-ZöäüÖÄÜß0-9\\.\"\'?!§$%&\\-+*:/ ]+") 
   
>>> leads to following error:
>>> 
 Coercion of [<>a-z\ to type java.util.regex.Pattern (via String --> 
   
>>> java.util.regex.Pattern) failed: Unclosed character class near index 7 
>>> [<>a-z\ 
> 
>>> ^
>>> 
 Has anybody an idea for the correct code??? I use tapestry 5.0.6.

 THX 

 Thomas

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



onChangeEvent of a Select component

2008-01-15 Thread Yeeswara Nadapana (HCL Financial Services)

Hi,

 

How can I implement an onChangeEvent for my  box? I wrote the
combo as:

 



 

I have to call an event listener method in my page class. Please explain
how to do that?

 

Thanks and Regards

Yeeswara N



DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

Re: T4.1 friendly URLs and session restart

2008-01-15 Thread Ulrich Stärk
Override the default StaleSession page with your own implementation. 
Just create a page called e.g. MyStaleSession and use an 
InfrastructureOverride in Hivemind like this:



  


Look here http://www.nabble.com/forum/ViewPost.jtp?post=7217351&framed=y 
here 
http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html 
here 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/pages/StaleSession.html?view=markup 
and here 
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/pages/StaleSession.page?view=markup 
for more information.


Cheers,

Uli

spot_ schrieb:

Hello all

I configured my T4.1 for friendly URLs
(http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html).
Everything works perfect, except a session restart as a result of time out.
In this case Tomcat (?) renders a page with the message, that the session
was timed out and with a link to restart.
This link points to the old (non-friendly URL): http://host/context/app
instead to my new home page: http://host/context/Home.page

Can anybody tell me how to solve this issue?

Thanks in advance.

Regards
Christoph



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



Re: [T5 5.0.8] relative urls for sorting table headers

2008-01-15 Thread Robert Zeigler
Recently introduced is a work in progress at optimizing generated  
urls... using relative urls when those are shorter.

Like you, I'm finding that it's still a work in progress.
You can turn it off, though, by going into your "AppModule" and doing:

public static void contributeApplicationDefaults(
MappedConfiguration configuration)
{
 
configuration.add(TapestryConstants.FORCE_FULL_URIS_SYMBOL,"true");

}

Robert

On Jan 15, 2008, at 1/152:25 AM , Moritz Gmelin wrote:


Hi,

I have tried switching to 5.0.8-SNAPSHOT and discovered some strange  
behaviour with the newly stripped image urls.
In some grids that are displayed in pages that are in sub-packages,  
the sortable icon is references like this




(which is wrong)

the sort-asc image is references like this




(which is correct). This is in the same grid component. 5.0.7  
referenced both src-tages identically correct with absoulte-urls.


There are other problems in image URLs in sub-pages where the URL is  
wrong. For an image service e.g. 5.0.7 used to generate




5.0.8-SNAPSHOT generates



which is not handled correctly by either Safari or Firefox.

Thanks

Moritz



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



[T5 5.0.8] relative urls for sorting table headers

2008-01-15 Thread Moritz Gmelin

Hi,

I have tried switching to 5.0.8-SNAPSHOT and discovered some strange  
behaviour with the newly stripped image urls.
In some grids that are displayed in pages that are in sub-packages,  
the sortable icon is references like this




(which is wrong)

the sort-asc image is references like this




(which is correct). This is in the same grid component. 5.0.7  
referenced both src-tages identically correct with absoulte-urls.


There are other problems in image URLs in sub-pages where the URL is  
wrong. For an image service e.g. 5.0.7 used to generate




5.0.8-SNAPSHOT generates



which is not handled correctly by either Safari or Firefox.

Thanks

Moritz

T5: Some problem with prob binding

2008-01-15 Thread Foror
In the project there is a following:

public interface ISimpDesc {
   public  getId();
}

public class Team implements ISimpDesc {

// hibernate annotations
@DocumentId
@Id
@MinLength(min=2)
@MaxLength(max=50)
@Pattern(regex="[\\w-]+")
   private String id;

   public String getId() {
  return id;
   }
   public String setId(String id) {
  if (id == null) {
 return;
  }

  this.id = id;
   }
}

In tml:

: (${message:default.lat-comment})


In Windows XP on Tomcat 5.5 and Jety 6 and JDK 1.5.0_08 there were problems with
transformation of type of the "id" to String (from Object to String),
I have added this "translate="translate:string"" for fix problem.

In Debian 4.0 on Tomcat 5.5 and JDK 1.5.0_10 there were problems
"Expression team.id for class ru.getdone.view.pages.team.form.FormFor
is read-only." after submit form.

org.apache.tapestry.internal.bindings.PropBinding.set(PropBinding.java:67)
org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:229)
org.apache.tapestry.corelib.base.AbstractTextField._$update_parameter_value(AbstractTextField.java)
org.apache.tapestry.corelib.base.AbstractTextField.processSubmission(AbstractTextField.java:184)
org.apache.tapestry.corelib.base.AbstractField.processSubmission(AbstractField.java:186)
org.apache.tapestry.corelib.base.AbstractField.access$100(AbstractField.java:33)
org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:98)
org.apache.tapestry.corelib.base.AbstractField$ProcessSubmissionAction.execute(AbstractField.java:92)
org.apache.tapestry.corelib.components.Form.onAction(Form.java:330)


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