Re: Unknown beaneditform save exception

2011-11-03 Thread TG
I used rc2, it gave the same exception. What else I could do? :(

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Unknown-beaneditform-save-exception-tp4956725p4962763.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Requested URL

2011-11-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Nov 2011 21:45:22 -0200, Howard Lewis Ship   
wrote:



I don't think there's a direct way to get what you want ... yet, just
re-assemble from context, path and query parameters.


HttpServletRequest.getRequestURL() is a good start: "Reconstructs the URL  
the client used to make the request. The returned URL contains a protocol,  
server name, port number, and server path, but it does not include query  
string parameters."


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Re: Requested URL

2011-11-03 Thread Howard Lewis Ship
I don't think there's a direct way to get what you want ... yet, just
re-assemble from context, path and query parameters.

On Thu, Nov 3, 2011 at 9:30 AM, Tony Nelson  wrote:
> What is the correct way to get the entire requested URI from a given request?
>
> Request has getContext() and getPath().  getPath() leaves off any parameters, 
> which I could rebuild I suppose.
>
> But is there any way just the URI with all the parameters (and possibly the 
> anchor) as it was originally requested?
>
> Thanks in advance
> Tony Nelson
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: Add attribute to form element

2011-11-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Nov 2011 16:54:33 -0200, Wechsung, Wulf   
wrote:



Hello T5-Users!


Hi!

However, I was wondering if there might be an easier way since the Form  
Component seems to add the 'name' attribute to each input element  
independent of the PropertyEditBlock. Is this done via JavaScript or is  
there as server-side mechanism in place that I could also use?


It's done by the form field components themselves, not by Form, and all  
server-side. You can write a mixin for Form components that uses Tapestry  
DOM rewriting (a.k.a. MarkupWriter and Element) to add the title attribute  
based in matching the id with some message in app.properties, just like  
field labels do.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Add attribute to form element

2011-11-03 Thread Wechsung, Wulf
Hello T5-Users!

I would like to (programmatically) add an attribute to elements on a form. The 
attribute is "title" and I would like the value according to metadata in my 
data model in order to realize a poor man's tooltip.

An example of what the result should look like:



This will yield a browser-native looking tooltip whenever the mouse enters the 
input field and this works in IE and Chrome ( which is good enough for me). I 
want this to assist users in filling out the quite complex forms my app has.

Now, I already have a custom beaneditor as well as a custom propertyeditor so I 
could just implement this through  reimplementing all PropertyEditBlocks.
However, I was wondering if there might be an easier way since the Form 
Component seems to add the 'name' attribute to each input element independent 
of the PropertyEditBlock. Is this done via JavaScript or is there as 
server-side mechanism in place that I could also use?

Thanks and kind Regards,
Wulf




Re: Dynamic Questions on a page - T5

2011-11-03 Thread Thiago H. de Paula Figueiredo
Doesn't pure JavaScript solve your problem? The advantage of FormFragment  
is that Tapestry ignores fields inside hidden FormFragments.


On Thu, 03 Nov 2011 15:35:21 -0200, captain_rhino  
 wrote:


That would definitely seem to be the way forward.  When formfragments  
become

visible is it possible to use different Scriptilicious or Jquery effects
like fade-in or slide down to make the form fragment visible and hidden  
and
if so how do you integrate this.  I guess it may have something to do  
with

the show attribute on the component buts its not obvious to me how to use
this?  ANy suggestions anyone please?


--
View this message in context:  
http://tapestry.1045711.n5.nabble.com/Dynamic-Questions-on-a-page-T5-tp4960945p4961778.html

Sent from the Tapestry - User mailing list archive at Nabble.com.

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




--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
Consultor, desenvolvedor e instrutor em Java, Tapestry e Hibernate
http://www.arsmachina.com.br

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



Re: Dynamic Questions on a page - T5

2011-11-03 Thread captain_rhino
That would definitely seem to be the way forward.  When formfragments become
visible is it possible to use different Scriptilicious or Jquery effects
like fade-in or slide down to make the form fragment visible and hidden and
if so how do you integrate this.  I guess it may have something to do with
the show attribute on the component buts its not obvious to me how to use
this?  ANy suggestions anyone please?


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-Questions-on-a-page-T5-tp4960945p4961778.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Bob Harner
I don't think any of the mixins ever had examples. Here are the old pages:

http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/Autocomplete.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/DiscardBody.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/NotEmpty.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/RenderClientId.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/RenderDisabled.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/RenderInformals.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/RenderNotification.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/TriggerFragment.html

and likewise for the others you mentioned:

http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/components/AddRowLink.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/components/RemoveRowLink.html
http://tapestry.apache.org/5.2/tapestry-core/ref/org/apache/tapestry5/corelib/components/Unless.html

Of course, most of them probably *should* have examples...

On Thu, Nov 3, 2011 at 11:22 AM, Tony Nelson  wrote:
> Radio actually looks good.
>
> I didn't go thru them all, but none of the mixins have any example usage.  
> AddRowLink, RemoveRowLink, Unless..
>
>
>
>
> On Nov 3, 2011, at 10:39 AM, Emmanuel DEMEY wrote:
>
>> Hi Tony
>>
>> Which exemples do you talk about ? We still have the one define in the xdoc
>> file :
>> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html
>>
>> 2011/11/3 Tony Nelson 
>>
>>> Is there any way to get the example usages back?  For folks still feeling
>>> their way around, I found them invaluable.
>>>
>>>
>>> On Nov 2, 2011, at 10:35 PM, Steve Eynon wrote:
>>>
 I obviously like the Component Reference, for as Bob says,

> it includes all tapestry components, mixins and pages

 It gives more of a complete overview (and blends in better with the
 rest of documentation).

 Steve.

 On 3 November 2011 08:58, Bob Harner  wrote:
> For now at least, I have the Documentation page pointing to
> http://tapestry.apache.org/component-reference.html, because it
> includes all tapestry components, mixins and pages, not just the core
> components.
>
> Eventually the component search app I'm slowly working on
> (https://github.com/bobharner/Tapestry-finder/wiki) could replace that
> http://tapestry.apache.org/component-reference.html page I guess.
>
> On Wed, Nov 2, 2011 at 8:02 PM, Thiago H. de Paula Figueiredo
>  wrote:
>> On Wed, 02 Nov 2011 21:55:31 -0200, Bob Harner 
>>> wrote:
>>
>>> There are currently two candidates to directly replace the old
>>> Component Reference:
>>>
>>> 1) The Javadoc version (nice and compact):
>>>
>>>
>>> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/package-summary.html
>>>
>>> 2) Categorized and manually maintained:
>>> http://tapestry.apache.org/component-reference.html
>>>
>>> What do you all think is the best one to link to? I suppose each
>>> serves a purpose.
>>
>> I'd link both, or at least make the package summary link to the
>>> caregorized
>> one and vice-versa.
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant,
>>> developer, and
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>
>>
>> --
>> Emmanuel DEMEY
>> Ingénieur Etude et Développement
>> ATOS Worldline
>> +33 (0)6 47 47 42 02
>> demey.emman...@gmail.com
>> http://emmanueldemey.fr
>>
>> Twitter : @gillespie59
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-
To unsubscribe, e-mail: users

Requested URL

2011-11-03 Thread Tony Nelson
What is the correct way to get the entire requested URI from a given request?

Request has getContext() and getPath().  getPath() leaves off any parameters, 
which I could rebuild I suppose.

But is there any way just the URI with all the parameters (and possibly the 
anchor) as it was originally requested?

Thanks in advance
Tony Nelson
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Tony Nelson
Radio actually looks good.

I didn't go thru them all, but none of the mixins have any example usage.  
AddRowLink, RemoveRowLink, Unless.. 




On Nov 3, 2011, at 10:39 AM, Emmanuel DEMEY wrote:

> Hi Tony
> 
> Which exemples do you talk about ? We still have the one define in the xdoc
> file :
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html
> 
> 2011/11/3 Tony Nelson 
> 
>> Is there any way to get the example usages back?  For folks still feeling
>> their way around, I found them invaluable.
>> 
>> 
>> On Nov 2, 2011, at 10:35 PM, Steve Eynon wrote:
>> 
>>> I obviously like the Component Reference, for as Bob says,
>>> 
 it includes all tapestry components, mixins and pages
>>> 
>>> It gives more of a complete overview (and blends in better with the
>>> rest of documentation).
>>> 
>>> Steve.
>>> 
>>> On 3 November 2011 08:58, Bob Harner  wrote:
 For now at least, I have the Documentation page pointing to
 http://tapestry.apache.org/component-reference.html, because it
 includes all tapestry components, mixins and pages, not just the core
 components.
 
 Eventually the component search app I'm slowly working on
 (https://github.com/bobharner/Tapestry-finder/wiki) could replace that
 http://tapestry.apache.org/component-reference.html page I guess.
 
 On Wed, Nov 2, 2011 at 8:02 PM, Thiago H. de Paula Figueiredo
  wrote:
> On Wed, 02 Nov 2011 21:55:31 -0200, Bob Harner 
>> wrote:
> 
>> There are currently two candidates to directly replace the old
>> Component Reference:
>> 
>> 1) The Javadoc version (nice and compact):
>> 
>> 
>> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/package-summary.html
>> 
>> 2) Categorized and manually maintained:
>> http://tapestry.apache.org/component-reference.html
>> 
>> What do you all think is the best one to link to? I suppose each
>> serves a purpose.
> 
> I'd link both, or at least make the package summary link to the
>> caregorized
> one and vice-versa.
> 
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant,
>> developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Emmanuel DEMEY
> Ingénieur Etude et Développement
> ATOS Worldline
> +33 (0)6 47 47 42 02
> demey.emman...@gmail.com
> http://emmanueldemey.fr
> 
> Twitter : @gillespie59


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



Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Emmanuel DEMEY
Hi Tony

Which exemples do you talk about ? We still have the one define in the xdoc
file :
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Radio.html

2011/11/3 Tony Nelson 

> Is there any way to get the example usages back?  For folks still feeling
> their way around, I found them invaluable.
>
>
> On Nov 2, 2011, at 10:35 PM, Steve Eynon wrote:
>
> > I obviously like the Component Reference, for as Bob says,
> >
> >> it includes all tapestry components, mixins and pages
> >
> > It gives more of a complete overview (and blends in better with the
> > rest of documentation).
> >
> > Steve.
> >
> > On 3 November 2011 08:58, Bob Harner  wrote:
> >> For now at least, I have the Documentation page pointing to
> >> http://tapestry.apache.org/component-reference.html, because it
> >> includes all tapestry components, mixins and pages, not just the core
> >> components.
> >>
> >> Eventually the component search app I'm slowly working on
> >> (https://github.com/bobharner/Tapestry-finder/wiki) could replace that
> >> http://tapestry.apache.org/component-reference.html page I guess.
> >>
> >> On Wed, Nov 2, 2011 at 8:02 PM, Thiago H. de Paula Figueiredo
> >>  wrote:
> >>> On Wed, 02 Nov 2011 21:55:31 -0200, Bob Harner 
> wrote:
> >>>
>  There are currently two candidates to directly replace the old
>  Component Reference:
> 
>  1) The Javadoc version (nice and compact):
> 
> 
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/package-summary.html
> 
>  2) Categorized and manually maintained:
>  http://tapestry.apache.org/component-reference.html
> 
>  What do you all think is the best one to link to? I suppose each
>  serves a purpose.
> >>>
> >>> I'd link both, or at least make the package summary link to the
> caregorized
> >>> one and vice-versa.
> >>>
> >>> --
> >>> Thiago H. de Paula Figueiredo
> >>> Independent Java, Apache Tapestry 5 and Hibernate consultant,
> developer, and
> >>> instructor
> >>> Owner, Ars Machina Tecnologia da Informação Ltda.
> >>> http://www.arsmachina.com.br
> >>>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr

Twitter : @gillespie59


Re: [T5.3] Wot No Component Reference?

2011-11-03 Thread Tony Nelson
Is there any way to get the example usages back?  For folks still feeling their 
way around, I found them invaluable.


On Nov 2, 2011, at 10:35 PM, Steve Eynon wrote:

> I obviously like the Component Reference, for as Bob says,
> 
>> it includes all tapestry components, mixins and pages
> 
> It gives more of a complete overview (and blends in better with the
> rest of documentation).
> 
> Steve.
> 
> On 3 November 2011 08:58, Bob Harner  wrote:
>> For now at least, I have the Documentation page pointing to
>> http://tapestry.apache.org/component-reference.html, because it
>> includes all tapestry components, mixins and pages, not just the core
>> components.
>> 
>> Eventually the component search app I'm slowly working on
>> (https://github.com/bobharner/Tapestry-finder/wiki) could replace that
>> http://tapestry.apache.org/component-reference.html page I guess.
>> 
>> On Wed, Nov 2, 2011 at 8:02 PM, Thiago H. de Paula Figueiredo
>>  wrote:
>>> On Wed, 02 Nov 2011 21:55:31 -0200, Bob Harner  wrote:
>>> 
 There are currently two candidates to directly replace the old
 Component Reference:
 
 1) The Javadoc version (nice and compact):
 
 http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/package-summary.html
 
 2) Categorized and manually maintained:
 http://tapestry.apache.org/component-reference.html
 
 What do you all think is the best one to link to? I suppose each
 serves a purpose.
>>> 
>>> I'd link both, or at least make the package summary link to the caregorized
>>> one and vice-versa.
>>> 
>>> --
>>> Thiago H. de Paula Figueiredo
>>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
>>> instructor
>>> Owner, Ars Machina Tecnologia da Informação Ltda.
>>> http://www.arsmachina.com.br
>>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


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



[T5.3-rc-3] UTF-8 not working with Tomcat7

2011-11-03 Thread Michael Dukaczewski
Since Tapestry 5.3-beta-28 UTF-8 encoding is not working anymore when I
deploy on Tomcat7. Locally with Jetty everything is ok, but on Tomcat I
only get "?".  Until Tapestry 5.3-beta-27 everything was ok with both
Jetty and Tomcat.

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



Re: Dynamic Questions on a page - T5

2011-11-03 Thread Steve Eynon
I've not done much of this, but I believe you want to look at
FormFragments - there's a demo on JumpStart:

http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/usingformfragments/$N/$N

Steve.



On 3 November 2011 20:41, captain_rhino
 wrote:
> Firstly I'm still relatively new to Tapestry but know the basics but I ama
> reasonaly experienced struts web developer.
>
> I'm looking for a general steer on how to do the following in Tapestry 5.
> Any examples welcome but I'm not stupid or lazy enough to ask for a full
> solution.
>
> For my current project I have to create a page with a dynamic set of
> questions.  Behind the scenes will be a basic tree struture (I already have
> this coded)  that governs what question is next depending on the answer to
> the previous question.  The answer to each question dictates what the next
> question will be.
> The questions will be in the form of drop downs or radio buttons.  There
> could be up to ten questions in order to get a desired outcome.
>
> Any advice is most welcome.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Dynamic-Questions-on-a-page-T5-tp4960945p4960945.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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



Dynamic Questions on a page - T5

2011-11-03 Thread captain_rhino
Firstly I'm still relatively new to Tapestry but know the basics but I ama 
reasonaly experienced struts web developer.

I'm looking for a general steer on how to do the following in Tapestry 5. 
Any examples welcome but I'm not stupid or lazy enough to ask for a full
solution.

For my current project I have to create a page with a dynamic set of
questions.  Behind the scenes will be a basic tree struture (I already have
this coded)  that governs what question is next depending on the answer to
the previous question.  The answer to each question dictates what the next
question will be.  
The questions will be in the form of drop downs or radio buttons.  There
could be up to ten questions in order to get a desired outcome.

Any advice is most welcome.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-Questions-on-a-page-T5-tp4960945p4960945.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: URL handling ..

2011-11-03 Thread Thiago H. de Paula Figueiredo
On Thu, 03 Nov 2011 10:16:40 -0200, Gunnar Eketrapp  
 wrote:



Can page name can be localized in an easy way !?  I would rather not give
swedish names to my page classes unless I have to.
Is it possible to freely name a page. E.g. so that it separates words  
with dashes, e.g. "my-profile"
And finally if it is possible to name a page different from the class  
name should I go for Sweidsh chars in url's or should I not !?
I think wikipedia is using local char's in their url's ... so perhaps  
that is the answer!?


You can do almost whatever you want with URLs: you just need to implement  
the logic for mapping incoming URLs to page classes and activation context  
(if any) and the reverse (pages and activation context to rewritten URLs).


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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



Is there a dynamic search filter for Grids?

2011-11-03 Thread parranz

Hi, 

I have several grids in my application, and was trying to make a generic
filter component for them. My idea was to make something like beaneditform,
so that I have only to indicate the type of object that my grid is painting
(perhaps some fields that I want to include or exclude too), and that a form
with the fileds of this object is rendered plus a "Search" button. The
action of that button would search in the database and reload the source
variable that th grid shows. But I'm having problems because my entities
have "required" validation annotations (for the create and edit pages) and
my component is validating them too. (As base I'm using BeanEditor).

The point is, ¿is there any way to ignore this validations in that case?

Or exists already another solution? Because I've googled and haven't found
anything, but perhaps there is already an implemented solution for that, and
I'm complicating myself ... 

Thanx a lot in advance!!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-there-a-dynamic-search-filter-for-Grids-tp4960913p4960913.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: URL handling ..

2011-11-03 Thread Gunnar Eketrapp
OK thanks to both of you!

Some more questions !

Can page name can be localized in an easy way !?  I would rather not give
swedish names to my page classes unless I have to.

Is it possible to freely name a page. E.g. so that it separates words with
dashes, e.g. "my-profile"

And finally if it is possible to name a page different from the class name
should I go for Sweidsh chars in url's or should I not !?
I think wikipedia is using local char's in their url's ... so perhaps that
is the answer!?

Thanks in advance to all of you!
/Gunnar Eketrapp



2011/11/3 Emmanuel DEMEY 

> Hi,
>
> If you need more informations about LinkTransformer, this post is very
> helpful :
> http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/
>
> Emmanuel
>
> 2011/11/2 Thiago H. de Paula Figueiredo 
>
> > On Wed, 02 Nov 2011 16:53:37 -0200, Gunnar Eketrapp <
> > gunnar.eketr...@gmail.com> wrote:
> >
> >  Hi !
> >>
> >
> > Hi!
> >
> >  *https://utskicket.se/GroupA/**economy/accounting/2011*<
> https://utskicket.se/GroupA/economy/accounting/2011*>
> >> and not
> >> *https://utskicket.se/economy/**accounting/GroupA/2011*<
> https://utskicket.se/economy/accounting/GroupA/2011*>
> >> I just found the LinkTransforner interfaces and I guess that's the way
> to
> >> go.
> >>
> >
> > Yep!
> >
> >
> >  Is there any hidden lurks or should this be easy.
> >>
> >
> > The API use itself should be easy, but sometimes the URL transformation
> > logic itself you'll write is the hard part. You need to correctly
> identify
> > URLs that should be rewritten then rewrite the correctly.
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> > and instructor
> > Owner, Ars Machina Tecnologia da Informação Ltda.
> > http://www.arsmachina.com.br
> >
> > --**--**-
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<
> users-unsubscr...@tapestry.apache.org>
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
> --
> Emmanuel DEMEY
> Ingénieur Etude et Développement
> ATOS Worldline
> +33 (0)6 47 47 42 02
> demey.emman...@gmail.com
> http://emmanueldemey.fr
>
> Twitter : @gillespie59
>



-- 
[Hem: 08-715 59 57, Mobil: 070-991 86 42]
Allévägen 2A, 132 42 Saltsjö-Boo


Re: URL handling ..

2011-11-03 Thread Emmanuel DEMEY
Hi,

If you need more informations about LinkTransformer, this post is very
helpful :
http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/

Emmanuel

2011/11/2 Thiago H. de Paula Figueiredo 

> On Wed, 02 Nov 2011 16:53:37 -0200, Gunnar Eketrapp <
> gunnar.eketr...@gmail.com> wrote:
>
>  Hi !
>>
>
> Hi!
>
>  
> *https://utskicket.se/GroupA/**economy/accounting/2011*
>> and not
>> *https://utskicket.se/economy/**accounting/GroupA/2011*
>> I just found the LinkTransforner interfaces and I guess that's the way to
>> go.
>>
>
> Yep!
>
>
>  Is there any hidden lurks or should this be easy.
>>
>
> The API use itself should be easy, but sometimes the URL transformation
> logic itself you'll write is the hard part. You need to correctly identify
> URLs that should be rewritten then rewrite the correctly.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
ATOS Worldline
+33 (0)6 47 47 42 02
demey.emman...@gmail.com
http://emmanueldemey.fr

Twitter : @gillespie59


Re: error message don't show

2011-11-03 Thread Olga
Hi, Thanks.

Was my error i write not correct component name.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/error-message-don-t-show-tp4959090p4960351.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: [T5.2.6] AfterRender phase method not called on Mixin when attached to Loop component

2011-11-03 Thread Steve Eynon
Here's the Jira to commit against:

https://issues.apache.org/jira/browse/TAP5-1742

I understand why returning false (and effectively cancelling the
render phase, e.g. setupRender) can be advantageous, but I can't think
of a use case where returning true "and" cancelling / short circuiting
the render phase is of any use...? What example am I missing?

Steve.


On 3 November 2011 12:42, Taha Hafeez Siddiqi  wrote:
>
> Sounds good. I will try to do it today
>
> regards
> Taha
>
> On Nov 2, 2011, at 11:13 PM, Steve Eynon wrote:
>
>> Awesome, found it:
>>
>> http://tapestry.apache.org/component-rendering.html#ComponentRendering-ShortCircuiting
>>
>> I was thinking along these lines but wasn't sure what the exact
>> semantics of returning true / false was.
>>
>> Am I right in thinking the Jira would be:
>>
>> AfterRender() in Loop component should not short circuit - return
>> False and Null but not True.
>>
>>
>>
>> On 3 November 2011 01:17, Taha Hafeez Siddiqi  
>> wrote:
>>> Hi Steve
>>>
>>> Short Circuiting
>>> If a method returns a true or false value, this will short circuit 
>>> processing. Other methods within the phase that would ordinarily be invoked 
>>> will not be invoked.
>>>
>>> Most render phase methods should return void, to avoid unintentionally 
>>> short circuiting other methods for the same phase.
>>>
>>>
>>> Seems like it deserves a jira.
>>>
>>> regards
>>> Taha
>>>
>>> On Nov 2, 2011, at 10:02 PM, Steve Eynon wrote:
>>>
 Cheers Taha,

> in the later phases (AfterRender, CleanupRender) the order of executing 
> is reversed.

 Ah, okay (thanks). So the Mixin should be called when Loop afterRender
 method finally returns true ... but I'm not seeing it called at all,
 not even once!?


 P.S. Does this then mean that when using the @MixinAfter, the mixin's
 "later render phase" events occur before the components?


 (By the way, the MixinAfter docs just say, "Normally, mixins occur
 before the component." but mentions nothing of the later phases.)

 Steve.


 On 3 November 2011 00:02, Taha Hafeez Siddiqi  
 wrote:
> in the later phases (AfterRender, CleanupRender) the order of executing 
> is reversed.

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

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

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