You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by david joffrin <da...@hotmail.com> on 2005/03/16 08:53:20 UTC
Country Drop Down
Hi,
Is anyone aware of a country drop down available for Tapestry?
If not, what would be the best practice? database storage and HTML
generation?
(I do not want to redo the world).
Thanks
David Joffrin
www.etradinginnovations.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Component Delegation
Posted by david joffrin <da...@hotmail.com>.
Hi,
I would like to implement a component that changes its HTML implementation
depending on some parameters; a typical example would be a drop down box if
enabled or a text field if disabled.
I thought originally to re-implement both components inside mine, but that
would not be good design pattern practice.
So I have decided to go to the deligation pattern which of course would
simplify everything when I am upgrading to a new version of Tapestry.
However, I am facing (as simple as it sounds) that I do not know how to
instanciate a component inside another one as there is no constructor
available.
Could someone point me to the code in Tapestry that does component
instanciation, please? (try to look for it, but the code is quite large).
Or, some hints to do so.
Thanks.
DvJ
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Country Drop Down
Posted by david joffrin <da...@hotmail.com>.
Thanks a lot... I''ll try it tonight
David Joffrin
MSN: david_joffrin@hotmail.com
>From: Matt Raible <li...@raibledesigns.com>
>Reply-To: "Tapestry users" <ta...@jakarta.apache.org>
>To: "Tapestry users" <ta...@jakarta.apache.org>
>Subject: Re: Country Drop Down
>Date: Wed, 16 Mar 2005 06:34:33 -0800
>
>I created a CountryModel class that's used to populate a drop-down in
>Tapestry. The list of countries is read from the user's locale.
>
>http://tinyurl.com/62s2l
>
>Matt
>
>On Mar 15, 2005, at 11:53 PM, david joffrin wrote:
>
>>Hi,
>>
>>Is anyone aware of a country drop down available for Tapestry?
>>If not, what would be the best practice? database storage and HTML
>>generation?
>>
>>(I do not want to redo the world).
>>
>>Thanks
>>David Joffrin
>>www.etradinginnovations.co.uk
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: External Page Callback
Posted by david joffrin <da...@hotmail.com>.
Any one with some experience?
>
>Hi,
>
>I have the following scenario:
>I have a page (A) that is called via the ExternalLink component with one
>parameter.
>
>On that page, I have a sign-in button! Of course, when I sign in, I'd like
>to go back to my previous page A with the same parameter.
>
>I am using to do that, the ExternalPageCallback interface as follow:
> public void onSignIn(IRequestCycle cycle) {
> SignIn loginPage = (SignIn) cycle.getPage("SignIn");
> loginPage.setCallback(new ExternalCallback(getPage().getPageName(),
> cycle.getServiceParameters()));
> cycle.activate(loginPage);
> }
>
>HOWEVER, the service parameters are empty!!!
>
>Aren't they propagated by default?
>Do I need to rebuild them?
>Is there any state on the service parameters?
>
>Thanks in advance.
>DvJ
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
External Page Callback
Posted by david joffrin <da...@hotmail.com>.
Hi,
I have the following scenario:
I have a page (A) that is called via the ExternalLink component with one
parameter.
On that page, I have a sign-in button! Of course, when I sign in, I'd like
to go back to my previous page A with the same parameter.
I am using to do that, the ExternalPageCallback interface as follow:
public void onSignIn(IRequestCycle cycle) {
SignIn loginPage = (SignIn) cycle.getPage("SignIn");
loginPage.setCallback(new ExternalCallback(getPage().getPageName(),
cycle.getServiceParameters()));
cycle.activate(loginPage);
}
HOWEVER, the service parameters are empty!!!
Aren't they propagated by default?
Do I need to rebuild them?
Is there any state on the service parameters?
Thanks in advance.
DvJ
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Country Drop Down
Posted by Matt Raible <li...@raibledesigns.com>.
I created a CountryModel class that's used to populate a drop-down in
Tapestry. The list of countries is read from the user's locale.
http://tinyurl.com/62s2l
Matt
On Mar 15, 2005, at 11:53 PM, david joffrin wrote:
> Hi,
>
> Is anyone aware of a country drop down available for Tapestry?
> If not, what would be the best practice? database storage and HTML
> generation?
>
> (I do not want to redo the world).
>
> Thanks
> David Joffrin
> www.etradinginnovations.co.uk
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org