Re: T5: outputRaw

2007-09-16 Thread Erik Vullings
Hi Angelo,

And how did you define currentuser? Any annotations?

Cheers, Erik

On 9/16/07, Angelo Chen [EMAIL PROTECTED] wrote:


 Hi,
 I use following code to output a html text, but it works first time, when
 I
 switch to other users, the page will never be updated, remain the contents
 from the first user, any hint? thanks.

 div id=profile_right
 t:outputraw value = ${CurrentUser.about} /  /div

 A.c.
 --
 View this message in context:
 http://www.nabble.com/T5%3A-outputRaw-tf4449911.html#a12696194
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




Re: Tapestry 5 Roadmap

2007-09-16 Thread Howard Lewis Ship
I'll have a better idea about the roadmap at the end of this week.

I've been working for a new consulting company, and the Big Project is not a
web app (it's in Swing).  This has slowed down progress on Tapestry 5, alas.

On 9/13/07, petros [EMAIL PROTECTED] wrote:


 The tapestry 5 website says that the final release of T5 is fall 2007. Is
 this still realistic ? If not can you please provide a realistic date ?

 Petros
 --
 View this message in context:
 http://www.nabble.com/Tapestry-5-Roadmap-tf4439437.html#a12666499
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind


Re: Tapestry 5 Roadmap

2007-09-16 Thread Fernando Padilla

Is there any other developer working on T5 yet?
Is there anything we can do to help? (we're working on using T5 for 
facebook production app, so we can devote time to helping).



(I would like to see the TAPESTRY-1600 in there. :)

Howard Lewis Ship wrote:

I'll have a better idea about the roadmap at the end of this week.

I've been working for a new consulting company, and the Big Project is not a
web app (it's in Swing).  This has slowed down progress on Tapestry 5, alas.

On 9/13/07, petros [EMAIL PROTECTED] wrote:


The tapestry 5 website says that the final release of T5 is fall 2007. Is
this still realistic ? If not can you please provide a realistic date ?

Petros
--
View this message in context:
http://www.nabble.com/Tapestry-5-Roadmap-tf4439437.html#a12666499
Sent from the Tapestry - User mailing list archive at Nabble.com.


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







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



[T5] component packs? libraries?

2007-09-16 Thread Fernando Padilla
So I think I've read most if not all of the T5 documentation, and I 
don't see any mention of the old Component Libraries.. Could someone 
give me some insight?


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



t:type=loop problem

2007-09-16 Thread Leon Derks

 
I have a problem with the t:type=loop component in my Menu Component
 
Every link that is generated gets the id of the first Category. So the html 
source looks like this:
 
ul
   li
   a href=/mercado/start.layout.menu.category/1 id=categoryCategoryA 
| 1/a   /li
/ul
ul
   li  a href=/mercado/start.layout.menu.category/1 
id=category_0CategoryB | 70/a/li
/ul
ul
   li  a href=/mercado/start.layout.menu.category/1 
id=category_1CategoryC | 110/a/li
/ul
 
Every categoryId is 1. (and it generates to much ul tags).
 
When I click a category link the application thinks I always click the first 
category link.
 
This is what is in Menu.html
 
ul t:type=loop source=categories value=category
   li
  t:actionlink t:id=category context=${category.id}${category.name} | 
${category.id}/t:actionlink
   /li
/ul
 
And this is what is in Menu.java
 
@Inject
@Service(categoryService)
private CategoryService categoryService;
 
private Category category;

 
Object onActionFromCategory(Long categoryId) {
  System.out.println(Category  + categoryId +  has been clicked);
  categoryDetail.setup(categoryId);
return categoryDetail;
}
 
public CollectionCategory getCategories() {
 return categoryService.getRootCategories();
}
 
public Category getCategory() {
 return category;
}

 
public void setCategory(Category category) {
 this.category = category;
}
_
Altijd al willen weten wat jouw naam betekent?
http://search.live.com/results.aspx?q=betekenis+annamkt=nl-nlFORM=LVCP

Re: t:type=loop problem

2007-09-16 Thread Michael Gottschalk
Hi Leon,

On Sunday 16 September 2007 18:41:07 Leon Derks wrote:
 I have a problem with the t:type=loop component in my Menu Component

 [...]
 Every categoryId is 1. (and it generates to much ul tags).
 [...]
 This is what is in Menu.html

 ul t:type=loop source=categories value=category
li
   t:actionlink t:id=category
 context=${category.id}${category.name} | ${category.id}/t:actionlink
 /li
 /ul

it will work if you don't use the expansion in the actionLink context 
parameter:
t:actionlink t:id=category context=category.id

Never use the ${}-notation when giving parameters to a component. I don't know 
why, but it will not work as expected.

Regards,
Michael

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



Packaging custom components

2007-09-16 Thread Otry Itrch
I am trying to repeat what Ted has done in his FCKEditor and DatePicker to
package my own custom components:

1. I created a couple of components, they work fine in the project where
they are created.
2. I packaged everything used by these components into a JAR with structure
like

com.myserver.myapp.LibModule
com.myserver.myapp.components.*
com.myserver.myapp.util.*
com.myserver.myapp.services.*

3. In the com.myserver.myapp.LibModule I included the following:

public static void
contributeComponentClassResolver(ConfigurationLibraryMapping
configuration) {
configuration.add(new LibraryMapping(mylib, com.myserver.myapp
));
}

4. I made sure that the manifest of the JAR contains this line:

Tapestry-Module-Classes: com.myserver.myapp.LibModule

However, when I dropped the resulting JAR into a lib directory of another
project and tried to use one of the custom components like

span t:type=mylib/MyComponent/

I got an exception:

Unable to resolve component type 'mylib/MyComponent' to a component class
name. Available component types...

Where I am wrong then?


Re: [T5] component packs? libraries?

2007-09-16 Thread SergeEby

Hi,

T5 components are listed here:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html

/Serge


Fernando Padilla wrote:
 
 So I think I've read most if not all of the T5 documentation, and I 
 don't see any mention of the old Component Libraries.. Could someone 
 give me some insight?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--component-packs--libraries--tf4461482.html#a12727079
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



In T4.1.2 How to LinkTo NonTapestry URIs(link to my jsp page)

2007-09-16 Thread Doublel
Hello
In t5 can redirect login and logouts to Acegi's special URIs.In t 4.1.2. I
want to Redirect to my some old jsp pages?How to do it ??
-- 
得与失都是生活


Re: [T5] component packs? libraries?

2007-09-16 Thread Fernando Padilla
I thought I meant Component Libraries.. as in user or third party 
generated component libraries.. any other ideas?


SergeEby wrote:

Hi,

T5 components are listed here:
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html

/Serge


Fernando Padilla wrote:
So I think I've read most if not all of the T5 documentation, and I 
don't see any mention of the old Component Libraries.. Could someone 
give me some insight?


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







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



Re: T5: outputRaw and how to display html formated data?

2007-09-16 Thread Angelo Chen

Hi Erik,

To make things easier, i use this:

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

then in my html file I use:

  t:outputraw value = ${CurrentTime} /

when the page is displayed second time, the time does not change, you have
to restart the program to have the time updated, my impression is, outputraw
will update the template and remain static until re-start, if that's the
case, my question is, how to display html formated data?


Erik Vullings-2 wrote:
 
 Hi Angelo,
 
 And how did you define currentuser? Any annotations?
 
 Cheers, Erik
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-outputRaw-tf4449911.html#a12727880
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-16 Thread Angelo Chen

Hi Martin,

Can you share some portion of the code ? I'd like to test it if I can speed
up my app? Thanks.

A.C.


Martin_S wrote:
 
 I have chosen quick-and-dirty for now. like
 http://www.hibernate.org/114.html, I used a ServletContextListener to
 detect deployment. For our particular objective, I made it spawn a
 separate Thread to keep trying (for max one minute) to do a GET of a page
 that needs to create an HttpSession. 
 
 Tomcat needs you to read at least the first line of a response to obtain
 the desired behavior.
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-init-T5-pages-on-deployment1st-few-hits-would-be-faster-tf4437654.html#a12727957
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t:type=loop problem

2007-09-16 Thread Nick Westgate

It's mentioned somewhere (maybe in the source) that expansions are
treated as literals, and therefore cached and never re-evaluated.

The result is quite non-intuitive in a loop, which has irked me for
some time, and I'm beginning to consider it a bug. It's also one
reason I still value the Any component.

I'll log a JIRA.

Cheers,
Nick.


Michael Gottschalk wrote:

Hi Leon,

On Sunday 16 September 2007 18:41:07 Leon Derks wrote:

I have a problem with the t:type=loop component in my Menu Component

[...]
Every categoryId is 1. (and it generates to much ul tags).
[...]
This is what is in Menu.html

ul t:type=loop source=categories value=category
   li
  t:actionlink t:id=category
context=${category.id}${category.name} | ${category.id}/t:actionlink
/li
/ul


it will work if you don't use the expansion in the actionLink context 
parameter:

t:actionlink t:id=category context=category.id

Never use the ${}-notation when giving parameters to a component. I don't know 
why, but it will not work as expected.


Regards,
Michael

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




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



Re: T5: outputRaw and how to display html formated data?

2007-09-16 Thread Nick Westgate

Attributes default to the prop binding, so there's no need to use expansions:
t:outputraw value = currentTime} /

See the current loop problem thread.

Cheers,
Nick.


Angelo Chen wrote:

Hi Erik,

To make things easier, i use this:

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


then in my html file I use:

  t:outputraw value = ${CurrentTime} /

when the page is displayed second time, the time does not change, you have
to restart the program to have the time updated, my impression is, outputraw
will update the template and remain static until re-start, if that's the
case, my question is, how to display html formated data?


Erik Vullings-2 wrote:

Hi Angelo,

And how did you define currentuser? Any annotations?

Cheers, Erik





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



Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-16 Thread Martin_S

Add this to web.xml as well:
listener
listener-class
com..tc.util.TapestryListener
/listener-class
/listener

The attached Java code needs cleanup, but it works.

Angelo Chen wrote:
 
 Hi Martin,
 
 Can you share some portion of the code ? I'd like to test it if I can
 speed up my app? Thanks.
 
 A.C.
 
 
 Martin_S wrote:
 
 I have chosen quick-and-dirty for now. like
 http://www.hibernate.org/114.html, I used a ServletContextListener to
 detect deployment. For our particular objective, I made it spawn a
 separate Thread to keep trying (for max one minute) to do a GET of a page
 that needs to create an HttpSession. 
 
 Tomcat needs you to read at least the first line of a response to obtain
 the desired behavior.
 
 
 
 
http://www.nabble.com/file/p12728256/TapestryListener.java
TapestryListener.java 
-- 
View this message in context: 
http://www.nabble.com/How-to-init-T5-pages-on-deployment1st-few-hits-would-be-faster-tf4437654.html#a12728256
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] component packs? libraries?

2007-09-16 Thread Thiago H. de Paula Figueiredo
Em Sun, 16 Sep 2007 21:41:53 -0300, Fernando Padilla [EMAIL PROTECTED]  
escreveu:


I thought I meant Component Libraries.. as in user or third party  
generated component libraries.. any other ideas?


Tapestry 5 is very young yet (it's not even beta!), so developers hadn't  
had much time to write component libraries like Tapestry's 4 Tacos. :)  
There are some components (a date picker and some other I can't recall  
now) and HiberTapestry, my very own Tapestry-IoC-Hibernate integration  
(annotation and method-based transaction handling included):  
http://tapestry-mine.sourceforge.net/hibertapestry/.


Thiago

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



Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-16 Thread Martin_S

Oh yeah, you obviously don't need the Hibernate code there.


Angelo Chen wrote:
 
 Hi Martin,
 
 Can you share some portion of the code ? I'd like to test it if I can
 speed up my app? Thanks.
 
 A.C.
 
 
 Martin_S wrote:
 
 I have chosen quick-and-dirty for now. like
 http://www.hibernate.org/114.html, I used a ServletContextListener to
 detect deployment. For our particular objective, I made it spawn a
 separate Thread to keep trying (for max one minute) to do a GET of a page
 that needs to create an HttpSession. 
 
 Tomcat needs you to read at least the first line of a response to obtain
 the desired behavior.
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-init-T5-pages-on-deployment1st-few-hits-would-be-faster-tf4437654.html#a12728589
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: outputRaw and how to display html formated data?

2007-09-16 Thread Angelo Chen

Hi Nick,

Thanks, it works!, I tried to avoid asking question first so I have been
reading outputraw doc for a long time, but can't understand it, here is:

NameTypeFlags   Default Default Prefix  Description
value   String  RequiredpropThe value to to render. If 
unbound, and a
property of the container matches the component's id, then that property
will be the source of the value.

Here is how I undertand it:

Value : parameter name, use it to specify a data source
String : the data source should be a string, but the currentTime is a date
in my sample, still acceptable, why?
Prop: the data source should have a prefix which defaults to 'prob'

and also the description, how to interpret it? help me understand it so that
I can understand the rest of the doc, thanks.

A.C.





Nick Westgate wrote:
 
 Attributes default to the prop binding, so there's no need to use
 expansions:
  t:outputraw value = currentTime} /
 
 See the current loop problem thread.
 
 Cheers,
 Nick.
 
 
 Angelo Chen wrote:
 Hi Erik,
 
 To make things easier, i use this:
 
   public Date getCurrentTime()
  {
  return new Date();
  }
 
 then in my html file I use:
 
   t:outputraw value = ${CurrentTime} /
 
 when the page is displayed second time, the time does not change, you
 have
 to restart the program to have the time updated, my impression is,
 outputraw
 will update the template and remain static until re-start, if that's the
 case, my question is, how to display html formated data?
 
 
 Erik Vullings-2 wrote:
 Hi Angelo,

 And how did you define currentuser? Any annotations?

 Cheers, Erik

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

-- 
View this message in context: 
http://www.nabble.com/T5%3A-outputRaw-tf4449911.html#a12728683
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] component packs? libraries?

2007-09-16 Thread Fernando Padilla

Cool.

So how would I go about creating a component library and including its 
use in my app?


Thiago H. de Paula Figueiredo wrote:
Em Sun, 16 Sep 2007 21:41:53 -0300, Fernando Padilla [EMAIL PROTECTED] 
escreveu:


I thought I meant Component Libraries.. as in user or third party 
generated component libraries.. any other ideas?


Tapestry 5 is very young yet (it's not even beta!), so developers hadn't 
had much time to write component libraries like Tapestry's 4 Tacos. :) 
There are some components (a date picker and some other I can't recall 
now) and HiberTapestry, my very own Tapestry-IoC-Hibernate integration 
(annotation and method-based transaction handling included): 
http://tapestry-mine.sourceforge.net/hibertapestry/.


Thiago

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



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