Re: T4.1.5 and OC4J: Missing classpath resource '/dojo-0.4.3-custom-4.1.5/'.

2008-05-15 Thread Andreas Andreou
Does this show up in the console for all pages? What does the browser show?

On Wed, May 14, 2008 at 11:54 AM, Jan Vissers <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We're trying to migrate an 4.1.2 app to 4.1.5, but are running into an issue. 
> It seems the exception page isn't properly initialized. Can anybody shed some 
> light on this?
>
> 08/05/14 10:52:29 org.apache.hivemind.ApplicationRuntimeException: Missing 
> classpath resource '/dojo-0.4.3-custom-4.1.5/'.
> 08/05/14 10:52:29location: folder
> 08/05/14 10:52:29 
> org.apache.tapestry.asset.ClasspathAssetFactory.createAbsoluteAsset(ClasspathAssetFactory.java:84)
> 08/05/14 10:52:29 
> $AssetFactory_119e69f310e.createAbsoluteAsset($AssetFactory_119e69f310e.java)
> 08/05/14 10:52:29 
> org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java:97)
> 08/05/14 10:52:29 
> org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java:56)
> 08/05/14 10:52:29 
> $AssetSource_119e69f3105.findAsset($AssetSource_119e69f3105.java)
> 08/05/14 10:52:29 
> org.apache.tapestry.javascript.JavascriptManagerImpl.findAsset(JavascriptManagerImpl.java:150)
> 08/05/14 10:52:29 
> org.apache.tapestry.javascript.JavascriptManagerImpl.setFolder(JavascriptManagerImpl.java:114)
> 08/05/14 10:52:29 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 08/05/14 10:52:29 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 08/05/14 10:52:29 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 08/05/14 10:52:29 java.lang.reflect.Method.invoke(Method.java:597)
> 08/05/14 10:52:29 
> org.apache.hivemind.util.PropertyAdaptor.write(PropertyAdaptor.java:92)
> 08/05/14 10:52:29 
> org.apache.hivemind.util.ClassAdaptor.write(ClassAdaptor.java:62)
> 08/05/14 10:52:29 
> org.apache.hivemind.util.PropertyUtils.write(PropertyUtils.java:54)
> 08/05/14 10:52:29 
> org.apache.hivemind.service.impl.BuilderFactoryLogic.wireProperty(BuilderFactoryLogic.java:359)
> 08/05/14 10:52:29 
> org.apache.hivemind.service.impl.BuilderFactoryLogic.setProperties(BuilderFactoryLogic.java:320)
> 08/05/14 10:52:29 
> org.apache.hivemind.service.impl.BuilderFactoryLogic.createService(BuilderFactoryLogic.java:77)
> 08/05/14 10:52:29 
> org.apache.hivemind.service.impl.BuilderFactory.createCoreServiceImplementation(BuilderFactory.java:42)
> 08/05/14 10:52:29 
> org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:62)
> 08/05/14 10:52:29 
> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
> 08/05/14 10:52:29 
> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
> 08/05/14 10:52:29 
> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
> 08/05/14 10:52:29 
> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
> 08/05/14 10:52:29 
> $JavascriptManager_119e69f3195._service($JavascriptManager_119e69f3195.java)
> 08/05/14 10:52:29 
> $JavascriptManager_119e69f3195.getFirstAsset($JavascriptManager_119e69f3195.java)
> 08/05/14 10:52:29 
> $JavascriptManager_119e69f3194.getFirstAsset($JavascriptManager_119e69f3194.java)
> 08/05/14 10:52:29 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 08/05/14 10:52:29 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 08/05/14 10:52:29 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 08/05/14 10:52:29 java.lang.reflect.Method.invoke(Method.java:597)
> 08/05/14 10:52:29 ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:851)
> 08/05/14 10:52:29 ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1414)
> 08/05/14 10:52:29 
> ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60)
> 08/05/14 10:52:29 
> ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:147)
> 08/05/14 10:52:29 ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2210)
> 08/05/14 10:52:29 ognl.ASTProperty.getValueBody(ASTProperty.java:114)
> 08/05/14 10:52:29 ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> 08/05/14 10:52:29 ognl.SimpleNode.getValue(SimpleNode.java:258)
> 08/05/14 10:52:29 ognl.ASTChain.getValueBody(ASTChain.java:138)
> 08/05/14 10:52:29 ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
> 08/05/14 10:52:29 ognl.SimpleNode.getValue(SimpleNode.java:258)
> 08/05/14 10:52:29 ognl.Ognl.getValue(Ognl.java:494)
> 08/05/14 10:52:29 ognl.Ognl.getValue(Ognl.java:458)
> 08/05/14 10:52:29 
> org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.readCompiled(ExpressionEvaluatorImpl.java:123)
> 08/05/14 10:52:29 
> $ExpressionEvaluator_119e69f3188.readCompiled($ExpressionEvaluator_119e69f3188.java)
> 08

Re: T5: Acegi integration

2008-05-15 Thread Stephane Decleire
You were right : i had different versions of hibernate and hibernate 
annotations.

Everything works fine now ...
Thanks.

Stephane

Robin Helgelin a écrit :

On Thu, May 15, 2008 at 5:54 PM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
  

I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get the
same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.



Hmm, seems more like some problem with how you integrate
tapestry-hibernate. Or as it seems, tapestry-hibernate itself. It
seems more likely you have a diff between tapestry and hibernate
versions, otherwise I'm out of ideas.

  


EventLink and context from page

2008-05-15 Thread Tomasz Dziurko
In one page (let's name it http://www.myapp.com/show) I am showing
some items. These items could be divided into some categories and when
user wants to filter them uses link looking like that
http://www.myapp.com/show/category_name_4, where 4 is number of
category passed by onPassivate/onActivate method.
Each item has eventLink which perform some action. Problem is when
user clicks on eventLink on page
http://www.myapp.com/show/category_name_4 then context is lost and he
is redirected into http://www.myapp.com/show instead of
http://www.myapp.com/show/category_name_4, what causes filtering by
category to disappear.
Is there any way of using eventLink with remebering page context and
user redirected to the same page with the same context?
I know I could use something like setCategory() and later filter with
this Category so no context paramaters are passed  between pages but I
want pages with filtered items bookmarkable.

Thank you for your help.

Regards
-- 
Tomasz Dziurko

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



T5: Abstract onSuccess methods for forms in base page classes force double form submission

2008-05-15 Thread Bill Holloway
This is just FYI I guess, but I have a page class that inherits from
an abstract base class.  In the abstract base class I have an abstract
onSuccess method to "force" myself to implement the onSuccess handlers
in the derived page classes.  When submitting the form, I actually get
TWO form submissions.  Really messed up my data till I figured it out.
 Removing the abstract onSuccess solves the problem.

Is this worth a JIRA, or is it actually a feature?

-- 
Bill @ PeoplePad

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



Re: [ANN]: T5 website and validation feedback

2008-05-15 Thread tdziurko
Yes, it is possible. Just use clientValidation parameter with false
value in your form component.
More info:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Form.html

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



Re: T5: Acegi integration

2008-05-15 Thread Robin Helgelin
On Thu, May 15, 2008 at 5:54 PM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
> I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get the
> same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.

Hmm, seems more like some problem with how you integrate
tapestry-hibernate. Or as it seems, tapestry-hibernate itself. It
seems more likely you have a diff between tapestry and hibernate
versions, otherwise I'm out of ideas.

-- 
 regards,
 Robin

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



Re: [ANN]: T5 website and validation feedback

2008-05-15 Thread Toby Hobson
Is it possible to tell T5 to not perform client-side validation? For the moment 
I'm happy to take the round-trip hit to get around the problems I'm having with 
the Javascript stuff

Toby

- Original Message 
From: babbler <[EMAIL PROTECTED]>
To: Tapestry users 
Sent: Thursday, 15 May, 2008 5:13:09 PM
Subject: Re: [ANN]: T5 website and validation feedback

I differ in the use of Ajax for consistency. It is not so much getting 
around DHTML manipulation but
 - allowing sophisticated validation to be performed on the server-side in a 
client-agnostic manner
- allowing the developer to write one piece of validation and knowing that 
it will consistently work client-side and server side

Either way, I'd like to see the bubbles ... well, pop!

- Original Message - 
From: "Josh Canfield" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Thursday, May 15, 2008 11:35 AM
Subject: Re: [ANN]: T5 website and validation feedback


>> One obvious advantage of having ajaxified client-side validation is that 
>> the
>> server-side validation and client-side validation will look exactly the
>> same!
>
> Ajax isn't the answer for this problem. You don't have to go to the
> server to get consistent error reporting, adding and removing elements
> from the t:errors div using good old DHTML isn't complicated, and
> would make a nice alternative to the bubbles. The client side error
> handling should definitely provide extension points so these options
> can be added.
>
> On a side but related note:
> I'd also like to be able to pull the t:errors out of the form and
> allow multiple forms to post to the same error area at the top of the
> page...
>
> Josh
>
> On Thu, May 15, 2008 at 5:03 AM, babbler <[EMAIL PROTECTED]> wrote:
>> One obvious advantage of having ajaxified client-side validation is that 
>> the
>> server-side validation and client-side validation will look exactly the
>> same!
>>
>> - Original Message - From: "babbler" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Thursday, May 15, 2008 5:08 AM
>> Subject: [ANN]: T5 website and validation feedback
>>
>>
>>> I've been working on a T5 and Flash based website - building a version 
>>> of
>>> the good old acrophobia game. You can check it out at 
>>> www.acrobabble.com. T5
>>> is shaping up to be a great framework. However, I do have some feedback 
>>> on
>>> the form validation mechanism. As you can see from the acrobabble 
>>> website,
>>> if you just tab through the login fields, you get broken error messages
>>> because of the div being too small where the blurbs are created. The
>>> framework will never be able to properly guess where the blurb should be
>>> inserted and as a consequence wrapped blurbs like I'm getting are
>>> inevitable.
>>>
>>> I really wish T5 would support validation like is seen on Yahoo mail's
>>> sign up page. Go to yahoo.com and click on Sign Up for mail. The fields 
>>> seem
>>> to have various "tags" associated with them:
>>>
>>> - Displayed when the field gets the focus
>>> - Displayed when the field loses focus and validation occurs.
>>>
>>> I saw a few emails that referred to validation using onBlur. I think 
>>> every
>>> field should be able to drive certain events:
>>>
>>> onFocus: This should allow you to specify one or more components (say by
>>> Annotation in the getter for the field) that should either have their 
>>> css
>>> changed or be ajax-updated when the field gets focus.
>>> onBlur: Fire validations and allow the developer to specify in which 
>>> html
>>> tag (div or span, etc.) the output of the validation should be displayed 
>>> and
>>> optionally additional components that could have their css class 
>>> changed.
>>>
>>> This will make for an extremely powerful and flexible validation 
>>> framework
>>> and will get us away from the blurbs (which can be very annoying to use 
>>> as
>>> they cover up the field). My humble opinion is that the above change is 
>>> a
>>> necessity given the other superlatives that T5 boasts (hint: Howard - 
>>> appeal
>>> to ego! :)
>>>
>>> -
>>> 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]
>>
>>
>
>
>
> -- 
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
>
> -
> 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: [ANN]: T5 website and validation feedback

2008-05-15 Thread babbler
I differ in the use of Ajax for consistency. It is not so much getting 
around DHTML manipulation but
- allowing sophisticated validation to be performed on the server-side in a 
client-agnostic manner
- allowing the developer to write one piece of validation and knowing that 
it will consistently work client-side and server side


Either way, I'd like to see the bubbles ... well, pop!

- Original Message - 
From: "Josh Canfield" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Thursday, May 15, 2008 11:35 AM
Subject: Re: [ANN]: T5 website and validation feedback


One obvious advantage of having ajaxified client-side validation is that 
the

server-side validation and client-side validation will look exactly the
same!


Ajax isn't the answer for this problem. You don't have to go to the
server to get consistent error reporting, adding and removing elements
from the t:errors div using good old DHTML isn't complicated, and
would make a nice alternative to the bubbles. The client side error
handling should definitely provide extension points so these options
can be added.

On a side but related note:
I'd also like to be able to pull the t:errors out of the form and
allow multiple forms to post to the same error area at the top of the
page...

Josh

On Thu, May 15, 2008 at 5:03 AM, babbler <[EMAIL PROTECTED]> wrote:
One obvious advantage of having ajaxified client-side validation is that 
the

server-side validation and client-side validation will look exactly the
same!

- Original Message - From: "babbler" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, May 15, 2008 5:08 AM
Subject: [ANN]: T5 website and validation feedback


I've been working on a T5 and Flash based website - building a version 
of
the good old acrophobia game. You can check it out at 
www.acrobabble.com. T5
is shaping up to be a great framework. However, I do have some feedback 
on
the form validation mechanism. As you can see from the acrobabble 
website,

if you just tab through the login fields, you get broken error messages
because of the div being too small where the blurbs are created. The
framework will never be able to properly guess where the blurb should be
inserted and as a consequence wrapped blurbs like I'm getting are
inevitable.

I really wish T5 would support validation like is seen on Yahoo mail's
sign up page. Go to yahoo.com and click on Sign Up for mail. The fields 
seem

to have various "tags" associated with them:

- Displayed when the field gets the focus
- Displayed when the field loses focus and validation occurs.

I saw a few emails that referred to validation using onBlur. I think 
every

field should be able to drive certain events:

onFocus: This should allow you to specify one or more components (say by
Annotation in the getter for the field) that should either have their 
css

changed or be ajax-updated when the field gets focus.
onBlur: Fire validations and allow the developer to specify in which 
html
tag (div or span, etc.) the output of the validation should be displayed 
and
optionally additional components that could have their css class 
changed.


This will make for an extremely powerful and flexible validation 
framework
and will get us away from the blurbs (which can be very annoying to use 
as
they cover up the field). My humble opinion is that the above change is 
a
necessity given the other superlatives that T5 boasts (hint: Howard - 
appeal

to ego! :)

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






--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
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: Acegi integration

2008-05-15 Thread Stephane Decleire
I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get 
the same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT.


Robin Helgelin a écrit :

On Thu, May 15, 2008 at 4:02 PM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
  

I have just made the integration of Acegi in my T5 application but after
each authentication attempt, i get the following error :

Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
ThreadCleanupHub) (at HibernateModule.java:74) (for service
'HibernateSessionManager'): No service implements the interface
org.apache.tapestry.ioc.services.ThreadCleanupHub.



What version of Tapestry and tapestry-hibernate?

  


Re: T5: Acegi integration

2008-05-15 Thread Robin Helgelin
On Thu, May 15, 2008 at 4:02 PM, Stephane Decleire
<[EMAIL PROTECTED]> wrote:
> I have just made the integration of Acegi in my T5 application but after
> each authentication attempt, i get the following error :
>
> Error invoking service builder method
> org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
> ThreadCleanupHub) (at HibernateModule.java:74) (for service
> 'HibernateSessionManager'): No service implements the interface
> org.apache.tapestry.ioc.services.ThreadCleanupHub.

What version of Tapestry and tapestry-hibernate?

-- 
 regards,
 Robin

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



Re: T5: unable to resolve 'Layout' (see Article: Tapes try for Nonbelievers)

2008-05-15 Thread jg433
Hi Nille,

thank you, that helped.
In Eclipse all tml-pages are in the folder WebContent (obviously no need to 
create subpackages there, because the compiler did not complain).
When I put my Layout.java in a subpackage "components" everything was fine.

Thanks a lot!! :-))
Juliane



-Ursprüngliche Nachricht-
Von: "Tapestry users" 
Gesendet: 15.05.08 17:11:01
An: "Tapestry users" 
Betreff: Re: T5: unable to resolve 'Layout' (see Article: Tapestry for 
Nonbelievers) 


Hi Juliane,

templates and classes for pages or components have to be in the same package. 
Secondly, pages (i.e. Start) must go to the pages subpackage whilst components 
(i.e. Layout) must go to the components subpackage. The resulting package 
structure for your example would be:
de...pages.Start.java
de...pages.Start.tml
de...components.Layout.java
de...components.Layout.tml

And another thing I am facing when creating new classes is that class reloading 
notices when I have changed an existing class but does not notice for some 
reason when I have added a new class. So maybe a restart of your context or 
even your servlet container after having added a new class might solve the 
problem.

Kind regards, nillehammer



- original Nachricht 

Betreff: T5: unable to resolve 'Layout' (see Article: Tapestry for 
Nonbelievers) 
Gesendet: Do, 15. Mai 2008
Von: [EMAIL PROTECTED]

> Hi,
> 
> I am a Java Programmer just starting to study Tapestry 5.
> I tried to follow the example in the article "Tapestry for Nonbelievers"
> where a Layout.tml is used to integrate page specific content.
> I keep getting a "java.lang.IllegalArgumentException: Unable to resolve
> 'Layout' to a component class name. "
> And I do not know why this is. (Probably something very easy and stupid,
> sorry - these are my first steps...)
> 
> My Code:
> 
> Start.java:
> =
> public class Start{
>   
>   public Date getCurrentTime() { 
>   return new Date(); 
>   }
> }
> 
> Start.tml:
> ==
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>  The current time is: ${currentTime}. 
> 
> 
> 
> Layout.java:
> ===
> @IncludeStylesheet("context:memory.css")
> public class Layout {
> 
> }
> 
> Layout.tml:
> =
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> Fionas Memory
> 
> 
> Fionas Memory
>
> 
> 
> ===
> 
> Has anybody an idea where to look for the error? Layout.java is empty: is
> that correct?
> thanks very much for your help,
> Juliane
> ___
> EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
> Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--- original Nachricht Ende 


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




___
EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED]


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



Re: [ANN]: T5 website and validation feedback

2008-05-15 Thread Josh Canfield
> One obvious advantage of having ajaxified client-side validation is that the
> server-side validation and client-side validation will look exactly the
> same!

Ajax isn't the answer for this problem. You don't have to go to the
server to get consistent error reporting, adding and removing elements
from the t:errors div using good old DHTML isn't complicated, and
would make a nice alternative to the bubbles. The client side error
handling should definitely provide extension points so these options
can be added.

On a side but related note:
I'd also like to be able to pull the t:errors out of the form and
allow multiple forms to post to the same error area at the top of the
page...

Josh

On Thu, May 15, 2008 at 5:03 AM, babbler <[EMAIL PROTECTED]> wrote:
> One obvious advantage of having ajaxified client-side validation is that the
> server-side validation and client-side validation will look exactly the
> same!
>
> - Original Message - From: "babbler" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, May 15, 2008 5:08 AM
> Subject: [ANN]: T5 website and validation feedback
>
>
>> I've been working on a T5 and Flash based website - building a version of
>> the good old acrophobia game. You can check it out at www.acrobabble.com. T5
>> is shaping up to be a great framework. However, I do have some feedback on
>> the form validation mechanism. As you can see from the acrobabble website,
>> if you just tab through the login fields, you get broken error messages
>> because of the div being too small where the blurbs are created. The
>> framework will never be able to properly guess where the blurb should be
>> inserted and as a consequence wrapped blurbs like I'm getting are
>> inevitable.
>>
>> I really wish T5 would support validation like is seen on Yahoo mail's
>> sign up page. Go to yahoo.com and click on Sign Up for mail. The fields seem
>> to have various "tags" associated with them:
>>
>> - Displayed when the field gets the focus
>> - Displayed when the field loses focus and validation occurs.
>>
>> I saw a few emails that referred to validation using onBlur. I think every
>> field should be able to drive certain events:
>>
>> onFocus: This should allow you to specify one or more components (say by
>> Annotation in the getter for the field) that should either have their css
>> changed or be ajax-updated when the field gets focus.
>> onBlur: Fire validations and allow the developer to specify in which html
>> tag (div or span, etc.) the output of the validation should be displayed and
>> optionally additional components that could have their css class changed.
>>
>> This will make for an extremely powerful and flexible validation framework
>> and will get us away from the blurbs (which can be very annoying to use as
>> they cover up the field). My humble opinion is that the above change is a
>> necessity given the other superlatives that T5 boasts (hint: Howard - appeal
>> to ego! :)
>>
>> -
>> 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]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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



Re: T5 + JSON + key name

2008-05-15 Thread Josh Canfield
>   for(var key in jsonObject) {
>   addSelectOption(groupSelect, jsonObject[key], key, false);

jsonObject is a hash, the keys in the hash are not stored with a
predictable ordering. If you want an ordered list then you should
create an array.

On Thu, May 15, 2008 at 3:58 AM, Leon Derks <[EMAIL PROTECTED]> wrote:
> Thanks Chris,
>
> That worked.
> The only thing is that the order of groups in the select is gone.
> I know for sure I put them in the correct order in the java jsonObject.
> I think the var jsonObject = response.evalJSON(); or the for(var key in
> jsonObject) messes up the order.
> Is there a way to solve this?
>
> For the ones interested, I fill my select box now in this way:
>
> Java Page:
> @OnEvent(component = "productSelect", value = "change")
>   JSONObject onProductSelectChanged(String value) {
>   ProductCategory category =
> ProductCategory.getProductCategoryByName(value);
>   groups = characteristicDAO.findGroupsByProductCategory(category);
>   JSONObject jsonObject = new JSONObject();
>   for (CharacteristicGroup group : groups) {
>   Long id = group.getId();
>   jsonObject.put(id.toString(), group.getName());
>   }
>   return jsonObject;
>   }
>
> javascript:
> function productSelectChanged(response) {
>   var groupSelect = $('groupSelect');
>   clearSelectOption(groupSelect);
> var jsonObject = response.evalJSON();
>   for(var key in jsonObject) {
>   addSelectOption(groupSelect, jsonObject[key], key, false);
>   }
> }
>
> Chris Lewis wrote:
>>
>> Try:
>>
>> for (var i in object) {}
>>
>> Where object would be your json object.
>>
>> Leon Derks wrote:
>>
>>>
>>> Hi Sven,
>>>
>>> I only see that they get the value by using the key name.
>>> For example this:
>>>
>>> |var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
>>> data.name; //prints Violet.
>>> |
>>>
>>> But in my case, I don't know the key name, so I can't get the value.
>>> Is there a way to get the key names of a JSON Object?
>>> For example something like this:
>>> |
>>> data.keys; //returns {name, occupation}|
>>>
>>> |
>>> |
>>>
>>> Leon
>>>
>>>
>>> Sven Homburg wrote:
>>>

 http://www.prototypejs.org/learn/json

 2008/5/15 Leon Derks <[EMAIL PROTECTED]>:


>
> Hello
>
> I have a  JSON object like this:
>
> JSONObject obj = new JSONObject();
>
> obj.put(entity.getId(), entity.getName());
>
> But how can I get the value from my json object in javascript, if I
> don't
> know the key name?
>
> Is there a way to get the key name(s) from a json object in javascript?
>
> Leon
>
> -
> 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]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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



Re: T5 + JSON + key name

2008-05-15 Thread Andreas Andreou
You probably have to rethink your json structure - it doesn't look
like you're interested
in getting values from keys... you just want the values in the particular order.

Take a look at JSONArray

On Thu, May 15, 2008 at 2:19 PM, Leon Derks <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>
>  I just noticed that the options in the select are initialy not ordered.
>  But when I persist the options (groups) in my session data, the option are
> ordered after I have clicked the search button and submitted the form.
>  Then refreshed page, contains a select with ordered group options.
>
>  Do you have an explanation for this behaviour?
>
>  Leon
>
>
>
>
>  Leon Derks wrote:
>
> > Thanks Chris,
> >
> > That worked.
> > The only thing is that the order of groups in the select is gone.
> > I know for sure I put them in the correct order in the java jsonObject.
> > I think the var jsonObject = response.evalJSON(); or the for(var key in
> jsonObject) messes up the order.
> > Is there a way to solve this?
> >
> > For the ones interested, I fill my select box now in this way:
> >
> > Java Page:
> > @OnEvent(component = "productSelect", value = "change")
> >   JSONObject onProductSelectChanged(String value) {
> >   ProductCategory category =
> ProductCategory.getProductCategoryByName(value);
> >   groups = characteristicDAO.findGroupsByProductCategory(category);
> >   JSONObject jsonObject = new JSONObject();
> >   for (CharacteristicGroup group : groups) {
> >   Long id = group.getId();
> >   jsonObject.put(id.toString(), group.getName());
> >   }
> >   return jsonObject;
> >   }
> >
> > javascript:
> > function productSelectChanged(response) {
> >   var groupSelect = $('groupSelect');
> >   clearSelectOption(groupSelect);
> > var jsonObject = response.evalJSON();
> >   for(var key in jsonObject) {
> >   addSelectOption(groupSelect, jsonObject[key], key, false);
> >   }
> > }
> >
> > Chris Lewis wrote:
> >
> > > Try:
> > >
> > > for (var i in object) {}
> > >
> > > Where object would be your json object.
> > >
> > > Leon Derks wrote:
> > >
> > >
> > > > Hi Sven,
> > > >
> > > > I only see that they get the value by using the key name.
> > > > For example this:
> > > >
> > > > |var data = '{ "name": "Violet", "occupation": "character"
> }'.evalJSON();
> > > > data.name; //prints Violet.
> > > > |
> > > >
> > > > But in my case, I don't know the key name, so I can't get the value.
> > > > Is there a way to get the key names of a JSON Object?
> > > > For example something like this:
> > > > |
> > > > data.keys; //returns {name, occupation}|
> > > >
> > > > |
> > > > |
> > > >
> > > > Leon
> > > >
> > > >
> > > > Sven Homburg wrote:
> > > >
> > > >
> > > > > http://www.prototypejs.org/learn/json
> > > > >
> > > > > 2008/5/15 Leon Derks <[EMAIL PROTECTED]>:
> > > > >
> > > > >
> > > > >
> > > > > > Hello
> > > > > >
> > > > > > I have a  JSON object like this:
> > > > > >
> > > > > > JSONObject obj = new JSONObject();
> > > > > >
> > > > > > obj.put(entity.getId(), entity.getName());
> > > > > >
> > > > > > But how can I get the value from my json object in javascript, if
> I
> > > > > > don't
> > > > > > know the key name?
> > > > > >
> > > > > > Is there a way to get the key name(s) from a json object in
> javascript?
> > > > > >
> > > > > > Leon
> > > > > >
> > > > > >
> -
> > > > > > 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]
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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



Re: Re: Index page and trailing slash

2008-05-15 Thread nille hammer

Hi guys,

I had a similar problem with relative urls. I have added a line to the method 
contributeApplicationDefaults in the AppModule class. The line is:
configuration.add(TapestryConstants.FORCE_ABSOLUTE_URIS_YSMBOL, "true");
After that tapestry is not generating relative urls any more.

Hope this helps, nillehammer


- original Nachricht 

Betreff: Re: Index page and trailing slash
Gesendet: Do, 15. Mai 2008
Von: Josh Canfield<[EMAIL PROTECTED]>

> On Wed, May 14, 2008 at 2:29 PM, Mark Horn <[EMAIL PROTECTED]> wrote:
> 
> > I'm using the standard Tapestry css sheet, and I confirmed the URLS by
> > looking @ apache's log
> 
> 
> Ah, I just reproduced it. Tapestry is generating a relative url when the
> url
> ends with a slash. If there isn't a JIRA issue filed yet, there should be.
> 
> Josh
> 
> -- 
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.
> 

--- original Nachricht Ende 


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



Re: T5: editing textfields values from a collection

2008-05-15 Thread Josh Canfield
> But I also want to be able to edit the textfield values, when I click the
> save button.

Are you saying that you want to modify the value in your java code
after the user as clicked the save button? You can add an onValidate
or onSuccess handler and modify the values there...

If that's not what your asking then can you give a more detailed
description of what you had in mind?

Josh

On Thu, May 15, 2008 at 12:32 AM, Leon Derks <[EMAIL PROTECTED]> wrote:
> I have an object which contains a collection with a maximum of 3
> descriptions.
>
> I want to be able to edit the descriptions on the same page.
>
> At the moment I loop through the collection and print the descriptions in
> its own textfield on the screen.
>
> But I also want to be able to edit the textfield values, when I click the
> save button.
>
> How can I do this?
>
> Leon
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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



Re: T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers)

2008-05-15 Thread nille hammer

Hi Juliane,

templates and classes for pages or components have to be in the same package. 
Secondly, pages (i.e. Start) must go to the pages subpackage whilst components 
(i.e. Layout) must go to the components subpackage. The resulting package 
structure for your example would be:
de...pages.Start.java
de...pages.Start.tml
de...components.Layout.java
de...components.Layout.tml

And another thing I am facing when creating new classes is that class reloading 
notices when I have changed an existing class but does not notice for some 
reason when I have added a new class. So maybe a restart of your context or 
even your servlet container after having added a new class might solve the 
problem.

Kind regards, nillehammer



- original Nachricht 

Betreff: T5: unable to resolve 'Layout' (see Article: Tapestry for 
Nonbelievers) 
Gesendet: Do, 15. Mai 2008
Von: [EMAIL PROTECTED]

> Hi,
> 
> I am a Java Programmer just starting to study Tapestry 5.
> I tried to follow the example in the article "Tapestry for Nonbelievers"
> where a Layout.tml is used to integrate page specific content.
> I keep getting a "java.lang.IllegalArgumentException: Unable to resolve
> 'Layout' to a component class name. "
> And I do not know why this is. (Probably something very easy and stupid,
> sorry - these are my first steps...)
> 
> My Code:
> 
> Start.java:
> =
> public class Start{
>   
>   public Date getCurrentTime() { 
>   return new Date(); 
>   }
> }
> 
> Start.tml:
> ==
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>  The current time is: ${currentTime}. 
> 
> 
> 
> Layout.java:
> ===
> @IncludeStylesheet("context:memory.css")
> public class Layout {
> 
> }
> 
> Layout.tml:
> =
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> Fionas Memory
> 
> 
> Fionas Memory
>
> 
> 
> ===
> 
> Has anybody an idea where to look for the error? Layout.java is empty: is
> that correct?
> thanks very much for your help,
> Juliane
> ___
> EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
> Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--- original Nachricht Ende 


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



T5: unable to resolve 'Layout' (see Article: Tapestry for Nonbelievers)

2008-05-15 Thread jg433
Hi,

I am a Java Programmer just starting to study Tapestry 5.
I tried to follow the example in the article "Tapestry for Nonbelievers" where 
a Layout.tml is used to integrate page specific content.
I keep getting a "java.lang.IllegalArgumentException: Unable to resolve 
'Layout' to a component class name. "
And I do not know why this is. (Probably something very easy and stupid, sorry 
- these are my first steps...)

My Code:

Start.java:
=
public class Start{

public Date getCurrentTime() { 
return new Date(); 
}
}

Start.tml:
==
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
 The current time is: ${currentTime}. 



Layout.java:
===
@IncludeStylesheet("context:memory.css")
public class Layout {

}

Layout.tml:
=
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Fionas Memory


Fionas Memory
 


===

Has anybody an idea where to look for the error? Layout.java is empty: is that 
correct?
thanks very much for your help,
Juliane
___
EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED]


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



Re: T5 application not responding, blocked at PerThreadServiceCreator.createObject

2008-05-15 Thread Martin Grotzke
Hi Howard,

I have upgraded our application to T5.0.11 and deployed it on one tomcat
for testing, this one is running fine now - the issue seems to be solved
with this. Thanx a lot! :)

Though there are still 2 issues introduced with the upgrade to 5.0.11:
- dateField component does not allow specifying format
  
(http://www.nabble.com/T5-dateField-component-does-not-allow-specifying-format-%28in-5.0.11%29-%5E-td17168397.html)
- setting initial sort order for grid in T5.0.11
  
(http://www.nabble.com/T5-setting-initial-sort-order-for-grid-in-T5.0.11-td17165163.html)

AFAICS the first one is represented by issue 
TAPESTRY-2198 which is not yet assigned and has no target fix version.
Can you say what you think regarding this issue?

The second issue seems to be still open, I got no response until now
here on the list. Can you help me with this? Shall I enter an issue for
this one?

For us it's important to be able to tell our customers what's going on,
that we can give a timeline and provide orientation :)

Thanx for your help,
cheers,
Martin


On Fri, 2008-05-09 at 18:08 -0700, Howard Lewis Ship wrote:
> Perhaps an upgrade to 5.0.11 rather than the .12-SNAPSHOT?  I'm not
> sure how much changed between .10 and .11 API-wise.  It already seems
> like ancient history to me :-)
> 
> On Fri, May 9, 2008 at 5:56 PM, Martin Grotzke
> <[EMAIL PROTECTED]> wrote:
> > On Fri, 2008-05-09 at 17:43 -0700, Howard Lewis Ship wrote:
> >> The problem with snapshots is that it makes it that much harder to
> >> figure out if this is a bug that's been fixed, or something new.
> > Completely true. I already search jira for fixes in 5.0.10 to 5.0.12
> > that might be related to this but found none.
> >
> > As there are changes in the API it's not that easy for us to upgrade to
> > 5.0.12, and IIRC there were issues with the calendar/date-component.
> > Then we also need to have testing cycles with the customers.
> > I'm also thinking about upgrading because then it's easier to track this
> > down, but it will take about 2 weeks until we could shift our
> > application with the latest T5 to production.
> >
> > That's why I asked directly on this list...
> >
> > Cheers,
> > Martin
> >
> >
> >>
> >> On Fri, May 9, 2008 at 5:39 PM, Martin Grotzke
> >> <[EMAIL PROTECTED]> wrote:
> >> > Hi,
> >> >
> >> > yesterday we deployed our application upgraded from T5.0.5 to 5.0.10
> >> > (SNAPSHOT 2008-02-11) on the production system, now it hangs from time
> >> > to time with several thread blocked at
> >> > PerThreadServiceCreator.createObject.
> >> >
> >> > We started with default settings for thetapestry.page-pool.hard-limit
> >> > and soft-limit (20, 5). With this we got a page pool exausted error on
> >> > one tomcat after some time, while others were fine with this.
> >> >
> >> > Then we increased the soft-limit to 20 and the hard-limit to 100, which
> >> > also produced this error, but not always. Even without the pool exausted
> >> > error the application hung and did not respond for some minutes (about 3
> >> > minutes).
> >> >
> >> > Now we have the hard-limit set to 150, which does not produce any pool
> >> > exausted errors, but still the application hangs.
> >> >
> >> > All thread dumps that are created when the application is not responding
> >> > show blocked threads at PerThreadServiceCreator.createObject, and I
> >> > cannot see anything else that might cause this behaviour.
> >> > Looking at jconsole when the app is not responding shows an increasing
> >> > number of threads, and an increasing amount of used memory (e.g. from
> >> > 500M to 800M), CPU is very low all the time.
> >> >
> >> > I have uploaded a complete threaddump at http://senduit.com/a7afc7, an
> >> > aggregated version of this can be found at http://senduit.com/0d3f16.
> >> >
> >> > We're running java-1.6.0_02, T5.0.10-SNAPSHOT and Tomcat 6.
> >> >
> >> > Has anybody an idea what might be the reason for this behavior?
> >> >
> >> > Thanx a lot for your help,
> >> > cheers,
> >> > Martin
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
> 
> 
> 


signature.asc
Description: This is a digitally signed message part


Re: Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield:

2008-05-15 Thread Leon Derks

Hi Nicholas,

Indeed, that was it.

Thanks!
Leon

nicholas Krul wrote:

${X} is a one way output...

it uses the prop: binding by default... remove the EL-style ${} and it
should work.

On Thu, May 15, 2008 at 2:24 PM, Leon Derks <[EMAIL PROTECTED]> wrote:

  

I get this error:

Failure writing parameter 'value' of component
characteristic/Edit:nominaltextfield: Binding
[EMAIL PROTECTED] is
read-only.

I have the corresponding getter / setter for the property.

What am I doing wrong?

Java Page:

private String nominalDescription;

public String getNominalDescription() {
  String description =
getDescriptionForValueType(CharacteristicValueType.Nominal);
  if(description != null) {
  return description;
  }
  return nominalDescription;
}

public void setNominalDescription(String nominalDescription) {
  this.nominalDescription = nominalDescription;
}

Webpage:



-
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: Acegi integration

2008-05-15 Thread Stephane Decleire
I have just made the integration of Acegi in my T5 application but after 
each authentication attempt, i get the following error :


Error invoking service builder method 
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource, 
ThreadCleanupHub) (at HibernateModule.java:74) (for service 
'HibernateSessionManager'): No service implements the interface 
org.apache.tapestry.ioc.services.ThreadCleanupHub.

any idea ?

Stephane


Re: Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield:

2008-05-15 Thread nicholas Krul
${X} is a one way output...

it uses the prop: binding by default... remove the EL-style ${} and it
should work.

On Thu, May 15, 2008 at 2:24 PM, Leon Derks <[EMAIL PROTECTED]> wrote:

> I get this error:
>
> Failure writing parameter 'value' of component
> characteristic/Edit:nominaltextfield: Binding
> [EMAIL PROTECTED] is
> read-only.
>
> I have the corresponding getter / setter for the property.
>
> What am I doing wrong?
>
> Java Page:
>
> private String nominalDescription;
>
> public String getNominalDescription() {
>   String description =
> getDescriptionForValueType(CharacteristicValueType.Nominal);
>   if(description != null) {
>   return description;
>   }
>   return nominalDescription;
> }
>
> public void setNominalDescription(String nominalDescription) {
>   this.nominalDescription = nominalDescription;
> }
>
> Webpage:
>  value="${nominalDescription}"/>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Failure writing parameter 'value' of component characteristic/Edit:nominaltextfield:

2008-05-15 Thread Leon Derks

I get this error:

Failure writing parameter 'value' of component 
characteristic/Edit:nominaltextfield: Binding 
[EMAIL PROTECTED] 
is read-only.


I have the corresponding getter / setter for the property.

What am I doing wrong?

Java Page:

private String nominalDescription;

public String getNominalDescription() {
   String description = 
getDescriptionForValueType(CharacteristicValueType.Nominal);

   if(description != null) {
   return description;
   }
   return nominalDescription;
}

public void setNominalDescription(String nominalDescription) {
   this.nominalDescription = nominalDescription;
}

Webpage:
value="${nominalDescription}"/>



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



Re: Question about update T5 from 5.0.10 to 5.0.11

2008-05-15 Thread Kristian Marinkovic
if you already have an existing maven project just change 
the tapestry version in your pom.xml file to 5.0.11

g,
kris





"nicholas Krul" <[EMAIL PROTECTED]> 
15.05.2008 15:00
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: Question about update T5 from 5.0.10 to 5.0.11






Hi

Alex's book is based on 5.0.5 from memory...
I started at 5.0.10 and upgraded to 5.0.11 (early).

With the latest maven, this command worked for me:
mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.11 
-DgroupId=koncept
-DartifactId=test1 -DpackageName=koncept.test1

It _is_ elsewhere in the archives (can never find it), and I _think_ its 
on
the wiki.

I don't use maven, but I _think_ that you can just update the pom in the
project...
I just replace all the jar files in the project.

hope it helps.

--nK

On Thu, May 15, 2008 at 1:52 PM, amebaliu <[EMAIL PROTECTED]> wrote:

>
> Hi, I have post some question recently, and got some replies. first of 
all,
> thanks all the people who replied my post before. Thank you guys a lot.
> Now,
> I have a questions about how can I update the T5 from 5.0.10 to 5.0.11? 
I
> install the Maven follow the instructions in a book named Tapestry 5,
> Building web applications.  which is based on T5 5.0.10. I am new to
> Tapestry, therefore, I am not really sure how can I update it, I am 
already
> update the maven to 2.0.9, howevery, everytime I create the new project,
> it's still based on 5.0.10. I have downloaded the T5 5.0.11 from 
tapestry
> website, Could anybody tell me how to update it by command line or
> manually?
> Thanks a lot.
>
> :-D
>
>
> --
> View this message in context:
> 
http://www.nabble.com/Question-about-update-T5-from-5.0.10-to-5.0.11-tp17252549p17252549.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: Question about update T5 from 5.0.10 to 5.0.11

2008-05-15 Thread Chris Lewis
It sounds like you are using the old (5.0.10) maven archetype. What
exactly are you using to create the project (the exact command)?

amebaliu wrote:
> Hi, I have post some question recently, and got some replies. first of all,
> thanks all the people who replied my post before. Thank you guys a lot. Now,
> I have a questions about how can I update the T5 from 5.0.10 to 5.0.11? I
> install the Maven follow the instructions in a book named Tapestry 5,
> Building web applications.  which is based on T5 5.0.10. I am new to
> Tapestry, therefore, I am not really sure how can I update it, I am already
> update the maven to 2.0.9, howevery, everytime I create the new project,
> it's still based on 5.0.10. I have downloaded the T5 5.0.11 from tapestry
> website, Could anybody tell me how to update it by command line or manually?
> Thanks a lot. 
>
> :-D
>
>
>   

-- 
http://thegodcode.net


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



Re: Question about update T5 from 5.0.10 to 5.0.11

2008-05-15 Thread nicholas Krul
Hi

Alex's book is based on 5.0.5 from memory...
I started at 5.0.10 and upgraded to 5.0.11 (early).

With the latest maven, this command worked for me:
mvn archetype:create -DarchetypeGroupId=org.apache.tapestry
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.11 -DgroupId=koncept
-DartifactId=test1 -DpackageName=koncept.test1

It _is_ elsewhere in the archives (can never find it), and I _think_ its on
the wiki.

I don't use maven, but I _think_ that you can just update the pom in the
project...
I just replace all the jar files in the project.

hope it helps.

--nK

On Thu, May 15, 2008 at 1:52 PM, amebaliu <[EMAIL PROTECTED]> wrote:

>
> Hi, I have post some question recently, and got some replies. first of all,
> thanks all the people who replied my post before. Thank you guys a lot.
> Now,
> I have a questions about how can I update the T5 from 5.0.10 to 5.0.11? I
> install the Maven follow the instructions in a book named Tapestry 5,
> Building web applications.  which is based on T5 5.0.10. I am new to
> Tapestry, therefore, I am not really sure how can I update it, I am already
> update the maven to 2.0.9, howevery, everytime I create the new project,
> it's still based on 5.0.10. I have downloaded the T5 5.0.11 from tapestry
> website, Could anybody tell me how to update it by command line or
> manually?
> Thanks a lot.
>
> :-D
>
>
> --
> View this message in context:
> http://www.nabble.com/Question-about-update-T5-from-5.0.10-to-5.0.11-tp17252549p17252549.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]
>
>


Question about update T5 from 5.0.10 to 5.0.11

2008-05-15 Thread amebaliu

Hi, I have post some question recently, and got some replies. first of all,
thanks all the people who replied my post before. Thank you guys a lot. Now,
I have a questions about how can I update the T5 from 5.0.10 to 5.0.11? I
install the Maven follow the instructions in a book named Tapestry 5,
Building web applications.  which is based on T5 5.0.10. I am new to
Tapestry, therefore, I am not really sure how can I update it, I am already
update the maven to 2.0.9, howevery, everytime I create the new project,
it's still based on 5.0.10. I have downloaded the T5 5.0.11 from tapestry
website, Could anybody tell me how to update it by command line or manually?
Thanks a lot. 

:-D


-- 
View this message in context: 
http://www.nabble.com/Question-about-update-T5-from-5.0.10-to-5.0.11-tp17252549p17252549.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]: T5 website and validation feedback

2008-05-15 Thread babbler
One obvious advantage of having ajaxified client-side validation is that the 
server-side validation and client-side validation will look exactly the 
same!


- Original Message - 
From: "babbler" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, May 15, 2008 5:08 AM
Subject: [ANN]: T5 website and validation feedback


I've been working on a T5 and Flash based website - building a version of 
the good old acrophobia game. You can check it out at www.acrobabble.com. 
T5 is shaping up to be a great framework. However, I do have some feedback 
on the form validation mechanism. As you can see from the acrobabble 
website, if you just tab through the login fields, you get broken error 
messages because of the div being too small where the blurbs are created. 
The framework will never be able to properly guess where the blurb should 
be inserted and as a consequence wrapped blurbs like I'm getting are 
inevitable.


I really wish T5 would support validation like is seen on Yahoo mail's 
sign up page. Go to yahoo.com and click on Sign Up for mail. The fields 
seem to have various "tags" associated with them:


- Displayed when the field gets the focus
- Displayed when the field loses focus and validation occurs.

I saw a few emails that referred to validation using onBlur. I think every 
field should be able to drive certain events:


onFocus: This should allow you to specify one or more components (say by 
Annotation in the getter for the field) that should either have their css 
changed or be ajax-updated when the field gets focus.
onBlur: Fire validations and allow the developer to specify in which html 
tag (div or span, etc.) the output of the validation should be displayed 
and optionally additional components that could have their css class 
changed.


This will make for an extremely powerful and flexible validation framework 
and will get us away from the blurbs (which can be very annoying to use as 
they cover up the field). My humble opinion is that the above change is a 
necessity given the other superlatives that T5 boasts (hint: Howard - 
appeal to ego! :)


-
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 + JSON + key name

2008-05-15 Thread Leon Derks

Hi Chris,

I just noticed that the options in the select are initialy not ordered.
But when I persist the options (groups) in my session data, the option 
are ordered after I have clicked the search button and submitted the form.

Then refreshed page, contains a select with ordered group options.

Do you have an explanation for this behaviour?

Leon


Leon Derks wrote:

Thanks Chris,

That worked.
The only thing is that the order of groups in the select is gone.
I know for sure I put them in the correct order in the java jsonObject.
I think the var jsonObject = response.evalJSON(); or the for(var key 
in jsonObject) messes up the order.

Is there a way to solve this?

For the ones interested, I fill my select box now in this way:

Java Page:
@OnEvent(component = "productSelect", value = "change")
   JSONObject onProductSelectChanged(String value) {
   ProductCategory category = 
ProductCategory.getProductCategoryByName(value);

   groups = characteristicDAO.findGroupsByProductCategory(category);
   JSONObject jsonObject = new JSONObject();
   for (CharacteristicGroup group : groups) {
   Long id = group.getId();
   jsonObject.put(id.toString(), group.getName());
   }
   return jsonObject;
   }

javascript:
function productSelectChanged(response) {
   var groupSelect = $('groupSelect');
   clearSelectOption(groupSelect);
 var jsonObject = response.evalJSON();
   for(var key in jsonObject) {
   addSelectOption(groupSelect, jsonObject[key], key, false);
   }
}

Chris Lewis wrote:

Try:

for (var i in object) {}

Where object would be your json object.

Leon Derks wrote:
 

Hi Sven,

I only see that they get the value by using the key name.
For example this:

|var data = '{ "name": "Violet", "occupation": "character" 
}'.evalJSON();

data.name; //prints Violet.
|

But in my case, I don't know the key name, so I can't get the value.
Is there a way to get the key names of a JSON Object?
For example something like this:
|
data.keys; //returns {name, occupation}|

|
|

Leon


Sven Homburg wrote:
   

http://www.prototypejs.org/learn/json

2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

 
 

Hello

I have a  JSON object like this:

JSONObject obj = new JSONObject();

obj.put(entity.getId(), entity.getName());

But how can I get the value from my json object in javascript, if I
don't
know the key name?

Is there a way to get the key name(s) from a json object in 
javascript?


Leon

-
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 + JSON + key name

2008-05-15 Thread Leon Derks

Thanks Chris,

That worked.
The only thing is that the order of groups in the select is gone.
I know for sure I put them in the correct order in the java jsonObject.
I think the var jsonObject = response.evalJSON(); or the for(var key in 
jsonObject) messes up the order.

Is there a way to solve this?

For the ones interested, I fill my select box now in this way:

Java Page:
@OnEvent(component = "productSelect", value = "change")
   JSONObject onProductSelectChanged(String value) {
   ProductCategory category = 
ProductCategory.getProductCategoryByName(value);

   groups = characteristicDAO.findGroupsByProductCategory(category);
   JSONObject jsonObject = new JSONObject();
   for (CharacteristicGroup group : groups) {
   Long id = group.getId();
   jsonObject.put(id.toString(), group.getName());
   }
   return jsonObject;
   }

javascript:
function productSelectChanged(response) {
   var groupSelect = $('groupSelect');
   clearSelectOption(groupSelect);
  
   var jsonObject = response.evalJSON();

   for(var key in jsonObject) {
   addSelectOption(groupSelect, jsonObject[key], key, false);
   }
}

Chris Lewis wrote:

Try:

for (var i in object) {}

Where object would be your json object.

Leon Derks wrote:
  

Hi Sven,

I only see that they get the value by using the key name.
For example this:

|var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
data.name; //prints Violet.
|

But in my case, I don't know the key name, so I can't get the value.
Is there a way to get the key names of a JSON Object?
For example something like this:
|
data.keys; //returns {name, occupation}|

|
|

Leon


Sven Homburg wrote:


http://www.prototypejs.org/learn/json

2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

 
  

Hello

I have a  JSON object like this:

JSONObject obj = new JSONObject();

obj.put(entity.getId(), entity.getName());

But how can I get the value from my json object in javascript, if I
don't
know the key name?

Is there a way to get the key name(s) from a json object in javascript?

Leon

-
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 + JSON + key name

2008-05-15 Thread Chris Lewis
Try:

for (var i in object) {}

Where object would be your json object.

Leon Derks wrote:
> Hi Sven,
>
> I only see that they get the value by using the key name.
> For example this:
>
> |var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
> data.name; //prints Violet.
> |
>
> But in my case, I don't know the key name, so I can't get the value.
> Is there a way to get the key names of a JSON Object?
> For example something like this:
> |
> data.keys; //returns {name, occupation}|
>
> |
> |
>
> Leon
>
>
> Sven Homburg wrote:
>> http://www.prototypejs.org/learn/json
>>
>> 2008/5/15 Leon Derks <[EMAIL PROTECTED]>:
>>
>>  
>>> Hello
>>>
>>> I have a  JSON object like this:
>>>
>>> JSONObject obj = new JSONObject();
>>>
>>> obj.put(entity.getId(), entity.getName());
>>>
>>> But how can I get the value from my json object in javascript, if I
>>> don't
>>> know the key name?
>>>
>>> Is there a way to get the key name(s) from a json object in javascript?
>>>
>>> Leon
>>>
>>> -
>>> 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]
>
>

-- 
http://thegodcode.net


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



Re: T5 + JSON + key name

2008-05-15 Thread Sven Homburg
i have not tried before:

var myHash = $H(transport.responseText)
var keyArray = myHash.keys()


2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

> Hi Sven,
>
> I only see that they get the value by using the key name.
> For example this:
>
> |var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
> data.name; //prints Violet.
> |
>
> But in my case, I don't know the key name, so I can't get the value.
> Is there a way to get the key names of a JSON Object?
> For example something like this:
> |
> data.keys; //returns {name, occupation}|
>
> |
> |
>
> Leon
>
>
>
> Sven Homburg wrote:
>
>> http://www.prototypejs.org/learn/json
>>
>> 2008/5/15 Leon Derks <[EMAIL PROTECTED]>:
>>
>>
>>
>>> Hello
>>>
>>> I have a  JSON object like this:
>>>
>>> JSONObject obj = new JSONObject();
>>>
>>> obj.put(entity.getId(), entity.getName());
>>>
>>> But how can I get the value from my json object in javascript, if I don't
>>> know the key name?
>>>
>>> Is there a way to get the key name(s) from a json object in javascript?
>>>
>>> Leon
>>>
>>> -
>>> 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]
>
>


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


Re: T5 + JSON + key name

2008-05-15 Thread Leon Derks

Hi Sven,

I only see that they get the value by using the key name.
For example this:

|var data = '{ "name": "Violet", "occupation": "character" }'.evalJSON();
data.name; //prints Violet.
|

But in my case, I don't know the key name, so I can't get the value.
Is there a way to get the key names of a JSON Object?
For example something like this:
|
data.keys; //returns {name, occupation}|

|
|

Leon


Sven Homburg wrote:

http://www.prototypejs.org/learn/json

2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

  

Hello

I have a  JSON object like this:

JSONObject obj = new JSONObject();

obj.put(entity.getId(), entity.getName());

But how can I get the value from my json object in javascript, if I don't
know the key name?

Is there a way to get the key name(s) from a json object in javascript?

Leon

-
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: JSONArray + fillling

2008-05-15 Thread Sven Homburg
http://www.prototypejs.org/learn/json

2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

> Thanks,
>
> How can I loop through the jsonObjects in javascript?
>
> I have now something like this:
>
> array.each(function(item) {
>  item[0]  item[1]
>  //fill options with the item.
> }
>
> But I get undefined text in for my select option values.
> The number of items in my select is correct, but the key-value is set to
>  "undefined"
>
> Leon
>
>
> Lance Java wrote:
>
>> JSONArray options = new JSONArray();
>> for(Group group : List groups) {
>>   JSONObject obj = new JSONObject();
>>   obj.put(group.getId, group.getName());
>>   options.put(obj);
>> }
>>
>> Cheers,
>> Lance.
>>
>> 2008/5/14 Leon Derks <[EMAIL PROTECTED]>:
>>
>>
>>
>>> Can you give me an example of that?
>>>
>>> Leon
>>>
>>>
>>> Lance Java wrote:
>>>
>>>
>>>
 You want a JSONObject not a JSONArray
 http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html

 Cheers,
 Lance.

 2008/5/14 Leon Derks <[EMAIL PROTECTED]>:





> Hello
>
> I found this example:
>
> new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'],
> ['d',
> 'value d']]"));
>
> The JSONArray contains information for my select box, with a value -
> label
> pair.
>
> But in my case, I want to make a new JSONArray filled with properties
> from
> my List of Groups.
>
> So for example something like this:
>
> for(Group group : List groups) {
>  jsonArray.put(group.getId, group.getName());
> }
>
> The problem is that a put operation only allows put(Object value) and
> put(int index, Object value);
>
> How can I add the group.getId and group.getName() as a value-label pair
> to
> the JSONArray?
>
> Leon
>
>
> -
> 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]
>
>


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


Re: T5 + JSON + key name

2008-05-15 Thread Sven Homburg
http://www.prototypejs.org/learn/json

2008/5/15 Leon Derks <[EMAIL PROTECTED]>:

> Hello
>
> I have a  JSON object like this:
>
> JSONObject obj = new JSONObject();
>
> obj.put(entity.getId(), entity.getName());
>
> But how can I get the value from my json object in javascript, if I don't
> know the key name?
>
> Is there a way to get the key name(s) from a json object in javascript?
>
> Leon
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


T5 + JSON + key name

2008-05-15 Thread Leon Derks

Hello

I have a  JSON object like this:

JSONObject obj = new JSONObject();

obj.put(entity.getId(), entity.getName());

But how can I get the value from my json object in javascript, if I 
don't know the key name?


Is there a way to get the key name(s) from a json object in javascript?

Leon

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



Re: Question about property annoation

2008-05-15 Thread amebaliu

Just wanna ask, how to update the mvn repository??  Thanks :-{

Jakob Keres wrote:
> 
> 
>> 
>> @Property
>> private String message;   <--- does anybody know the reason y i can
>> not
>> include the @Property ?
>> I can find @Inject and all other annoations.. but not this one.. 
> 
> I had the same issue until I updated the mvn repository. Somehow old
> version or something like that.
> 
> Jakob 
> -- 
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-property-annoation-tp17226891p17249091.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]



[ANN]: T5 website and validation feedback

2008-05-15 Thread babbler
I've been working on a T5 and Flash based website - building a version of 
the good old acrophobia game. You can check it out at www.acrobabble.com. T5 
is shaping up to be a great framework. However, I do have some feedback on 
the form validation mechanism. As you can see from the acrobabble website, 
if you just tab through the login fields, you get broken error messages 
because of the div being too small where the blurbs are created. The 
framework will never be able to properly guess where the blurb should be 
inserted and as a consequence wrapped blurbs like I'm getting are 
inevitable.


I really wish T5 would support validation like is seen on Yahoo mail's sign 
up page. Go to yahoo.com and click on Sign Up for mail. The fields seem to 
have various "tags" associated with them:


- Displayed when the field gets the focus
- Displayed when the field loses focus and validation occurs.

I saw a few emails that referred to validation using onBlur. I think every 
field should be able to drive certain events:


onFocus: This should allow you to specify one or more components (say by 
Annotation in the getter for the field) that should either have their css 
changed or be ajax-updated when the field gets focus.
onBlur: Fire validations and allow the developer to specify in which html 
tag (div or span, etc.) the output of the validation should be displayed and 
optionally additional components that could have their css class changed.


This will make for an extremely powerful and flexible validation framework 
and will get us away from the blurbs (which can be very annoying to use as 
they cover up the field). My humble opinion is that the above change is a 
necessity given the other superlatives that T5 boasts (hint: Howard - appeal 
to ego! :) 



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



Re: T5: JSONArray + fillling

2008-05-15 Thread Leon Derks

Thanks,

How can I loop through the jsonObjects in javascript?

I have now something like this:

array.each(function(item) {
 item[0]  item[1]
 //fill options with the item.
}

But I get undefined text in for my select option values.
The number of items in my select is correct, but the key-value is set 
to  "undefined"


Leon

Lance Java wrote:

JSONArray options = new JSONArray();
for(Group group : List groups) {
   JSONObject obj = new JSONObject();
   obj.put(group.getId, group.getName());
   options.put(obj);
}

Cheers,
Lance.

2008/5/14 Leon Derks <[EMAIL PROTECTED]>:

  

Can you give me an example of that?

Leon


Lance Java wrote:



You want a JSONObject not a JSONArray
http://tapestry.formos.com/nightly/tapestry5/apidocs/index.html

Cheers,
Lance.

2008/5/14 Leon Derks <[EMAIL PROTECTED]>:



  

Hello

I found this example:

new JSONArray("[['a', 'value a'], ['b', 'value b'], ['c', 'value c'],
['d',
'value d']]"));

The JSONArray contains information for my select box, with a value -
label
pair.

But in my case, I want to make a new JSONArray filled with properties
from
my List of Groups.

So for example something like this:

for(Group group : List groups) {
 jsonArray.put(group.getId, group.getName());
}

The problem is that a put operation only allows put(Object value) and
put(int index, Object value);

How can I add the group.getId and group.getName() as a value-label pair
to
the JSONArray?

Leon


-
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: Pallete component behavior

2008-05-15 Thread Peter Stavrinides
I can confirm that I have experienced this as well.

- Original Message -
From: "Robert Zeigler" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Tuesday, 13 May, 2008 8:43:22 PM GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: Pallete component behavior

I've seen the behavior as well, in FF3 beta 5,
Not sure if it's a FF3 bug, or a javascript bug, but given that  
Palette works in Safari 2, 3, IE 5.5, 6, 7,  FF2 (win and mac), and  
opera, my initial reaction when I experienced the bug was to think:  
"Well, I /am/ using a beta browser..."

Robert

On May 13, 2008, at 5/1312:33 PM , Howard Lewis Ship wrote:

> No, and that's odd behavior.  I've tested Palette on FF Mac and FF Win
> and IE Win, so something else is going on.  Any chance you have some
> client-side script attaching to those buttons?
>
> On Tue, May 13, 2008 at 10:28 AM, Sven Homburg <[EMAIL PROTECTED] 
> > wrote:
>> hi there,
>>
>> if i click on the select/deselect button of the palette component
>> a page submit is initiated.
>>
>> is this the wanted behavior ?
>>
>> --
>> with regards
>> Sven Homburg
>> http://tapestry5-components.googlecode.com
>>
>
>
>
> -- 
> 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]


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



Re: T5 hidden field

2008-05-15 Thread Sven Homburg
try this
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Hidden.html

2008/5/15 Filip S. Adamsen <[EMAIL PROTECTED]>:

> I'd really like to have this too.
>
> -Filip
>
>
> On 2008-05-14 16:40, Toby Hobson wrote:
>
>> Is there a reason why there is no component to render a hidden field?
>>
>> Thanks
>>
>> Toby
>>
>>
>>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


T5: editing textfields values from a collection

2008-05-15 Thread Leon Derks
I have an object which contains a collection with a maximum of 3 
descriptions.


I want to be able to edit the descriptions on the same page.

At the moment I loop through the collection and print the descriptions 
in its own textfield on the screen.


But I also want to be able to edit the textfield values, when I click 
the save button.


How can I do this?

Leon



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