Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to allow multiple file uploads?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5063748.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: How to return raw page render result on event link

2011-12-09 Thread Howard Lewis Ship
See 
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/StreamPageContent.html

On Wed, Dec 7, 2011 at 2:17 AM, Guillaume Bodet
 wrote:
> Hi,
>
> I'm using a nice js component called DHTMLX Grid in my T5 application.
> DhtmlxGrid fetched its data in an ajax request. Data is formatted as XML :
> 
>        
>                …
>        
>        
>                …
>        
> 
>
> It is very convenient to use a tapestry page to dynamically create this file.
>
> Right now, I'm providing the grid a page render link to the xml page to fetch 
> its data. It works great but requires extra effort to share state between the 
> containing page and the data page.
>
> What I would like to do is providing the data through an event link in the 
> main page.
>
> Here is what the code could look like :
>
> @InjectPage
> private XMLDataPage dataPage;
>
> @OnEvent("loadGrid")
> StreamResponse provideGridData(){
>        dataPage.setState(state);
>        String result = pageRenderer.renderPageToString(dataPage);
>        return new XMLStreamResponse(result);
> }
>
> Is it feasible ?
>
> Regards
>
> Guillaume
>
>
> -
> 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: AjaxFormLoop not populating values for the newly created form elements after submission

2011-12-09 Thread Geoff Callender
Can you provide the whole code - java and tml?

On 10/12/2011, at 10:42 AM, shaan wrote:

> Not sure if I confused people, the problem is with the ValueEncoder toValue()
> method - it returns a new Promotion() class, whose member values should get
> overridden by the values entered in the web form, but instead it's reading
> 0's (values used to initialize).
> 
> Any help will be really appreciated.
> 
> Thanks,
> Shaan
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-not-populating-values-for-the-newly-created-form-elements-after-submission-tp5054568p5063336.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



Re: ajaxformloop: syncValue is never called for added rows on form submit

2011-12-09 Thread shaan
I've the same problem; what should we store as ID for the newly created rows
so that during form submission the fields get overwritten.

Any help would be appreciated.

Thanks,
Shaan

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ajaxformloop-syncValue-is-never-called-for-added-rows-on-form-submit-tp4581045p5063351.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: AjaxFormLoop not populating values for the newly created form elements after submission

2011-12-09 Thread shaan
Not sure if I confused people, the problem is with the ValueEncoder toValue()
method - it returns a new Promotion() class, whose member values should get
overridden by the values entered in the web form, but instead it's reading
0's (values used to initialize).

Any help will be really appreciated.

Thanks,
Shaan

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/AjaxFormLoop-not-populating-values-for-the-newly-created-form-elements-after-submission-tp5054568p5063336.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: Tapestry 5.3.1-rc1 release

2011-12-09 Thread Massimo Lusetti
On Sat, Dec 10, 2011 at 12:02 AM, Howard Lewis Ship  wrote:

> I don't think this is the right procedure.
>
> We will vote on the final release (the 5.3.1 when its ready).
>
> Unfortunately, we'll need to check the mail archives for the details
> we worked out for how releases operate, but the summary (as followed
> for most of the 5.3 alphas and betas) was:
>
> Just create a new version in the Nexus and tell people about it
>
> Only the final step, where we create a final release, and new
> downloads, that will be directly available from the Apache web site
> (and exported to the central Maven repository) require an actual vote.

Right indeed I have not spoken about votes in any email. Wasn't I enough clear?

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: Tapestry 5.3.1-rc1 release

2011-12-09 Thread Howard Lewis Ship
I don't think this is the right procedure.

We will vote on the final release (the 5.3.1 when its ready).

Unfortunately, we'll need to check the mail archives for the details
we worked out for how releases operate, but the summary (as followed
for most of the 5.3 alphas and betas) was:

Just create a new version in the Nexus and tell people about it

Only the final step, where we create a final release, and new
downloads, that will be directly available from the Apache web site
(and exported to the central Maven repository) require an actual vote.

On Fri, Dec 9, 2011 at 2:46 PM, Massimo Lusetti  wrote:
> I've created and uploaded a release of Tapestry 5.3.1-rc1, ready to betested.
>
> The source and source downloads are uploaded to:
>
> http://people.apache.org/~mlusetti/tapestry-releases/
>
> and the Maven artifacts staged to:
>
> https://repository.apache.org/content/repositories/orgapachetapestry-308/
> This is a maintenance release for Tapestry 5.3 branch so please
> examinethese files to determine if the new release, 5.3.1, is ready.
>
> I've also created a 5.3.1-rc1 tag in
> Subversion:http://svn.apache.org/viewvc/tapestry/tapestry5/tags/5.3.1-rc1/
> Cheers
> --
> Massimo
> http://meridio.blogspot.com
>
> -
> 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



Tapestry 5.3.1-rc1 release

2011-12-09 Thread Massimo Lusetti
I've created and uploaded a release of Tapestry 5.3.1-rc1, ready to betested.

The source and source downloads are uploaded to:

http://people.apache.org/~mlusetti/tapestry-releases/

and the Maven artifacts staged to:

https://repository.apache.org/content/repositories/orgapachetapestry-308/
This is a maintenance release for Tapestry 5.3 branch so please
examinethese files to determine if the new release, 5.3.1, is ready.

I've also created a 5.3.1-rc1 tag in
Subversion:http://svn.apache.org/viewvc/tapestry/tapestry5/tags/5.3.1-rc1/
Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Tapestry 5 Laptop Stickers

2011-12-09 Thread Howard Lewis Ship
Well, I just got back from the post office; I'm finally all caught up
with the laptop stickers ... but I still have a few left, and another
big batch coming from StickerMule.

Do you want a Tapestry 5 Laptop Sticker?  Just follow the directions
here: http://tapestryjava.blogspot.com/2011/08/tapestry-5-laptop-stickers.html

... and don't forget to send me your snail-mail address!

I've gotten some great stories about how people are using Tapestry;
here's the first few:
http://tapestryjava.blogspot.com/2011/10/some-tapestry-stories.html


-- 
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: smarter css

2011-12-09 Thread Howard Lewis Ship
I'm looking forward to integrating these!  I think using the raw
processor may fit into Tapestry's overall lifecycle best.

On Fri, Dec 9, 2011 at 10:48 AM, Alex Objelean  wrote:
> Just a small note:
>
> you can reuse the provided processors (like LessCssProcessor,
> CoffeeScriptProcessor, SassCssProcessor, etc)
> without being forced to use a filter or a maven plugin. The processors
> interface is pretty simple and can be used like this:
>
> new CoffeeScriptProcessor().process(Reader reader, Writer writer);
>
> Similar usage is available for other processors and there are
> http://code.google.com/p/wro4j/wiki/AvailableProcessors plenty of them .
>
> Cheers,
> Alex
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/smarter-css-tp5051068p5062698.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
>



-- 
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: smarter css

2011-12-09 Thread Alex Objelean
Just a small note: 

you can reuse the provided processors (like LessCssProcessor,
CoffeeScriptProcessor, SassCssProcessor, etc)
without being forced to use a filter or a maven plugin. The processors
interface is pretty simple and can be used like this:

new CoffeeScriptProcessor().process(Reader reader, Writer writer);

Similar usage is available for other processors and there are 
http://code.google.com/p/wro4j/wiki/AvailableProcessors plenty of them . 

Cheers,
Alex

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/smarter-css-tp5051068p5062698.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: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo,

thanks much, it's really the link problem; thank you very much for pointing
out

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5062656.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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Robert Zeigler
So it looks like the value is being put into the url, as expected for the 
context of an action link.

Is your onAction method receiving that context?

onActionFromSelect(CayenneDataObject object) {...}
   

If you have your original method:

onActionFromSelect() {...}

then it's not going to do what you expect; either way, the @Parameter object is 
going to be null (unless you explicitly set it in your onAction method). But 
the "right way", you will recover the appropriate object from the method 
parameter.

Robert

On Dec 9, 2011, at 12/99:01 AM , Hugi Thordarson wrote:

>>> (just ignore the commented out code, it's what I'm using to work around the 
>>> problem until I find a solution)
>> 
>> What's the rendered HTML?
> 
> Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will 
> look like this:
> 
> http://localhost:8080/tap/userlist.objectlink2.select/$007b$003cObjectId:User$002c$0020id$003d2$003e$003b$0020committed$003b$0020$005bid$003d$003e2$003b$0020creationDate$003d$003eFri$0020Dec$002002$002015:37:45$0020GMT$00202011$003b$0020registrationOffers$003d$003e$003f$003b$0020address$003d$003eGla$00f0heimar$002010$003b$0020contactName$003d$003eGummi$003b$0020userDocuments$003d$003e$003f$003b$0020registrations$003d$003e$003f$003b$0020visitorID$003d$003e1$003b$0020visitor$003d$003e$003f$003b$0020city$003d$003eReykjav$00edk$003b$0020ipAddress$003d$003e$005d$007d
> 
> But if the ValueEncoder is enabled, it looks like this:
> 
> http://localhost:8080/tap/userlist.objectlink2.select/1503831936-User-2
> 
> 
>> I think the commented-out code is better because it avoids one request (the 
>> redirection).
> 
> Ah, I see. I like the other style better since it allows me to work with the 
> actual page class (passing in variables etc).
> It seems that when I use the LinkSource-method of generating page URLs, 
> variables I set in a page one time "leak" over to the next time the page is 
> opened (for inspecting a different object). I'm still not entirely sure what 
> how the lifecycle of page instances works, so I guess I'm going back to the 
> documentation on that one.
> 
> Thanks you for all your help.
> 
> Cheers,
> - hugi
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


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



Re: pagecatalog still visible in production mode

2011-12-09 Thread Howard Lewis Ship
Just added a FAQ for this; will show up live in a couple of hours.

On Fri, Dec 9, 2011 at 10:08 AM, Howard Lewis Ship  wrote:
> You can do this:
>
>    @Contribute(ClientWhitelist.class)
>    public static void
> overrideWhiteList(OrderedConfiguration
> configuration, @Symbol(SymbolConstants.PRODUCTION_MODE) boolean
> productionMode)
>    {
>        if (productionMode) { configuration.override("LocalhostOnly", null); }
>    }
>
>
> This is kind of neat, and an example of why configuring in code is
> better than XML ... here, only in production mode we override the
> built-in "LocalhostOnly" contribution to null, effectively removing
> it.
>
> On Thu, Dec 8, 2011 at 3:42 PM, Martin Strand
>  wrote:
>> If I'm not mistaken there is no way to remove a contribution.
>> So if a proxy or load balancer were to mess up Request.getRemoteAddr(), you
>> would have to decorate ClientWhitelist to remove the localhost whitelisting,
>> right?
>>
>>
>> On Thu, 08 Dec 2011 16:29:43 +0100, Howard Lewis Ship 
>> wrote:
>>
>>> Try accessing PageCatalog from beyond your localhost  ... localhost is
>>> "white listed", other IP addresses are not on the white list unless
>>> you make a specific contribution.
>>>
>>> See:
>>>
>>>
>>>  http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html
>>>
>>>  http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html
>>>
>>> On Thu, Dec 8, 2011 at 1:24 AM, angelochen 
>>> wrote:

 hi,
 setting production mode to true in 5.3, servicestatus not show details,
 but
 pagecatalog still shows everything.
 what's the easy way to turn this off? Thanks,
 angelo
>>
>>
>> -
>> 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



-- 
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: pagecatalog still visible in production mode

2011-12-09 Thread Howard Lewis Ship
You can do this:

@Contribute(ClientWhitelist.class)
public static void
overrideWhiteList(OrderedConfiguration
configuration, @Symbol(SymbolConstants.PRODUCTION_MODE) boolean
productionMode)
{
if (productionMode) { configuration.override("LocalhostOnly", null); }
}


This is kind of neat, and an example of why configuring in code is
better than XML ... here, only in production mode we override the
built-in "LocalhostOnly" contribution to null, effectively removing
it.

On Thu, Dec 8, 2011 at 3:42 PM, Martin Strand
 wrote:
> If I'm not mistaken there is no way to remove a contribution.
> So if a proxy or load balancer were to mess up Request.getRemoteAddr(), you
> would have to decorate ClientWhitelist to remove the localhost whitelisting,
> right?
>
>
> On Thu, 08 Dec 2011 16:29:43 +0100, Howard Lewis Ship 
> wrote:
>
>> Try accessing PageCatalog from beyond your localhost  ... localhost is
>> "white listed", other IP addresses are not on the white list unless
>> you make a specific contribution.
>>
>> See:
>>
>>
>>  http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/annotations/WhitelistAccessOnly.html
>>
>>  http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/security/ClientWhitelist.html
>>
>> On Thu, Dec 8, 2011 at 1:24 AM, angelochen 
>> wrote:
>>>
>>> hi,
>>> setting production mode to true in 5.3, servicestatus not show details,
>>> but
>>> pagecatalog still shows everything.
>>> what's the easy way to turn this off? Thanks,
>>> angelo
>
>
> -
> 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: Artifacts in T5.3 tree component

2011-12-09 Thread Howard Lewis Ship
On Thu, Dec 8, 2011 at 12:02 PM, Chris Collins  wrote:
> Got no response so I filed TAP5-1782.  Also there doesn't seem to be a 
> version 5.3 available in jira.

That's odd; I just added a bug and typing "5.3" in the "Affects
Versions" field worked fine.

Generally, report a bug as affecting a released version (such as
"5.3") and expect to see it reported as fixed in an unreleased version
("5.4" and "5.3.1").

>
> C
> On Dec 7, 2011, at 11:48 AM, Chris Collins wrote:
>
>> I was playing with the tree component and had a background color set in my 
>> css as a gradient.
>>
>> When I draw the tree I am seeing an interesting artifact.  The last node 
>> within each sub branch has a white background.  I guess its related to the 
>> css associated with class t-last defined for that element.  Should I file a 
>> bug or is it something I am doing wrong?
>>
>> Defining in my layout.css didn't help:
>>
>> DIV.t-tree-container LI.t-last
>> {
>>    background-color: transparent;
>> }
>>
>> Actually trying different colors defined in my layout.css didn't work at 
>> all.  Playing with the inspector in firefox disabling parts of the css made 
>> me realize that perhaps the white is there to cover up part of the vertical 
>> bar of the three layout.  Seems that currently this tree only works well 
>> with a white background.
>>
>> C
>>
>>
>



-- 
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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Thiago H. de Paula Figueiredo
On Fri, 09 Dec 2011 13:01:10 -0200, Hugi Thordarson   
wrote:



What's the rendered HTML?


Well, if I disable the ValueEncoder I made for CayenneDataObjects, it  
will look like this:


http://localhost:8080/tap/userlist.objectlink2.select/$007b$003cObjectId:User$002c$0020id$003d2$003e$003b$0020committed$003b$0020$005bid$003d$003e2$003b$0020creationDate$003d$003eFri$0020Dec$002002$002015:37:45$0020GMT$00202011$003b$0020registrationOffers$003d$003e$003f$003b$0020address$003d$003eGla$00f0heimar$002010$003b$0020contactName$003d$003eGummi$003b$0020userDocuments$003d$003e$003f$003b$0020registrations$003d$003e$003f$003b$0020visitorID$003d$003e1$003b$0020visitor$003d$003e$003f$003b$0020city$003d$003eReykjav$00edk$003b$0020ipAddress$003d$003e$005d$007d

But if the ValueEncoder is enabled, it looks like this:

http://localhost:8080/tap/userlist.objectlink2.select/1503831936-User-2


The CayenneDataObject => String mapping seems to work. Have you checked if  
the String => CayenneDataObject works?


Ah, I see. I like the other style better since it allows me to work with  
the actual page class (passing in variables etc).


Yep, this has this advantage. :) But, if you're just passing data, I still  
prefer the page activation context. Of course, it depends on each specific  
case.


It seems that when I use the LinkSource-method of generating page URLs,  
variables I set in a page one time "leak" over to the next time the page  
is opened (for inspecting a different object).


This looks like a bug in your code. Please post the source of the page  
that displays or edits the object. The links generated by  
PageRenderLinkSource (which is used by PageLink) don't do anything related  
to page lifecycle.


--
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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
right, submit works, thanks.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5062123.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: form/submit stop working

2011-12-09 Thread angelochen
have to roll back to t5.2.6 release, major difference between these two
versions is servlet 2.4 and 2.5, will that cause the problem? a related
question is, is tomcat 6.0.20 enough for servlet 2.5 as it's required by
T5.3? thanks.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-3-form-submit-stop-working-tp5060324p5062094.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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
>> (just ignore the commented out code, it's what I'm using to work around the 
>> problem until I find a solution)
> 
> What's the rendered HTML?

Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will look 
like this:

http://localhost:8080/tap/userlist.objectlink2.select/$007b$003cObjectId:User$002c$0020id$003d2$003e$003b$0020committed$003b$0020$005bid$003d$003e2$003b$0020creationDate$003d$003eFri$0020Dec$002002$002015:37:45$0020GMT$00202011$003b$0020registrationOffers$003d$003e$003f$003b$0020address$003d$003eGla$00f0heimar$002010$003b$0020contactName$003d$003eGummi$003b$0020userDocuments$003d$003e$003f$003b$0020registrations$003d$003e$003f$003b$0020visitorID$003d$003e1$003b$0020visitor$003d$003e$003f$003b$0020city$003d$003eReykjav$00edk$003b$0020ipAddress$003d$003e$005d$007d

But if the ValueEncoder is enabled, it looks like this:

http://localhost:8080/tap/userlist.objectlink2.select/1503831936-User-2


> I think the commented-out code is better because it avoids one request (the 
> redirection).

Ah, I see. I like the other style better since it allows me to work with the 
actual page class (passing in variables etc).
It seems that when I use the LinkSource-method of generating page URLs, 
variables I set in a page one time "leak" over to the next time the page is 
opened (for inspecting a different object). I'm still not entirely sure what 
how the lifecycle of page instances works, so I guess I'm going back to the 
documentation on that one.

Thanks you for all your help.

Cheers,
- hugi


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



Job Offer - Tapestry developer

2011-12-09 Thread Florian Parain
Hi,

I'm working on Contract Live, a Contract Management Software based on
Tapestry. 
http://www.contract-live.com/

Contract Live office is located in Paris, France.
We are currently looking for Tapestry developers.

Below, you can find a job offer in French.
If you have any questions, be pleased to contact Elsa:
e...@contract-live.com

Thanks for reading.
Regards,

Florian

__

*WitchBird* fait partie des 3 pionniers dans le monde de la gestion de
contrats sur le Cloud, grâce à sa plateforme baptisée Contract Live - 
http://www.contract-live.com/ www.contract-live.com 
Deux ans après avoir commencé à écrire les premières lignes de code dans un
garage, WitchBird c’est aujourd’hui :
•   une douzaine de jeunes issus des meilleures formations (HEC, Sciences 
Po,
Supélec, Supinfo...), originaires des 4 coins de la planète, et dotés d’un
esprit résolument start-up ;
•   un advisory board composé de grands noms comme le Directeur Général de
Free ou l’ancienne Directrice de cabinet du Président de la République ;
•   plus de 200 entreprises utilisatrices, dont Thomas Cook, Free, SVP, HEC,
Effiliation ;
•   et surtout, l’ambition de bouleverser le marché avec un produit
exceptionnel.

*Ta mission*

Tu travailleras auprès de Florian, le cofondateur.
Tu te verras confier de vraies responsabilités, sur lesquelles tu seras
autonome  :
•   Développer de nouveaux modules sous une plateforme Java J2EE
•   Améliorer l’interface graphique en maniant les technologies web, jQuery,
HTML, CSS
•   Optimiser les ressources et déployer les versions du logiciel sous Unix

*Ton profil*

Tu aimes l’adrénaline, la prise d’initiative et la camaraderie. 
Tu as de l’ambition, et tu es prêt à travailler dur pour la satisfaire.
•   Diplômé d’une école ou d’une université d’informatique
•   Au moins 2 ans d’expérience Java
•   Intérêt réel pour le monde de l’informatique et les challenges qui
l’entourent
•   Disponible immédiatement

Contact 
Elsa Kougblénou
e...@contract-live.com


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Job-Offer-Tapestry-developer-tp5061806p5061806.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
ohh.. i think you may be need to add Submit button?



On Fri, Dec 9, 2011 at 4:14 PM, angelochen wrote:

> onvalidate and onSuccess was never called.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061699.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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hmm, interesting. Doesn't seem to work even if I send the object as a context 
parameter, the object is still null in the action method :-/

- hugi




On 9.12.2011, at 12:50, Thiago H. de Paula Figueiredo wrote:

> On Fri, 09 Dec 2011 10:38:07 -0200, Hugi Thordarson  wrote:
> 
>> In the component "ObjectLink", I can print the value of currentObject.name. 
>> However, if I use the "object" binding in an action method 
>> (onActionFromSelect) the "object" parameter is always null?
> 
> Because onActionFromSelect() is invoked in another request, so the value of 
> currentObject is lost unless you persist it in some way. In Tapestry 4 your 
> code would work, but T4 had something called the rewind phase that caused 
> worse problems, so T5 doesn't have rewind (yeah!). The recommended solution 
> here is to add context="currentObject" to the ActionLink inside your 
> component and make onActionFromSelect() to receive the context. Something 
> like this:
> 
> 
> 
> Object onActionFromSelect(CayenneDataObject object) {
>   Class pageClass = CRUDUtil.detailPageClass( object.getClass() );
>   DetailPage t = 
> (DetailPage)componentSource.getPage( pageClass );
>   t.setSelectedObject( object );
>   return t;
> }
> 
> -- 
> 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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
OK, now it _almost_ works Still, interestingly enough though, it doesn't seem 
to work in a loop. Consider the following code:


${currentObject.name}


In the component "ObjectLink", I can print the value of currentObject.name. 
However, if I use the "object" binding in an action method (onActionFromSelect) 
the "object" parameter is always null?

Code for ObjectLink here:

https://gist.github.com/1451368

Any ideas?

Cheers,
- hugi



On 9.12.2011, at 12:02, Hugi Thordarson wrote:

> Oh dear… After reading the sentence "Tapestry parameters can be of any type 
> without any conversion" I performed a little sanity check on my code—turns 
> out the example code I copied form somewhere had "defaultPrefix = 
> BindingConstants.LITERAL" specified on the binding. Silly, silly…
> 
> Thanks!
> - hugi
> 
> 
> 
> On 9.12.2011, at 11:54, Thiago H. de Paula Figueiredo wrote:
> 
>> On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson  wrote:
>> 
>>> Hi again.
>> 
>> Hi!
>> 
>>> Another noob question: I've been trying to google this one for quite some 
>>> time, but I still can't figure out how I can pass a CayenneDataObject to a 
>>> component using a binding.
>> 
>> Just do it. :)
>> 
>>> I have registered a Type Coercer from String to CayenneDataObject, and it's 
>>> getting invoked when I read the binding, but if I do this…
>>> 
>>> …the coerce( String ) method of the Type Coercer recieves the string 
>>> "someCayenneDataObject" as parameter?
>> 
>> Tapestry parameters can be of any type without any conversion to String 
>> needed. What's the type of the input filed in your custom component? What's 
>> its binding? Could you post the component source (or at least the component 
>> declaration)?
>> 
>> -- 
>> 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



Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
and what is the question with your code?

On Fri, Dec 9, 2011 at 3:19 PM, angelochen wrote:

> here is my code/tml:
>
>  < t:form t:id="myForm" >
>
> < input t:type="tawus/ajaxupload"
>   t:id="uploads" type="file" / >
>< /t:form >
>
>
>
> @Persist
>@Property
>private List uploads;
>
>
> @OnEvent (value = EventConstants.VALIDATE, component = "myForm")
>void validateUpload() {
>System.out.println("validating...");
> }
>
>void onSuccess(){
>//Use uploads
>
>if (uploads.size() >0) {
>System.out.println(uploads.get(0).getFileName());
>}
>uploads.clear();
>}
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061557.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
here is my code/tml:

  < t:form t:id="myForm" >

< input t:type="tawus/ajaxupload"
   t:id="uploads" type="file" / >
< /t:form >



@Persist
@Property
private List uploads;


@OnEvent (value = EventConstants.VALIDATE, component = "myForm")
void validateUpload() {
System.out.println("validating...");
}

void onSuccess(){
//Use uploads

if (uploads.size() >0) {
System.out.println(uploads.get(0).getFileName());
}
uploads.clear();
}


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061557.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
Regarding where file is store:

public void onSuccess()
{
UploadedFile uploadedFile = uploaded.get(0);

File file = new File("/where/i-want/file-to-save");

uploadedFile.write(file);
}


On Fri, Dec 9, 2011 at 3:11 PM, Dmitriy Vsekhvalnov
wrote:

> did you wrap  to ?
>
> 
>   
> 
>
> There is maxFiles  parameter which you can specify for AjaxUpload.
>  Default is 1 :)
>
>
> On Fri, Dec 9, 2011 at 2:58 PM, angelochen wrote:
>
>> Hi Dmitriy,
>>
>> you just turned a maven user into gradle today:) ok, it works. now,
>> after click 'upload', where is the file uploaded? second, why only one
>> file?
>> and this seems not got called:
>>
>>  @Persist
>>@Property
>>private List uploads;
>>void onSuccess(){
>>//Use uploads
>>
>>if (uploads.size() >0) {
>>System.out.println(uploads.get(0).getFileName());
>>}
>>uploads.clear();
>>}
>>
>> thanks,
>>
>>
>> Dmitriy Vsekhvalnov wrote
>> >
>> > this means, you didn't install ajaxupload to your local maven repo.
>> >
>> > Please do: gradle install.
>> >
>> > On Fri, Dec 9, 2011 at 2:01 PM, angelochen
>> > wrote:
>> >
>> >> i added that to pom.xml but get this:
>> >>
>> >> Downloading:
>> >>
>> >>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml
>> >> Downloading:
>> >>
>> >>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom
>> >> [WARNING] The POM for
>> >> com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT
>> >> is missing, no dependency information available
>> >> Downloading:
>> >>
>> >>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.html
>> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscribe@.apache
>> >> For additional commands, e-mail: users-help@.apache
>> >>
>> >>
>> >
>>
>>
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061512.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
did you wrap  to ?


  


There is maxFiles  parameter which you can specify for AjaxUpload.  Default
is 1 :)

On Fri, Dec 9, 2011 at 2:58 PM, angelochen wrote:

> Hi Dmitriy,
>
> you just turned a maven user into gradle today:) ok, it works. now,
> after click 'upload', where is the file uploaded? second, why only one
> file?
> and this seems not got called:
>
>  @Persist
>@Property
>private List uploads;
>void onSuccess(){
>//Use uploads
>
>if (uploads.size() >0) {
>System.out.println(uploads.get(0).getFileName());
>}
>uploads.clear();
>}
>
> thanks,
>
>
> Dmitriy Vsekhvalnov wrote
> >
> > this means, you didn't install ajaxupload to your local maven repo.
> >
> > Please do: gradle install.
> >
> > On Fri, Dec 9, 2011 at 2:01 PM, angelochen
> > wrote:
> >
> >> i added that to pom.xml but get this:
> >>
> >> Downloading:
> >>
> >>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml
> >> Downloading:
> >>
> >>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom
> >> [WARNING] The POM for
> >> com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT
> >> is missing, no dependency information available
> >> Downloading:
> >>
> >>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar
> >>
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscribe@.apache
> >> For additional commands, e-mail: users-help@.apache
> >>
> >>
> >
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061512.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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Oh dear… After reading the sentence "Tapestry parameters can be of any type 
without any conversion" I performed a little sanity check on my code—turns out 
the example code I copied form somewhere had "defaultPrefix = 
BindingConstants.LITERAL" specified on the binding. Silly, silly…

Thanks!
- hugi



On 9.12.2011, at 11:54, Thiago H. de Paula Figueiredo wrote:

> On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson  wrote:
> 
>> Hi again.
> 
> Hi!
> 
>> Another noob question: I've been trying to google this one for quite some 
>> time, but I still can't figure out how I can pass a CayenneDataObject to a 
>> component using a binding.
> 
> Just do it. :)
> 
>> I have registered a Type Coercer from String to CayenneDataObject, and it's 
>> getting invoked when I read the binding, but if I do this…
>> 
>> …the coerce( String ) method of the Type Coercer recieves the string 
>> "someCayenneDataObject" as parameter?
> 
> Tapestry parameters can be of any type without any conversion to String 
> needed. What's the type of the input filed in your custom component? What's 
> its binding? Could you post the component source (or at least the component 
> declaration)?
> 
> -- 
> 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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
Hi Dmitriy,

you just turned a maven user into gradle today:) ok, it works. now,
after click 'upload', where is the file uploaded? second, why only one file?
and this seems not got called:

  @Persist
@Property
private List uploads;
void onSuccess(){
//Use uploads

if (uploads.size() >0) {
System.out.println(uploads.get(0).getFileName());
}
uploads.clear();
}

thanks,


Dmitriy Vsekhvalnov wrote
> 
> this means, you didn't install ajaxupload to your local maven repo.
> 
> Please do: gradle install.
> 
> On Fri, Dec 9, 2011 at 2:01 PM, angelochen
> wrote:
> 
>> i added that to pom.xml but get this:
>>
>> Downloading:
>>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml
>> Downloading:
>>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom
>> [WARNING] The POM for
>> com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT
>> is missing, no dependency information available
>> Downloading:
>>
>> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar
>>
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscribe@.apache
>> For additional commands, e-mail: users-help@.apache
>>
>>
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061512.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: Another newbie question: Type coercions not working for me

2011-12-09 Thread Thiago H. de Paula Figueiredo
On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson   
wrote:



Hi again.


Hi!

Another noob question: I've been trying to google this one for quite  
some time, but I still can't figure out how I can pass a  
CayenneDataObject to a component using a binding.


Just do it. :)

I have registered a Type Coercer from String to CayenneDataObject, and  
it's getting invoked when I read the binding, but if I do this…


…the coerce( String ) method of the Type Coercer recieves the string  
"someCayenneDataObject" as parameter?


Tapestry parameters can be of any type without any conversion to String  
needed. What's the type of the input filed in your custom component?  
What's its binding? Could you post the component source (or at least the  
component declaration)?


--
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: pagecatalog still visible in production mode

2011-12-09 Thread Bob Harner
Bob Harner
On Dec 8, 2011 10:11 PM, "Martin Strand" 
wrote:

> You could configure your servlet container so that it doesn't return the
> proxy IP as request.remoteAddr, but instead uses the X-Forwarded-For header
> and returns the real client IP.
>
> For Jetty, this is just a matter of setting forwarded=true on the connector
> http://wiki.eclipse.org/Jetty/**Howto/Configure_mod_proxy#**
> Configuring_mod_proxy_as_a_**Reverse_Proxy.5D
> :
>
>
> On Fri, 09 Dec 2011 03:59:13 +0100, angelochen 
> wrote:
>
>  I'd prefer this to have the same behavior as servicestatus, I discovered
>> this
>> when I rolled out a production version:
>>
>> example.com:8080/pagecatalog   this works
>> example.com/pagecatalog   this shows everything
>>
>> because in the server, apache server is used to proxy to tomcat, and t5
>> sees
>> it as localhost, that's whitelisted.
>>
>>
>> Howard Lewis Ship wrote
>>
>>>
>>> Try accessing PageCatalog from beyond your localhost  ... localhost is
>>> "white listed", other IP addresses are not on the white list unless
>>> you make a specific contribution.
>>>
>>> See:
>>>
>>>
>>> http://tapestry.apache.org/**current/apidocs/org/apache/**
>>> tapestry5/annotations/**WhitelistAccessOnly.html
>>>
>>> http://tapestry.apache.org/**current/apidocs/org/apache/**
>>> tapestry5/services/security/**ClientWhitelist.html
>>>
>>> On Thu, Dec 8, 2011 at 1:24 AM, angelochen 
>>> wrote:
>>>
 hi,
 setting production mode to true in 5.3, servicestatus not show details,
 but
 pagecatalog still shows everything.
 what's the easy way to turn this off? Thanks,
 angelo

 --
 View this message in context:
 http://tapestry.1045711.n5.**nabble.com/pagecatalog-still-**
 visible-in-production-mode-**tp5058173p5058173.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 --**--**
 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache


>>>
>>>
>>> --
>>> 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-unsubscribe@.apache
>>> For additional commands, e-mail: users-help@.apache
>>>
>>>
>>
>> --
>> View this message in context: http://tapestry.1045711.n5.**
>> nabble.com/pagecatalog-still-**visible-in-production-mode-**
>> tp5058173p5060616.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hi again.

Another noob question: I've been trying to google this one for quite some time, 
but I still can't figure out how I can pass a CayenneDataObject to a component 
using a binding.

I have registered a Type Coercer from String to CayenneDataObject, and it's 
getting invoked when I read the binding, but if I do this…



…the coerce( String ) method of the Type Coercer recieves the string 
"someCayenneDataObject" as parameter?

Help!

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



Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
this means, you didn't install ajaxupload to your local maven repo.

Please do: gradle install.

On Fri, Dec 9, 2011 at 2:01 PM, angelochen wrote:

> i added that to pom.xml but get this:
>
> Downloading:
>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml
> Downloading:
>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom
> [WARNING] The POM for
> com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT
> is missing, no dependency information available
> Downloading:
>
> https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
i added that to pom.xml but get this:

Downloading:
https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/maven-metadata.xml
Downloading:
https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.pom
[WARNING] The POM for com.googlecode.tawus:tawus-ajaxupload:jar:0.1-SNAPSHOT
is missing, no dependency information available
Downloading:
https://repository.apache.org/content/groups/staging/com/googlecode/tawus/tawus-ajaxupload/0.1-SNAPSHOT/tawus-ajaxupload-0.1-SNAPSHOT.jar

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061396.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: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Thank you, exactly what I was looking for!

Cheers,
- hugi


On 9.12.2011, at 10:58, Thiago H. de Paula Figueiredo wrote:

> ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson  wrote:
> 
>> Yes, that would work for returning the page, but I need to initialize it 
>> (with the object). In pseudocode, what I'm looking for wouls be something 
>> along the lines of:
>> 
>>  Object onActionFromSelect() {
>>  Class detailPageClass = 
>> determineDetailPageClass( currentObject );
>>  DetailPage detailPagePage = // obtain page instance of type 
>> detailPageClass
>>  detailPage.setSelectedObject( currentObject );
>>  return detailPage;
>>  }
>> 
>> (the detail pages all inherit from DetailPage)
> 
> Use the ComponentSource service and its getPage() method.
> 
> -- 
> 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: Returning an instance of a page

2011-12-09 Thread Thiago H. de Paula Figueiredo
ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson   
wrote:


Yes, that would work for returning the page, but I need to initialize it  
(with the object). In pseudocode, what I'm looking for wouls be  
something along the lines of:


Object onActionFromSelect() {
		Class detailPageClass =  
determineDetailPageClass( currentObject );
		DetailPage detailPagePage = // obtain page instance of type  
detailPageClass

detailPage.setSelectedObject( currentObject );
return detailPage;
}

(the detail pages all inherit from DetailPage)


Use the ComponentSource service and its getPage() method.

--
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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
if you did: gradle install  successfully, you can include it to your maven
project:


com.googlecode.tawus
tawus-ajaxupload
0.1-SNAPSHOT


then use with .tml:




On Fri, Dec 9, 2011 at 12:51 PM, angelochen wrote:

> I know this is not tapestry5 related, i just want to try out that
> ajaxupload,
> i already did a gradile build, believe its fully compiled, now what's next?
>
> wish it's maven based.
>
>
> Dragan Sahpaski wrote
> >
> > Just install gradle and do gradle install. This will install the ajax
> > upload artifact in your local repo.
> >
> > Cheers,
> > Dragan Sahpaski
> >
> >
> >
> > On Fri, Dec 9, 2011 at 9:17 AM, angelochen
> > wrote:
> >
> >> how to use maven to compile this component? for T5.3. thanks.
> >>
> >> --
> >> View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscribe@.apache
> >> For additional commands, e-mail: users-help@.apache
> >>
> >>
> >
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061239.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
I know this is not tapestry5 related, i just want to try out that ajaxupload,
i already did a gradile build, believe its fully compiled, now what's next?  

wish it's maven based.


Dragan Sahpaski wrote
> 
> Just install gradle and do gradle install. This will install the ajax
> upload artifact in your local repo.
> 
> Cheers,
> Dragan Sahpaski
> 
> 
> 
> On Fri, Dec 9, 2011 at 9:17 AM, angelochen
> wrote:
> 
>> how to use maven to compile this component? for T5.3. thanks.
>>
>> --
>> View this message in context:
>> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscribe@.apache
>> For additional commands, e-mail: users-help@.apache
>>
>>
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061239.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.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse

2011-12-09 Thread Jérémie Charlet
Thanks a lot for your answers! I am going to discuss with my colleagues
whether upgrade is possible. There is also a patch provided on the JIRA.
Otherwise I'll try your solutions and explain what solution we chose and
how I implemented it.
Regards,
Jérémie

Unfortunately upgrade is not possible, so I am going to try to use an
eventlink
On 9 December 2011 09:41, Joost Schouten (mailing lists) <
joost...@jsportal.com> wrote:

> Another option (if an upgrade is not possible) is to download your pdf to
> a hidden iframe. No new page opens and the zonemanager does not get
> unload'ed.
>
> On Dec 8, 2011, at 4:54 PM, antalk wrote:
>
> > I've 'fixed'  a similair issue by using an eventlink where the user can
> > download the document, but set the target attribute of the link to
> > target="_blank".
> >
> > The download page will open in a new window, but you dont have to refresh
> > the form.
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/t5-1-ajaxFormLoop-disabled-once-page-reloaded-and-returning-a-PDFStreamResponse-tp5053108p5059217.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
>
>


Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Yes, that would work for returning the page, but I need to initialize it (with 
the object). In pseudocode, what I'm looking for wouls be something along the 
lines of:

Object onActionFromSelect() {
Class detailPageClass = 
determineDetailPageClass( currentObject );
DetailPage detailPagePage = // obtain page instance of type 
detailPageClass
detailPage.setSelectedObject( currentObject );
return detailPage;
}

(the detail pages all inherit from DetailPage)

Cheers,
- hugi



On 9.12.2011, at 09:43, angelochen wrote:

> how about: return "UserDetailPage"
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.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



Re: Returning an instance of a page

2011-12-09 Thread angelochen
how about: return "UserDetailPage"

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dmitriy Vsekhvalnov
Hey, i got it working with some tweaks, but still experience some issues:

1. i've set @IncludeStylesheet("ajaxupload.css"), and it is not working.
The stylesheet link generated on the
page: 
/myapp/assets/classpath/2dc6971e4afe5b2f/com/googlecode/tawus/ajaxupload/components/ajaxupload.css
  but RegexAuthorizer blocks this. I don't know why.

2. When clicking 'remove' link, it fails with JS error: Client exception
processing response: TypeError: Object # has no method 'call'

3. Does it support disabled attribute?

4. Is it possible to have event on the page when upload complete? I'd like
to refresh zone with image immediately and do not wait for the form
submission.

5. Is it possible to disable file section (and drag'n'drop) when file limit
reached? I don't like js pop-up alerts.


Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Hi all.

Quick newbie question: How do I return an instance of a page whose class I do 
not know until at runtime? Example: I have a list page, listing objects of 
various types. when I click an object, I want to return a page class based on 
the class of the object I select ("UserDetailPage" for "User", 
"CompanyDetailPage" for "Company" etc…).

@InjectPage requires me to specify a particular page at compile time, so I 
can't use that—and I cant do a plain "return UserDetailPage.class" since I need 
to set the selected object.

Any ideas?

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



Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
ok, i did that, it pulls down a lot of things, now stop at:


Test method
test_if_setup_render_sets_active_to_first_value_if_not_specified(com.googlecode.tawus.addons.components.TabPanelTest)
PASSED
Test method
test_if_setup_render_throws_exception_if_no_tabs_are_specified(com.googlecode.tawus.addons.components.TabPanelTest)
PASSED
Test method
test_setup_render_does_not_set_active_to_first_value_if_specified(com.googlecode.tawus.addons.components.TabPanelTest)
PASSED
> Building > :tawus-addons:test > 12 tests completed

could be better if a pom.xml is provided, that's the way i use with his
tapestry-facebook.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061217.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: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in tml file, you should use < a t:type="pagelink" page="..." >my link< />

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061123.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: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread angelochen
in your tml you should use   to generate links.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061119.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.1] ajaxFormLoop disabled once page reloaded and returning a PDFStreamResponse

2011-12-09 Thread Joost Schouten (mailing lists)
Another option (if an upgrade is not possible) is to download your pdf to a 
hidden iframe. No new page opens and the zonemanager does not get unload'ed.

On Dec 8, 2011, at 4:54 PM, antalk wrote:

> I've 'fixed'  a similair issue by using an eventlink where the user can
> download the document, but set the target attribute of the link to
> target="_blank".
> 
> The download page will open in a new window, but you dont have to refresh
> the form.
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/t5-1-ajaxFormLoop-disabled-once-page-reloaded-and-returning-a-PDFStreamResponse-tp5053108p5059217.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



Re: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread wesleywj2
hi angelo,

thanks for the quick reply, you pointed it, my url has "zh" when locale took
place, when i click on the navigation , the zh disappear!, wonder why is
that? something i need to tweak on the navigation link? perhaps? a symbol?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5061056.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: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread Dragan Sahpaski
Just install gradle and do gradle install. This will install the ajax
upload artifact in your local repo.

Cheers,
Dragan Sahpaski



On Fri, Dec 9, 2011 at 9:17 AM, angelochen wrote:

> how to use maven to compile this component? for T5.3. thanks.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.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: Accessing the problem on T5.1 regarding Locale switching

2011-12-09 Thread Geoff Callender
Do these help?


http://jumpstart.doublenegative.com.au/jumpstart/examples/localization/bymessagecatalog

http://jumpstart.doublenegative.com.au/jumpstart/examples/localization/bytemplate

Geoff

On 09/12/2011, at 6:47 PM, wesleywj2 wrote:

> hi all,
> 
> i facing a very difficult situation where my application needs to switch
> between locale of english and chinese.
> my page has a tile like border component and a body. I implemented an
> actionlink on the border component which can switch language. i successfully
> switch the language from english to chinese, but the real problem is when i
> navigate to other pages, it swithed back to english. 
> 
> i override configuration under AppModule the method
> "contributeApplicationDefaults"
> and provide this:-
> 
>configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,zh");
> 
> i code every properties file in UTF-8 file
> format(app.properties,app_zh.properties), still it behave the same. 
> is this Tapestry 5.1's known bugs? 
> 
> i tried to upgrade to T5.2 with spring 2.5 but it didn't even start
> correctly on my app server tomcat 6 eventhough i follow the documentation
> guide step by step. 
> 
> please please advice, i'm running out of time and idea, please help me
> 
> wesley
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Accessing-the-problem-on-T5-1-regarding-Locale-switching-tp5060950p5060950.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



Re: [ANN] AjaxUpload : An ajax based upload component

2011-12-09 Thread angelochen
how to use maven to compile this component? for T5.3. thanks.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061023.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