RE: Retrieving table column names

2006-08-30 Thread Jasper Huzen


I don't understand your exact problem but I think you have:


user_name  | user_password | some_value
---
FOO  | FOO | FOO
---
FOO2 | FOO2| FOO2

And you want

Username   | Password  | Some Value
---
FOO  | FOO | FOO
---
FOO2 | FOO2| FOO2


You can do that by use the column attribute as: "lblusername:user_name,
lblpassword:user_password, lblsomevalue:some_value" and than place the
lbl.. in your properties file, so its good for internationalization too.

Jasper 





-Original Message-
From: Peter Dawn [mailto:[EMAIL PROTECTED] 
Sent: donderdag 31 augustus 2006 4:13
To: tapestry-user@jakarta.apache.org
Subject: Retrieving table column names

guys,

i am running into this problem within my web app. please help me. i am
using tap3.

now i am retrieving column name information from my tables and
displaying to the user in drop down menus. i retrieve the data using
List columns = new ArrayList();
int columnSize = columns.;
while (rsColumns.next()) {
  columns.add(rsColumns.getString("COLUMN_NAME"));
}
String s = columns.toString();
setColumnList(columns);
rsColumns.close();

so now s contains information like user_username, user_password etc
this being my column names within a particular table. and this
information is visible to the user in drop down menus within my web
app.

within my html i have something like,

   
  



now my problem is that i can retrieve data properly, but i want to
display user friendly information to the user. so instead of they
viewing user_username i want to display Username etc. but at the same
time when the select this particular option i want to maintain the
information passed on back to my java code as the original column name
(user_username).

so essentially all i want to do is display user friendly labels but
not change the underlying content. can some genius help me out. i also
need to worry about multi-lingual stuff so somehow this info needs to
be stored in properties files, which i can change on the fly.

please help me.

-
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: catch custom exception generated in tapestry app in filter?

2006-08-30 Thread andyhot
Hmmm... I thought exceptions on Exception page were thrown unchanged,
but that's not true... they're also wrapped in an
ApplicationRuntimeException.

So, if you want some of your exceptions to be thrown out of the Tap servlet
and caught by a filter, you'd have to use a custom
org.apache.tapestry.error.ExceptionPresenter

See org.apache.tapestry.error.ExceptionPresenterImpl for more details.




andyhot wrote:
> in pageBeginRender of your custom exception page,
> check if the execption is of type UnAuthenticatedException
> and if it is, throw it again!
>
> Phillip Rhodes wrote:
>   
>> Yes, I am using that feature for "Unchecked" exceptions.  I just have some
>> a checked exception (UnAuthenticatedException) that I would like to catch
>> in my filter and this filter will send a redirect to the sso server.
>>
>> I don't want to do this globally for all exceptions.  Just my one
>> exception "UnAuthenticatedException"
>>
>> However, thanks for your response.
>>
>>
>>   
>> 
>>> Why not create your own exception page?
>>>
>>> You can define a method
>>> public void setException(Throwable value) { ... }
>>> and Tapestry will call this before activating your exception page.
>>>
>>>
>>>
>>>
>>> Phillip Rhodes wrote:
>>> 
>>>   
 I have a checked exception that is thrown from various listeners in my
 tapestry app.  I was hoping that I could use a servlet filter to catch
 these specific exceptions in order to deal with them.

 Is this just something that is impossible to do within the tapestry
 framework due to tapestry having to catch all exceptions for it's error
 reporting/interfacing with the servlet spec...


 thanks.


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



   
 
>>> --
>>> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>>> Tapestry / Tacos developer
>>> Open Source / J2EE Consulting
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>> 
>>>   
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>   
>> 
>
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



Multilingual drop down menu content

2006-08-30 Thread Peter Dawn

guys,

how can i make the content of drop down menu's multi-lingual. the
content is in properties files and my drop down is populated using a
foreach and option.

any ideas.

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



Re: Retrieving table column names

2006-08-30 Thread Peter Dawn

so should i change the current implementation. or can i edit it.

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



Re: Retrieving table column names

2006-08-30 Thread Nick Westgate

Hi Peter.

You're looking for the PropertySelection component and IPropertySelectionModel:
http://tapestry.apache.org/tapestry3/doc/ComponentReference/PropertySelection.html

Cheers,
Nick.


Peter Dawn wrote:

guys,

i am running into this problem within my web app. please help me. i am
using tap3.

now i am retrieving column name information from my tables and
displaying to the user in drop down menus. i retrieve the data using
List columns = new ArrayList();
int columnSize = columns.;
while (rsColumns.next()) {
 columns.add(rsColumns.getString("COLUMN_NAME"));
}
String s = columns.toString();
setColumnList(columns);
rsColumns.close();

so now s contains information like user_username, user_password etc
this being my column names within a particular table. and this
information is visible to the user in drop down menus within my web
app.

within my html i have something like,

  
 
   


now my problem is that i can retrieve data properly, but i want to
display user friendly information to the user. so instead of they
viewing user_username i want to display Username etc. but at the same
time when the select this particular option i want to maintain the
information passed on back to my java code as the original column name
(user_username).

so essentially all i want to do is display user friendly labels but
not change the underlying content. can some genius help me out. i also
need to worry about multi-lingual stuff so somehow this info needs to
be stored in properties files, which i can change on the fly.

please help me.

-
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: Retrieving table column names

2006-08-30 Thread Peter Dawn

why cant i just put all the output into a array or a list. and then
just manually do a replace on each term. i think this might work.

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



Re: Retrieving table column names

2006-08-30 Thread Peter Dawn

and can this output to a drop down menu. i am not using a table within my html

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



Re: Retrieving table column names

2006-08-30 Thread Peter Dawn

i also looked at the source code for the generated page. the option
tag looks like this.

user_username

so essentially, the information sent back is the index of the column
and not the actual column name. i thought it would be like this,
user_username

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



Re: Retrieving table column names

2006-08-30 Thread Peter Dawn

didnt work. this thing would work if i had a contribtable and i could
specify the table header names in the corresponding properties file
but unfortunately not here.

i am still working on it though.

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



Re: Retrieving table column names

2006-08-30 Thread Karthik N

Why don't you consider using @PropertySelection and implement the
IPropertySelectionModel which will wire up to your table columns.

On 8/31/06, Peter Dawn <[EMAIL PROTECTED]> wrote:


guys,

i am running into this problem within my web app. please help me. i am
using tap3.

now i am retrieving column name information from my tables and
displaying to the user in drop down menus. i retrieve the data using
List columns = new ArrayList();
int columnSize = columns.;
while (rsColumns.next()) {
  columns.add(rsColumns.getString("COLUMN_NAME"));
}
String s = columns.toString();
setColumnList(columns);
rsColumns.close();

so now s contains information like user_username, user_password etc
this being my column names within a particular table. and this
information is visible to the user in drop down menus within my web
app.

within my html i have something like,

   
  



now my problem is that i can retrieve data properly, but i want to
display user friendly information to the user. so instead of they
viewing user_username i want to display Username etc. but at the same
time when the select this particular option i want to maintain the
information passed on back to my java code as the original column name
(user_username).

so essentially all i want to do is display user friendly labels but
not change the underlying content. can some genius help me out. i also
need to worry about multi-lingual stuff so somehow this info needs to
be stored in properties files, which i can change on the fly.

please help me.

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





--
Thanks, Karthik


Re: Retrieving table column names

2006-08-30 Thread Peter Dawn

so i dont need to do anything within my java or html file. just within
my properties file, i need to associate each column name with a
corresponding text. and it would display the text but the underlying
functionality would still be the same.

i remember doing something like this for the foreach loop and
specifying the individual table header names.

remember here that the column information is coming straight from the
java file, i am not specifiying any table header names within my html
file.

but i will still give it a try and see how i go.

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



Re: Retrieving table column names

2006-08-30 Thread Mind Bridge

Hi,

In the .properties file of your page (or component) you can add:

user_username=Username
...

and the table headers will automatically become the human-readable strings
that you have defined there.

In addition, there can be several .properties files that depend on the
locale in the standard way, e.g. page_zh.properties would contain the
chinese messages.

Does this work as desired?

-mb


Peter Dawn wrote:
> 
> guys,
> 
> i am running into this problem within my web app. please help me. i am
> using tap3.
> 
> now i am retrieving column name information from my tables and
> displaying to the user in drop down menus. i retrieve the data using
> List columns = new ArrayList();
> int columnSize = columns.;
> while (rsColumns.next()) {
>   columns.add(rsColumns.getString("COLUMN_NAME"));
> }
> String s = columns.toString();
> setColumnList(columns);
> rsColumns.close();
> 
> so now s contains information like user_username, user_password etc
> this being my column names within a particular table. and this
> information is visible to the user in drop down menus within my web
> app.
> 
> within my html i have something like,
> 
>
>selected="ognl:true"/>
> 
> 
> 
> now my problem is that i can retrieve data properly, but i want to
> display user friendly information to the user. so instead of they
> viewing user_username i want to display Username etc. but at the same
> time when the select this particular option i want to maintain the
> information passed on back to my java code as the original column name
> (user_username).
> 
> so essentially all i want to do is display user friendly labels but
> not change the underlying content. can some genius help me out. i also
> need to worry about multi-lingual stuff so somehow this info needs to
> be stored in properties files, which i can change on the fly.
> 
> please help me.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Retrieving-table-column-names-tf2194011.html#a6072165
Sent from the Tapestry - User forum at Nabble.com.


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



Tapernate: session per conversation support ?

2006-08-30 Thread Karthik N

Hello All,

We're really eager to adopt Tapernate for our Tap + Spring + Hibernate
application.  I have a few questions, that would help me understand
Tapernate better:

1) any idea when the session-per-conversation support may be wired in?  I
remember seeing a thread where James had mentioned that it would be done the
clean way.

2) the objects that get stored in the user's HTTP Session - will they keep
incrementally growing, or is there a way to periodically clean them up?

3) We have the need for an OSIV pattern where we want the view -> facade
layer NOT to be in a transaction, but only the facade/dao layer to be in the
transaction.  Would this be achievable with tapernate?

Thanks, Karthik


Re: Is there a way to pregenerate Component/Page classes?

2006-08-30 Thread Bryan Lewis
You're asking to preload all the pages in the app, to check for syntax 
errors in the html and page specs.  Things the compiler doesn't catch, 
that normally you wouldn't discover until you visit the page.  I used to 
do that.  It's not supported directly by Tapestry, but in Tapestry3 it 
wasn't too bad.  The gist of it was:


   Set pageNameSet = requestCycle.getRequestContext().getServlet()
 .getServletConfig().getServletContext()
 .getResourcePaths("/WEB-INF/");

Then each page could be loaded with cycle.getPage(pageName).  It felt 
like sort of a hack, though... I had to do it at a point after startup 
where I could get a requestCycle; I did it in the first login.


In Tap4 it was a little harder to get to the servletContext.  I believe 
it can be obtained from an injected instance of ApplicationGlobals but I 
didn't pursue that technique.  I removed the feature because it slowed 
down development (all the pages had to be loaded after every restart, 
when normally you're editing only one or two), and it didn't catch any 
surprising errors after we got past the flurry of the initial release.  
It felt like more trouble than it was worth.




Patrick Moore wrote:

Is there a way to have Tapestry walk the component/page packages and generate
the .class files?

I would like to do this to make sure that in production there are no errors at
the basic component/page definition level.

Otherwise it seems like I am force to have a script that walks every
page/component just to get the byte code generated.

I don't know if there is a mvn plugin that will do this for me but if there is
please let me know.

-Pat

-
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: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Jonathan Barker
Hi,

I should preface this by saying that the project where I used Acegi had a
strong Spring presence, and tapestry-acegi wasn't available either.

I use a BaseProtectedPage that includes the pagevalidate() code and then
extend it for most of my application.  It's basically the strategy given in
Enjoying Web Development with Tapestry.  I also mentioned I don't use the
AuthenticationProcessingFilter - I use code under a Login page to
authenticate via Acegi, and populate the ASO, and then check for the ASO in
the pageValidate().

There's some ugliness to it all, and I'm looking forward to breaking my
Spring dependence on my next project.

As for the bookmarking, I use a lot of External links.  There have been a
number of threads discussing this and I don't think I've ever seen a really
good solution. I keep hoping. In my pageValidate(), if the service name is
"external", I create an ExternalCallback using the listener parameters, and
pass that callback to the Login page. After authentication, the Login page
invokes the callback. It works OK for simple links. If it's not an external,
I just create a PageCallback and deal with any problems later.

I hope that helps.

JB


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 10:29 AM
> To: users@tapestry.apache.org
> Subject: RE: Populating Tapestry ASO after successful Acegi Auth
> 
> Hi John,
> 
> Just curious. . . would that code need to be inserted in *every* page's
> pageValidate() method considering that a user can bookmark or type in
> any secured URL?
> 
> Acegi will intercept the request, throw up the Login page and then
> redirect to the requested page (which in this example would not be the
> default page and would therefore require it's on pageValidate() code)
> 
> Or is there a more clever way to do this?
> 
> Thanks,
> Tom
> 
> -Original Message-
> From: Jonathan Barker [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 10:05 AM
> To: 'Tapestry users'
> Subject: RE: Populating Tapestry ASO after successful Acegi Auth
> 
> 
> I can't say it's a best practice, but it should be a reasonable
> strategy.
> 
> In your pageValidate() method,
>   if your ASO is not set
>   Authentication auth =
>   SecurityContext.getContext().getAuthentication();
>   If auth is not null
>   Object principal = auth.getPrincipal();
>   If (principal instanceof UserDetails)
>   Cast and put into ASO
> 
> If you are using Hibernate or another persistence framework, and need to
> navigate the object graph from your ASO, reattach / refresh before doing
> it.
> I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
> filter).
> 
> 
> It would be a little neater to extract out all of the Acegi stuff so
> your UI
> code doesn't depend on Acegi.
> 
> 
> Jonathan
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, August 30, 2006 7:34 AM
> > To: users@tapestry.apache.org
> > Subject: Populating Tapestry ASO after successful Acegi Auth
> >
> > Greetings:
> >
> > I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> > authentication using the AuthenticationProcessingFilter.  I have a
> > requirement to place the domain object the Acegi UserDetails object is
> > based upon into a Tapestry ASO for use during the user session. =20
> >
> > My question is: what the best practice for filling the Tapestry ASO
> with
> > the domain model's user object upon successful authentication with
> > Acegi?
> >
> > Thanks,
> >
> > -jason
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Retrieving table column names

2006-08-30 Thread Peter Dawn

guys,

i am running into this problem within my web app. please help me. i am
using tap3.

now i am retrieving column name information from my tables and
displaying to the user in drop down menus. i retrieve the data using
List columns = new ArrayList();
int columnSize = columns.;
while (rsColumns.next()) {
 columns.add(rsColumns.getString("COLUMN_NAME"));
}
String s = columns.toString();
setColumnList(columns);
rsColumns.close();

so now s contains information like user_username, user_password etc
this being my column names within a particular table. and this
information is visible to the user in drop down menus within my web
app.

within my html i have something like,

  
 
   


now my problem is that i can retrieve data properly, but i want to
display user friendly information to the user. so instead of they
viewing user_username i want to display Username etc. but at the same
time when the select this particular option i want to maintain the
information passed on back to my java code as the original column name
(user_username).

so essentially all i want to do is display user friendly labels but
not change the underlying content. can some genius help me out. i also
need to worry about multi-lingual stuff so somehow this info needs to
be stored in properties files, which i can change on the fly.

please help me.

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



Re: Is there a way to pregenerate Component/Page classes?

2006-08-30 Thread Patrick Moore
1. So that I know that there are no problems with any component or page.
Otherwise how do I know a customer isn't going to find a problem on the
production site?

2. So that no user experiences any delay after a server restart.

3. So that in a cluster the bytecode generation is only done once.

4. So if the server restarts it is not obvious to any user.

Considering how slow it can be to generate new components and pages why would I
want it done while a customer is trying to use the site?

--- "hv @ Fashion Content" <[EMAIL PROTECTED]> wrote:

> Uh, what??
> 
> You sure you are are referring to Tapestry? Why would you want generate a 
> class file?
> 
> "Patrick Moore" <[EMAIL PROTECTED]> skrev i en meddelelse 
> news:[EMAIL PROTECTED]
> > Is there a way to have Tapestry walk the component/page packages and 
> > generate
> > the .class files?
> >
> > I would like to do this to make sure that in production there are no 
> > errors at
> > the basic component/page definition level.
> >
> > Otherwise it seems like I am force to have a script that walks every
> > page/component just to get the byte code generated.
> >
> > I don't know if there is a mvn plugin that will do this for me but if 
> > there is
> > please let me know.
> >
> > -Pat
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Redirecting problem

2006-08-30 Thread Jesse Kuhnert

It's a java problem.

Java gets more than a little confused when you have multi homed machines. I
don't remember the details but you can override this in some way...Maybe by
fixing your /etc/hostnames or passing in a -D<> option to the jvm using some
special configuration directive java.net knows about.

On 8/30/06, Pablo Ruggia <[EMAIL PROTECTED]> wrote:


Hi !!

I've configured tomcat through an apache server, using ajp workers.
The thing is that if I do getPageService().getLink(false, getPageName())
and
return it in my listener   (redirect after post) i get redirected to the
internal address of the server, not the internet domain.

Is this a tomcat configuration problem, an apache configuration problem or
an application configuration problem ?

Thanks !





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread Mind Bridge

Howard sugested Geoff as a Tapestry committer entirely based on his work on
Spindle. In addition Geoff specifically asked you NOT to hijack his name for
your vendetta. Do the facts matter to you at all?

Secondly, I presume you have written code that adds the T4 features to T3,
while keeping it absolutely compatible. Is that correct? 

If this is not so, then your repeated comments are no longer constructive
criticism, but trolls instead, aimed to further an agenda that has nothing
to do with Tapestry at all. Interestingly, the very fact that you consider
Tapestry important enough to warrant your attention means that it is a very
good alternative to what you really care about and must be eliminated at all
costs. Thank you, we should be honored that you think so highly of Tapestry!


Francis Amanfo wrote:
> 
> Henrik,
> 
> Stop dreaming. If what you're saying is valid then we should have got
> Spindle for Tap 4 now.
> The fact of the matter is Howard just didn't listen to Geoff. With
> Howard's
> current opinion on tools, I don't think he would make a tool drive his
> fanatic and radical design decisions.
> 
> My .02 cent.
> F
> 
> On 8/30/06, hv @ Fashion Content <[EMAIL PROTECTED]> wrote:
>>
>> I think the best thing is building on WST and Tap5, while Tap5 is
>> developed.
>> The amount of special tooling needed for Tap5 should be limited.
>>
>> Judging form Geoff's posts the main problem with Spindle for Tap4 is the
>> large number of possible ways to configure an application. One of the
>> goals
>> for Tap5 is to simplify. So if we can start over on a new Spindle while
>> Tap5
>> is
>> still in its infancy, we can perhaps ensure that the simplicity is
>> achieved
>> from
>> the perspective of tooling.
>>
>> Henrik
>>
>> "Hugo Palma" <[EMAIL PROTECTED]> skrev i en meddelelse
>> news:[EMAIL PROTECTED]
>> > Since Geoff decided to leave the Spindle project i've been thinking
>> about
>> > the future of TapIDEA. As many of you know, TapIDEA is built on top of
>> > Spindle, which means "No Spindle" -> "No TapIDEA".
>> >
>> > There are several scenarios that can be put into account in the current
>> > situation, and after a long consideration here are my conclusions.
>> >
>> > Someone else picks up Spindle where Geoff left off:
>> > I honestly don't think this is going to happen. AFAIK Spindle was a one
>> > man project so no one else has the know how to quickly get into gear
>> with
>> > the project. Some might think that that person could be me, and indeed
>> > i've become familiar with Spindle internals during the development of
>> > TapIDEA. But, there's the free time factor. I just wouldn't be able to
>> > find the time to do it.
>> > Still, if this scenario were to be become true, TapIDEA would live on.
>> >
>> > Spindle for T4 dies, a new project is born:
>> > Ok, so no Spindle and no TapIDEA for T4. What about T5 ? As Geoff as
>> > pointed out, T5 support is going to require an almost complete rewrite
>> of
>> > Spindle. So, in this scenario someone would implement Spindle(or create
>> a
>> > whole new project) for IDE support for T5, and TapIDEA would follow. I
>> > find that this is the scenario with the most chances of becoming
>> reality.
>> >
>> > Spindle and TapIDEA die for good:
>> > Well, there's always the possibility that no one will volunteer to
>> > continue our efforts of bringing IDE support to Tapestry. In this
>> scenario
>> > both Spindle and TapIDEA end their lives now.
>> >
>> >
>> > The TapIDEA project will be "hibernating" until one of these(or any
>> other)
>> > scenarios become reality.
>> > I guess now it's up to the community to present their ideas about this.
>> I
>> > hope that, together, we can give our contribution to making Tapestry
>> IDE
>> > support a reality.
>> >
>> > Cheers,
>> >
>> > Hugo
>> >
>> >
>> > -
>> > 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]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TapIDEA-future%2C-post-%22Time-to-move-on%22-tf2179878.html#a6071765
Sent from the Tapestry - User forum at Nabble.com.


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



Exception not being caught by engine

2006-08-30 Thread Vinicius Carvalho

Hello there (my other email [EMAIL PROTECTED] is under maintenance for
over 3 days now...).
I've built a chat system using Tapestry and Spring (thanks to all the help
I've got here), and now I'm just giving it the final touch. I'm not being
able to capture an exception on my service, I'll try to explain my
architecture in the best way my bad english can :P

I have a ChatServer class which handle all the rooms on the system. This
class is managed by spring, so it's a Stateless class. I have created an
Tapestry Engine Service, to handle ajax submissions, it's called
ChatListenerService (and it is used by the ChatListenerComponent), its main
responsibility is just to trigger the listener associated to the component
get the response (a list of messages) and render it in xml: here's a
snippet:

 try{
   chatListener.trigger(cycle);
   Object[] args = cycle.getListenerParameters();
   messages = (Collection)args[0];
   }catch(ChatServerException e){
   WebSession session = cycle.getInfrastructure
().getRequest().getSession(true);
   session.invalidate();
   ErrorMessage message = new ErrorMessage();
   message.setCause(e.getMessage());
   message.setRedirect(Boolean.TRUE);
   messages = new ArrayList();
   messages.add(message);
   }
   PrintWriter writer = response.getPrintWriter(new
ContentType("text/xml"));
   response.setHeader("Cache-Control", "no-cache");
   String xml = generateMessageOutput(messages);
   writer.write(xml);
   writer.flush();

I think this is pretty straight forward. I try to call the listener, if it
throws an exception, I invalidate the user session, and put an error message
for it (the client side handles message types: User, Error and System).

My Page listener is as simple as this:

public void onMessageReceive(IRequestCycle cycle){
   try{
   cycle.setListenerParameters(new
Object[]{getChatServer().deQueueMessage(getUser())});
   }catch (ChatServerException e) {
   logger.error(e);
   throw e;
   }
   getUser().setLastRequest(Calendar.getInstance());
   }

once again pretty straight, I have ChatServer injected on my page, it
dequeues all messages from it from the given user, and set it on the request
cycle.

Now, what's strange is that, the exception never reaches the
ChatListenerService. I have some logging that I've omitted there, that shows
the step by step when on debug mode, and I get service -> onMessageReceive
-> catch block from page, but not the catch from the engine.

The exception is a subclass of RunTimeException. I was wondering that could
be some kind of Tapestry's proxy feature of how dealing with exceptions or
something like that.

Does anyone has any idea of what could be avoiding the exception to be
caught?

Best Regards


Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread Pedro Viegas

Well, after months of Tap4 programming eagerly waiting for Spindle for Tap4,
and looking over my shoulder for TapIDEA that seemed closer and made me
consider trying IntelliJ... all comes down!

Nothing I can say regarding how important IDE support is that has not been
said before.
Kranga really said IMO the most important fact. We all have bills to pay.
Tapestry is not what it is, has not the legions behind it from home made,
helloworld like, small or even bug non profitable projects. Of course those
exist, hell I'm working on one right now... but as for real world projects,
as for Companies to back down Tapestry as their base framework, in order for
Tapestry to get the acceptance it deserves... these compatibility breakers
are really not helping.

So talking of IDE suport, apparently we have always had the Tapestry code
and the IDE code. The IDE code has to go deep into Tapestry internals in
order to get what is needs, in order to do it's work. So a little flick of
Tapestry and the IDE breaks.
Geoff started to create an IDE agnostic core to a Tapestry plugin if I
understood it correctly. Good, several tools could build on top of this
common layer... but, still Tapestry had sort of it's back turned to these
needs and projects and a little change in Tapestry, this plugin common core
had to be refactored (here we at least have one fix solving all Tools
specific IDE plugins working again).

So what's wrong with this picture (IMHO), it needs more cooperation and more
Abstraction Layers.
We have obviously some of the best Java minds in the business in our
community. Some of the best software architects available. Can't we think of
a better way of using the resources available? The time we can spend
individually in cooperation and not in different paths?

Why can't we have for instance something like this:
(Bare in mind I know nothing of the Tapestry internals and have not ever
looked into any of the IDE tools source, just trying to help in theory to
see if there a better way...)

1st layer:
Tapestry commiters develop Tapestry and create rocket science that we all
bow to each time it is released! :-D (I do at least!)

2nd Layer:
An abstraction API witch is maintained through joined efforts of Tapestry
commiters and IDE Tooling developers with the goal of making the bridge from
the Tapestry techy-up-to-date and more volatile and the more consistent
objectives of the IDE tools. The release of a new Tapestry would have to
include this API working as an integrated part of itself. (with this I know
I will get some violent remarks back!) - Tapestry would not make into, say
Beta stage without a first working draft of this API.

3rd Layer: Something the likes of what Geoff constructed, the Tools Core API
for Tapestry. Something that all IDE tools use and rely on for
compatibility, something that shields them from most Tapestry changes in the
other layers. This would be maintained by IDE tooling developers to have a
common core to fit their needs. The more hardcore technical details and the
major changes in Tap would normally not have impact on this layer, having
being "translated" by the previous one.

4th Layer: Several IDE Tooling developers build specific IDE plugins on top
of this previous layer, confiding in it's solid compatibility and
abstraction of evolution beneath it

I'm thinking out loud here but somehow I feel that cooperation is the key.
We have so many willing by what it seems, but the way it is now it's
difficult to set your heart to it. It looks like an impossible task because
all the work that one does will be thrown away by the next Tap.
I would really like to get a post here from Howard. The post Francis quoted
out of Howard's blog I try to interpret has tooling is not a solution to
lack of productivity, that if a framework is nor productive by nature, than
it is not tooling that will solve this. I can not and I think Howard did not
wish to convey the idea that even for a productive by nature framework like
Tapestry is, it does not benefit from Tooling support. That the learning
curve, the ease to pull new resources in little time of different
technically expertise to a problematic project, that even an experienced
developer can not magnify it's productivity with the help of a good tooling.

By the shear quantity of posts that we get every time this issue gets
mentioned on the list we can get a very good image of the general community
position on this. A very good percentage miss tool support. The majority of
the posts are saying that their productivity and real world acceptance of
Tapestry would benefit from this, so I think is not a matter of it is
needed, but a mater of how can the Tapestry community respond to this
necessity with the time given by some very revered members of our
community... and some other that with the right conditions would probably
jump in!

So pardon my long post and my apparent lack of humility in proposing those
layers for this problem.
I am only trying help us all to sli

Re: Unable to locate resource library?

2006-08-30 Thread hv @ Fashion Content
I usually got that with Tap3 after adding components to my library. I assume 
you haven't changed the tapestry contrib, so
all I can suggest is to restart your Servlet container.

"Jasper Huzen" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
I'm trying to build a test project with Tapestry.



I'm just trying to use the Contrib library, but I get the problem with
including (location) the library file.



The browser gives the next message:

Unable to locate resource 'org/apache/tapestry/contrib/Contrib.library'
relative to context:/WEB-INF/test.application.



My test.application file looks like:





http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>



  

  





The tapestry-contrib-4.0.2.jar file is after deploy found in the /lib
map (where the other Tapestry libs are also found).



Any solution?

















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



Re: Is there a way to pregenerate Component/Page classes?

2006-08-30 Thread hv @ Fashion Content
Uh, what??

You sure you are are referring to Tapestry? Why would you want generate a 
class file?

"Patrick Moore" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Is there a way to have Tapestry walk the component/page packages and 
> generate
> the .class files?
>
> I would like to do this to make sure that in production there are no 
> errors at
> the basic component/page definition level.
>
> Otherwise it seems like I am force to have a script that walks every
> page/component just to get the byte code generated.
>
> I don't know if there is a mvn plugin that will do this for me but if 
> there is
> please let me know.
>
> -Pat
>
> -
> 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: @EventListener question

2006-08-30 Thread Pedro Viegas

Point taken!
No less appreciation though! :-D

Thanks all the same Jesse!
And keep the spirits up on the Tap 4.1 road ahead... we're all salivating
with the released new features! ;-)
Keep 'em coming, and the stability of this Alpha makes very Betas I know
more than a little embarrassed!

Regards,

On 8/29/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


I should make a note of it one last time so that guilt doesn't drive me
mad...

The @EventListener annotation was originally Howard's idea, I just
implemented it. I'm sure this will be a common occurrence as more and more
of T5 evolves. (as much as makes sense/is possible at least)

On 8/28/06, Andy Pahne <[EMAIL PROTECTED]> wrote:
>
>
> works like a charm with SNAPSHOT...
>
> Pedro Viegas schrieb:
> > Yep, all I said only works if you submit the form in async mode.
> > Be aware that until somewhere last week that had problems. You must
use
> the
> > current SNAPSHOT for this to work.
> > If you submit the form asyncronously the validation of the other
fileds
> > wont
> > be a problem and all should work.
> >
> > Regards,
> >
> > On 8/28/06, Andy Pahne <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> I can't submit it because the user has to fill in some more fields.
> >>
> >> Maybe I am wrong. There is nothing about submitting the form (async).
I
> >> will try that. The user then might fill in the rest...
> >>
> >> Thanks,
> >> Andy
> >>
> >> Pedro Viegas schrieb:
> >> > Hi there Andy,
> >> >
> >> > Why can't you submit the form like you say?
> >> > If you read the bottom comments on:
> >> > http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html
> >> >
> >> > You'll see that...
> >> > "When your
> >> > listener<
> >>
http://tapestry.apache.org/tapestry4.1/UsersGuide/listenermethods.html
> >is
> >> >
> >> > invoked you can be confident that your
> >> > projectSelect
> >> > Autocomplete<
> >>
>
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/dojo/form/Autocompleter.html
> >>
> >> >component
> >> >
> >> > has also been updated to reflect the currently selected value.
> >> >
> >> > As an added bonus, form validation is turned off by default with
the
> >> > EventListener<
> >>
>
http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html#EventListener
> >>
> >> >annotation
> >> >
> >> > as the majority use case is likely to be one off individual
> >> > events where invoking client side validation would be a cumbersome
> >> > experience for users."
> >> > So, according to this there is no problem with the other fields
being
> >> > submitted since the client validation will not be activated. So I
> think
> >> > you've got the answer all along. :-D
> >> >
> >> > Regards,
> >> >
> >> >
> >> > On 8/28/06, Andy Pahne <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >>
> >> >> Currently I am playing with the new @EventListener feature and I
> like
> >> it
> >> >>   very much. That's how Ajax should be.
> >> >>
> >> >> I have a question: in the form there are two @PropertySelection
> >> >> components. The second one is supposed the change it's selected
> value
> >> >> dependant on the first one. Both PropertySelections are connected
to
> a
> >> >> page property.
> >> >>
> >> >> This is my listener:
> >> >>
> >> >> @EventListener(events = "onchange", elements = "countrySelection")
> >> >> public void countryChanged(IRequestCycle cycle) {
> >> >>  cycle.getResponseBuilder
().updateComponent("regionSelection");
> >> >> }
> >> >>
> >> >>
> >> >> Submitting the form (asyn or not) like I saw in the TimeTracker
demo
> >> >> application is not an option because there are more form fields
the
> >> user
> >> >> is supposed to fill out. So this one will not work for me:
> >> >>
> >> >>
> >> >> @EventListener(events = "onchange",
> >> >>  elements = "countrySelection"  submitForm = "myForm")
> >> >> public void countryChanged(IRequestCycle cycle) {
> >> >>  cycle.getResponseBuilder
().updateComponent("regionSelection");
> >> >> }
> >> >>
> >> >>
> >> >> So: how can I access the value of the
> >> >> [EMAIL PROTECTED]'s value that triggerd the
> listener
> >> >> method? I think that the page property is not yet updated by my
> async
> >> >> request because the form was not submitted.
> >> >>
> >> >> Thanks,
> >> >> Andy
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> >>
> >> >>
> >> >
> >> >
> >>
> >> --
> >> Andy Pahne
> >>
> >> Email [EMAIL PROTECTED]
> >> Telefon   +49 (721) 722 84 67
> >> Mobil +49 (174) 171 68 70
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> Andy Pahne
>
> Email [EMAIL PROTECTED]
> Telefon   +49 (721) 722 84 67
> Mobil +49 (174) 171 68 70
>
> ---

Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread Francis Amanfo

Henrik,

Stop dreaming. If what you're saying is valid then we should have got
Spindle for Tap 4 now.
The fact of the matter is Howard just didn't listen to Geoff. With Howard's
current opinion on tools, I don't think he would make a tool drive his
fanatic and radical design decisions.

My .02 cent.
F

On 8/30/06, hv @ Fashion Content <[EMAIL PROTECTED]> wrote:


I think the best thing is building on WST and Tap5, while Tap5 is
developed.
The amount of special tooling needed for Tap5 should be limited.

Judging form Geoff's posts the main problem with Spindle for Tap4 is the
large number of possible ways to configure an application. One of the
goals
for Tap5 is to simplify. So if we can start over on a new Spindle while
Tap5
is
still in its infancy, we can perhaps ensure that the simplicity is
achieved
from
the perspective of tooling.

Henrik

"Hugo Palma" <[EMAIL PROTECTED]> skrev i en meddelelse
news:[EMAIL PROTECTED]
> Since Geoff decided to leave the Spindle project i've been thinking
about
> the future of TapIDEA. As many of you know, TapIDEA is built on top of
> Spindle, which means "No Spindle" -> "No TapIDEA".
>
> There are several scenarios that can be put into account in the current
> situation, and after a long consideration here are my conclusions.
>
> Someone else picks up Spindle where Geoff left off:
> I honestly don't think this is going to happen. AFAIK Spindle was a one
> man project so no one else has the know how to quickly get into gear
with
> the project. Some might think that that person could be me, and indeed
> i've become familiar with Spindle internals during the development of
> TapIDEA. But, there's the free time factor. I just wouldn't be able to
> find the time to do it.
> Still, if this scenario were to be become true, TapIDEA would live on.
>
> Spindle for T4 dies, a new project is born:
> Ok, so no Spindle and no TapIDEA for T4. What about T5 ? As Geoff as
> pointed out, T5 support is going to require an almost complete rewrite
of
> Spindle. So, in this scenario someone would implement Spindle(or create
a
> whole new project) for IDE support for T5, and TapIDEA would follow. I
> find that this is the scenario with the most chances of becoming
reality.
>
> Spindle and TapIDEA die for good:
> Well, there's always the possibility that no one will volunteer to
> continue our efforts of bringing IDE support to Tapestry. In this
scenario
> both Spindle and TapIDEA end their lives now.
>
>
> The TapIDEA project will be "hibernating" until one of these(or any
other)
> scenarios become reality.
> I guess now it's up to the community to present their ideas about this.
I
> hope that, together, we can give our contribution to making Tapestry IDE
> support a reality.
>
> Cheers,
>
> Hugo
>
>
> -
> 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: TapIDEA future, post "Time to move on"

2006-08-30 Thread Francis Amanfo

Thanks Kranga for hiting the nail on the head. I however want to complete
your list of other exciting frameworks by citing GWT which is also a very
compelling framework.

Regards,
F

On 8/30/06, kranga <[EMAIL PROTECTED]> wrote:


While one can disagree about the actual productivity increase offered by
an
IDE plugin, you can't deny that it is a major plus for new adoptions. That
said, I think Tapestry is in a unique situation with the incompatibility
between T3, 4 and 5. We've developed some large applications using T3 and
given the direction Tap is heading in, are definitely going to evaluate
other frameworks when we think of upgrading (high barrier to upgrade
implies
lower barrier to exit the platform). As it is, I have no incentive to
adopt
T4 when T5 is going to be different. By the time T5 matures, there will be
several other frameworks (including Wicket, Echo2 and perhaps even .NET
2.0)
that will be exciting alternatives. At the end of the day, even though I
am
a technologist at heart, technology exists because of business and
businesses don't care about how "cool" your internal architecture is, they
care about not spending millions to just upgrade to the latest without a
proportional increase in business functionality or decrease in cost of
operations neither of which are the case here IMHO.

Now before you respond, please note this is my personal experience. I'm
sure
others will beg to disagree. I am making this post for those in a similar
situation aware of this being a shared experience (I know people have
posted
of how they vouched for Tapestry only to look not so favorable a few years
down the road). With the current trend future compatibility will always be
broken because there will always be the next great thing and so the
temptation to make T6 incompatible. T3 for all its worth gives me enough
so
I can weigh options and evaluate trends with leisure.

T3: Judgement day!


- Original Message -
From: "andyhot" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Tuesday, August 29, 2006 8:10 PM
Subject: Re: TapIDEA future, post "Time to move on"


> spindle-core (for Tap4) does this way in an IDE independent way.
>
> I was taking a look at it 4 months ago, and I was able to do exactly
this.
> For instance:
> public static void main(String[] args) {
>TapestryCore core = new TapestryCore(new TestLogger(),
>new LocalCoreListeners(), new LocalPreferenceSource());
>ITapestryProject project = new LocalProject();
>LocalBuild build = new LocalBuild(project);
>
>build.build(false, new HashMap());
>
>System.out.println(build.problemPersister);
>}
>
> All Local* classes where my implementations for the IDE-agnostic
> interfaces
> that spindle-core provides.
> When i first tried it, it did output a few non errors (i think it didn't
> understand default-value)
> so I don't know what (other) errors currently exist.
> I can give the latest version a try in a big project and see how it
goes.
>
> Konstantin Ignatyev wrote:
>> Agreed, but that could be done as build time 'check'
>> step. Something like JSP compiler task
>> http://ant.apache.org/manual/OptionalTasks/jspc.html
>>
>> I think it could be easier to create than full IDE
>> plugin and such core service might be a very good
>> foundation for people willing to build IDE specific UI
>> layer atop of it.
>>
>> --- D&J Gredler <[EMAIL PROTECTED]> wrote:
>>
>>
>>> I mostly agree with you that current tooling gets us
>>> pretty far, but there's
>>> a lot to be said for turning the most frequent
>>> "runtime" errors into
>>> "compile-time" errors, something that often requires
>>> special Tapestry
>>> awareness.
>>>
>>> On 8/29/06, Konstantin Ignatyev
>>> <[EMAIL PROTECTED]> wrote:
>>>
>>>
 My point is that in case of Tapestry/Wicket there

>>> is
>>>
 no need to worry much about tools, because

>>> existing
>>>
 ones provide pretty good environment to work

>>> within.
>>>
 Therefore focus on APIs and conventions seems very
 reasonable to me.



>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> -
> 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]




Is there a way to pregenerate Component/Page classes?

2006-08-30 Thread Patrick Moore
Is there a way to have Tapestry walk the component/page packages and generate
the .class files?

I would like to do this to make sure that in production there are no errors at
the basic component/page definition level.

Otherwise it seems like I am force to have a script that walks every
page/component just to get the byte code generated.

I don't know if there is a mvn plugin that will do this for me but if there is
please let me know.

-Pat

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



Redirecting problem

2006-08-30 Thread Pablo Ruggia

Hi !!

I've configured tomcat through an apache server, using ajp workers.
The thing is that if I do getPageService().getLink(false, getPageName()) and
return it in my listener   (redirect after post) i get redirected to the
internal address of the server, not the internet domain.

Is this a tomcat configuration problem, an apache configuration problem or
an application configuration problem ?

Thanks !


Re: The right way to look up a service?

2006-08-30 Thread hv @ Fashion Content
You seem to ask conflicting questions. I don't see why you would need to 
look up a service from an asset. Asset is a value holding object, so you
would want to keep it as independent as possible.

In terms of how to look up a service, you would use HiveMind configuration 
when the object isn't a page/component.

Assets are best created using the "tapestry.asset" HiveMind package of 
factories.

Henrik

"Julian Sinai" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Hi
>
> I'm writing my own engine service and I'm basing it on the Chart example 
> in the Workbench app that ships with the Tapestry distribution. The 
> example uses a line in ChartAsset.java that's deprecated in Tap 4:
>
>_chartService = engine.getService(ChartService.SERVICE_NAME);
>
> The service is used to build the ILink in the buildURL method as follows:
>
>ILink l = _chartService.getLink(false, _chartProvider);
>
> What's the right way to do this in Tap 4? You can't use @InjectObject in 
> an asset class.
>
> Thanks.
>
>
>
> -
> 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]



Tassel Data List

2006-08-30 Thread Waimun Yeow

Hi,

Does anyone know how the Data List (Tassel component) works? I  
downloaded the component but found no documentation/demo/example. The  
link to the website does not appear to be legitimately tapestry.  Can  
someone suggest what is a good approach of doing pagination in Tap 3?


Thanks,
waimun.

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



RE: Tapestry 4.0.2 and Tapernate problem

2006-08-30 Thread Xiaoshu Wang
Does anyone has a clue about this?  It seems that once the server idles for
a while, it will bump into this problem and kills the application.  From
what I can understand, my guess is that this is probably a spring bugs.  (I
have upgrade spring to 1.2.8 but with no success).   But, tapernate uses
spring and if this problem cannot be solved, it will hurt the tapernate's
usefulness as well.

Xiaoshu

> -Original Message-
> From: Xiaoshu Wang [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, August 26, 2006 10:05 AM
> To: 'Tapestry users'
> Subject: Tapestry 4.0.2 and Tapernate problem
> 
> Hi,
> 
> I have a problem with using Tapestry/Tapernate.  The server 
> will run O.K.
> for a couple of days and will run into an application 
> exception of the following (see the exception stack trace 
> shown below.  And the exception seems not caused by 
> application code because there is none shown in the exception 
> trace. Even if I have a catch clause that should be able to 
> trap the exception by my application code because I turned 
> the transaction-per-request off and use the method 
> interceptor to do the transaction management.  The server is 
> Tomcat 5.0.25 and cp30 is used for pooling the connection.  
> 
> Xiaoshu  
> 
> Exception stack as follows,
> 
> javax.servlet.ServletException: Could not commit Hibernate 
> transaction; nested exception is 
> org.hibernate.TransactionException: JDBC commit failed
>   
> org.apache.tapestry.services.impl.WebRequestServicerPipelineBr
> idge.service(W
> ebRequestServicerPipelineBridge.java:60)
>   
> $ServletRequestServicer_10d46119614.service($ServletRequestSer
vicer_10d46119
> 614.java)
>   
> org.apache.tapestry.request.DecodedRequestInjector.service(Dec
> odedRequestInj
> ector.java:55)
>   
> $ServletRequestServicerFilter_10d46119610.service($ServletRequ
estServicerFil
> ter_10d46119610.java)
>   
> $ServletRequestServicer_10d46119616.service($ServletRequestSer
vicer_10d46119
> 616.java)
>   
> org.apache.tapestry.multipart.MultipartDecoderFilter.service(M
> ultipartDecode
> rFilter.java:52)
>   
> $ServletRequestServicerFilter_10d4611960e.service($ServletRequ
estServicerFil
> ter_10d4611960e.java)
>   
> $ServletRequestServicer_10d46119616.service($ServletRequestSer
vicer_10d46119
> 616.java)
>   
> org.apache.tapestry.services.impl.SetupRequestEncoding.service
> (SetupRequestE
> ncoding.java:53)
>   
> $ServletRequestServicerFilter_10d46119612.service($ServletRequ
estServicerFil
> ter_10d46119612.java)
>   
> $ServletRequestServicer_10d46119616.service($ServletRequestSer
vicer_10d46119
> 616.java)
>   
> $ServletRequestServicer_10d46119608.service($ServletRequestSer
vicer_10d46119
> 608.java)
>   
> org.apache.tapestry.ApplicationServlet.doService(ApplicationSe
> rvlet.java:123
> )
>   
> org.apache.tapestry.ApplicationServlet.doGet(ApplicationServle
> t.java:79)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
>   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> 
> root cause
> 
> org.apache.hivemind.ApplicationRuntimeException: Could not 
> commit Hibernate transaction; nested exception is 
> org.hibernate.TransactionException: JDBC commit failed
>   
> org.apache.tapestry.error.ExceptionPresenterImpl.presentExcept
> ion(ExceptionP
> resenterImpl.java:64)
>   
> $ExceptionPresenter_10d461195db.presentException($ExceptionPre
senter_10d4611
> 95db.java)
>   
> $ExceptionPresenter_10d461195da.presentException($ExceptionPre
senter_10d4611
> 95da.java)
>   
> org.apache.tapestry.engine.AbstractEngine.activateExceptionPag
> e(AbstractEngi
> ne.java:121)
>   
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngi
> ne.java:280)
>   
> org.apache.tapestry.services.impl.InvokeEngineTerminator.servi
> ce(InvokeEngin
> eTerminator.java:60)
>   
> $WebRequestServicer_10d46119634.service($WebRequestServicer_10
d46119634.java
> )
>   
> com.javaforge.tapestry.tapernate.filter.TapernateFilter.servic
> e(TapernateFil
> ter.java:108)
>   
> $WebRequestServicerFilter_10d46119632.service($WebRequestServi
cerFilter_10d4
> 6119632.java)
>   
> $WebRequestServicer_10d46119636.service($WebRequestServicer_10
d46119636.java
> )
>   
> $WebRequestServicer_10d4611962e.service($WebRequestServicer_10
d4611962e.java
> )
>   
> org.apache.tapestry.services.impl.WebRequestServicerPipelineBr
> idge.service(W
> ebRequestServicerPipelineBridge.java:56)
>   
> $ServletRequestServicer_10d46119614.service($ServletRequestSer
vicer_10d46119
> 614.java)
>   
> org.apache.tapestry.request.DecodedRequestInjector.service(Dec
> odedRequestInj
> ector.java:55)
>   
> $ServletRequestServicerFilter_10d46119610.service($ServletRequ
estServicerFil
> ter_10d46119610.java)
>   
> $ServletRequestServicer_10d46119616.service($ServletRequestSer
vicer_10d46119
> 616.java)
>   
> org.apache.tapestry.multipart.MultipartDecoderFilter.service(

Obtaining Messages for different Locale

2006-08-30 Thread Greg.L.Cormier
I have a Tapestry 4 page that generates some reports in 2 languages, English or 
French.

The page itself can be view in English/French like a regular bilingual 
application. However regardless of which language you're using to surf the 
application, this page will generate 2 reports, one in each language.

How can I use the Message handling of Tapestry for this? My issue is in my 
Page, I have for example

okButtion (Cycle aCycle)
{
  ReportingFoobar foo = new ReportingFoobar(getMessages());
  foo.generateReports();
}


However, as you can see, foo only has access to 1 Messages object, which is the 
Locale the user is currently browsing in.

How can I pass the POJO 2 Messages objects, one for each Locale? I've tried 
forcing a setLocale() before the getMessages() calls but you can't change a 
pages Locale when you're already inside!!

Thanks,
Greg


Re: tapestry ajax IE image caching and headers...

2006-08-30 Thread hv @ Fashion Content
On the topic of Cache-Control:, I think it would be nice to be able to make 
the data model provide the basis for time-to-live. I'm thinking
@Table model etc.

Henrik

"Jesse Kuhnert" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Or you could just tell me what you need and I can add it :)
>
> I'm especially interested in making caching/anything to do with 
> AssetService
> better.
>
> Can you elaborate more on what these post/pre check parameters are for and
> which browsers/content types they apply to?
>
> On 8/25/06, Josh Long <[EMAIL PROTECTED]> wrote:
>>
>> I'm using tapestry with ajax and a significant amount of images and
>> only in this light in IE has a caching bug cropped up.
>>
>> What's the most approrpiate place to set a header of
>>
>> Cache-Control: post-check=900,pre-check=3600
>>
>> in tapestry for images? Is it conceivable that the asset service could
>> be usefully changed from outside? Would I just add it to the headers
>> of my otherwise very dynamic pages? Heck, from where is it in even
>> safe to issue a httpservletresponse.setHeader? prepareForRender ? Are
>> there better ways of doing this (namely telling iE to cache all my
>> images even if theyre inserted via ajax? )
>>
>> Thanks,
>>
>> Josh
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -- 
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
> 




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



Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread Jesse Kuhnert

Even better would be to have the plugins in question supported by a real
bonafied eclipse project..One of the side effects of our loose association
with dojo is that we have access to a lot more inside people in various
projects...Including eclipse.

On 8/30/06, hv @ Fashion Content <[EMAIL PROTECTED]> wrote:


I think the best thing is building on WST and Tap5, while Tap5 is
developed.
The amount of special tooling needed for Tap5 should be limited.

Judging form Geoff's posts the main problem with Spindle for Tap4 is the
large number of possible ways to configure an application. One of the
goals
for Tap5 is to simplify. So if we can start over on a new Spindle while
Tap5
is
still in its infancy, we can perhaps ensure that the simplicity is
achieved
from
the perspective of tooling.

Henrik

"Hugo Palma" <[EMAIL PROTECTED]> skrev i en meddelelse
news:[EMAIL PROTECTED]
> Since Geoff decided to leave the Spindle project i've been thinking
about
> the future of TapIDEA. As many of you know, TapIDEA is built on top of
> Spindle, which means "No Spindle" -> "No TapIDEA".
>
> There are several scenarios that can be put into account in the current
> situation, and after a long consideration here are my conclusions.
>
> Someone else picks up Spindle where Geoff left off:
> I honestly don't think this is going to happen. AFAIK Spindle was a one
> man project so no one else has the know how to quickly get into gear
with
> the project. Some might think that that person could be me, and indeed
> i've become familiar with Spindle internals during the development of
> TapIDEA. But, there's the free time factor. I just wouldn't be able to
> find the time to do it.
> Still, if this scenario were to be become true, TapIDEA would live on.
>
> Spindle for T4 dies, a new project is born:
> Ok, so no Spindle and no TapIDEA for T4. What about T5 ? As Geoff as
> pointed out, T5 support is going to require an almost complete rewrite
of
> Spindle. So, in this scenario someone would implement Spindle(or create
a
> whole new project) for IDE support for T5, and TapIDEA would follow. I
> find that this is the scenario with the most chances of becoming
reality.
>
> Spindle and TapIDEA die for good:
> Well, there's always the possibility that no one will volunteer to
> continue our efforts of bringing IDE support to Tapestry. In this
scenario
> both Spindle and TapIDEA end their lives now.
>
>
> The TapIDEA project will be "hibernating" until one of these(or any
other)
> scenarios become reality.
> I guess now it's up to the community to present their ideas about this.
I
> hope that, together, we can give our contribution to making Tapestry IDE
> support a reality.
>
> Cheers,
>
> Hugo
>
>
> -
> 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]





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread hv @ Fashion Content
I think the best thing is building on WST and Tap5, while Tap5 is developed.
The amount of special tooling needed for Tap5 should be limited.

Judging form Geoff's posts the main problem with Spindle for Tap4 is the
large number of possible ways to configure an application. One of the goals
for Tap5 is to simplify. So if we can start over on a new Spindle while Tap5 
is
still in its infancy, we can perhaps ensure that the simplicity is achieved 
from
the perspective of tooling.

Henrik

"Hugo Palma" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Since Geoff decided to leave the Spindle project i've been thinking about 
> the future of TapIDEA. As many of you know, TapIDEA is built on top of 
> Spindle, which means "No Spindle" -> "No TapIDEA".
>
> There are several scenarios that can be put into account in the current 
> situation, and after a long consideration here are my conclusions.
>
> Someone else picks up Spindle where Geoff left off:
> I honestly don't think this is going to happen. AFAIK Spindle was a one 
> man project so no one else has the know how to quickly get into gear with 
> the project. Some might think that that person could be me, and indeed 
> i've become familiar with Spindle internals during the development of 
> TapIDEA. But, there's the free time factor. I just wouldn't be able to 
> find the time to do it.
> Still, if this scenario were to be become true, TapIDEA would live on.
>
> Spindle for T4 dies, a new project is born:
> Ok, so no Spindle and no TapIDEA for T4. What about T5 ? As Geoff as 
> pointed out, T5 support is going to require an almost complete rewrite of 
> Spindle. So, in this scenario someone would implement Spindle(or create a 
> whole new project) for IDE support for T5, and TapIDEA would follow. I 
> find that this is the scenario with the most chances of becoming reality.
>
> Spindle and TapIDEA die for good:
> Well, there's always the possibility that no one will volunteer to 
> continue our efforts of bringing IDE support to Tapestry. In this scenario 
> both Spindle and TapIDEA end their lives now.
>
>
> The TapIDEA project will be "hibernating" until one of these(or any other) 
> scenarios become reality.
> I guess now it's up to the community to present their ideas about this. I 
> hope that, together, we can give our contribution to making Tapestry IDE 
> support a reality.
>
> Cheers,
>
> Hugo
>
>
> -
> 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: Tap 4.1

2006-08-30 Thread Jesse Kuhnert

No idea. Tapestry doesn't mark releases as final anymore until after they
have been released. Ie the release you use at any given point in time could
magically turn into "final" if we vote it that way.

I'd say there's at least another good 3-4 months of very active development
left in 4.1.X before things quiet down again though. The API should be
mostly stable now..I expect a few tweaks here and there but the majority of
new dev will likely focus around the new rendering model for JSON or Widget
type component/service interactions.

On 8/30/06, Ernst Thielmann <[EMAIL PROTECTED]> wrote:


Does anybody knows when the final release of Tapestry 4.1 will be out?

thanks

ernst


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





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Massimo Lusetti

On 8/30/06, James Carman <[EMAIL PROTECTED]> wrote:


Well, hopefully we can move all of this stuff into a Tapestry Commons
subproject of the TLP.  Then we won't have these issues.


Indeed that would be comfortable :)
--
Massimo
http://meridio.blogspot.com

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



Tap 4.1

2006-08-30 Thread Ernst Thielmann

Does anybody knows when the final release of Tapestry 4.1 will be out?

thanks

ernst


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



Re: TapIDEA future, post "Time to move on"

2006-08-30 Thread kranga
While one can disagree about the actual productivity increase offered by an 
IDE plugin, you can't deny that it is a major plus for new adoptions. That 
said, I think Tapestry is in a unique situation with the incompatibility 
between T3, 4 and 5. We've developed some large applications using T3 and 
given the direction Tap is heading in, are definitely going to evaluate 
other frameworks when we think of upgrading (high barrier to upgrade implies 
lower barrier to exit the platform). As it is, I have no incentive to adopt 
T4 when T5 is going to be different. By the time T5 matures, there will be 
several other frameworks (including Wicket, Echo2 and perhaps even .NET 2.0) 
that will be exciting alternatives. At the end of the day, even though I am 
a technologist at heart, technology exists because of business and 
businesses don't care about how "cool" your internal architecture is, they 
care about not spending millions to just upgrade to the latest without a 
proportional increase in business functionality or decrease in cost of 
operations neither of which are the case here IMHO.


Now before you respond, please note this is my personal experience. I'm sure 
others will beg to disagree. I am making this post for those in a similar 
situation aware of this being a shared experience (I know people have posted 
of how they vouched for Tapestry only to look not so favorable a few years 
down the road). With the current trend future compatibility will always be 
broken because there will always be the next great thing and so the 
temptation to make T6 incompatible. T3 for all its worth gives me enough so 
I can weigh options and evaluate trends with leisure.


T3: Judgement day!


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

To: "Tapestry users" 
Sent: Tuesday, August 29, 2006 8:10 PM
Subject: Re: TapIDEA future, post "Time to move on"



spindle-core (for Tap4) does this way in an IDE independent way.

I was taking a look at it 4 months ago, and I was able to do exactly this.
For instance:
public static void main(String[] args) {
   TapestryCore core = new TapestryCore(new TestLogger(),
   new LocalCoreListeners(), new LocalPreferenceSource());
   ITapestryProject project = new LocalProject();
   LocalBuild build = new LocalBuild(project);

   build.build(false, new HashMap());

   System.out.println(build.problemPersister);
   }

All Local* classes where my implementations for the IDE-agnostic 
interfaces

that spindle-core provides.
When i first tried it, it did output a few non errors (i think it didn't
understand default-value)
so I don't know what (other) errors currently exist.
I can give the latest version a try in a big project and see how it goes.

Konstantin Ignatyev wrote:

Agreed, but that could be done as build time 'check'
step. Something like JSP compiler task
http://ant.apache.org/manual/OptionalTasks/jspc.html

I think it could be easier to create than full IDE
plugin and such core service might be a very good
foundation for people willing to build IDE specific UI
layer atop of it.

--- D&J Gredler <[EMAIL PROTECTED]> wrote:



I mostly agree with you that current tooling gets us
pretty far, but there's
a lot to be said for turning the most frequent
"runtime" errors into
"compile-time" errors, something that often requires
special Tapestry
awareness.

On 8/29/06, Konstantin Ignatyev
<[EMAIL PROTECTED]> wrote:



My point is that in case of Tapestry/Wicket there


is


no need to worry much about tools, because


existing


ones provide pretty good environment to work


within.


Therefore focus on APIs and conventions seems very
reasonable to me.






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






--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


-
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: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread James Carman
Well, hopefully we can move all of this stuff into a Tapestry Commons
subproject of the TLP.  Then we won't have these issues.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 11:17 AM
To: users@tapestry.apache.org
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

James:

I can't get access to the svn repo.  Can you send the jars?

Thanks,

-jason

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:41 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

You can use the tapestry-acegi module found at [EMAIL PROTECTED] (if
you
can get the stupid anonymous login to work).  If you can't let me know
and I
can send you the jar files directly.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:29 AM
To: users@tapestry.apache.org
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

Hi John,

Just curious. . . would that code need to be inserted in *every* page's
pageValidate() method considering that a user can bookmark or type in
any secured URL?  

Acegi will intercept the request, throw up the Login page and then
redirect to the requested page (which in this example would not be the
default page and would therefore require it's on pageValidate() code)

Or is there a more clever way to do this?

Thanks,
Tom

-Original Message-
From: Jonathan Barker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:05 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth


I can't say it's a best practice, but it should be a reasonable
strategy.  

In your pageValidate() method, 
if your ASO is not set
Authentication auth = 
SecurityContext.getContext().getAuthentication();
If auth is not null
Object principal = auth.getPrincipal();
If (principal instanceof UserDetails)
Cast and put into ASO

If you are using Hibernate or another persistence framework, and need to
navigate the object graph from your ASO, reattach / refresh before doing
it.
I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
filter).


It would be a little neater to extract out all of the Acegi stuff so
your UI
code doesn't depend on Acegi.


Jonathan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 7:34 AM
> To: users@tapestry.apache.org
> Subject: Populating Tapestry ASO after successful Acegi Auth
> 
> Greetings:
> 
> I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> authentication using the AuthenticationProcessingFilter.  I have a
> requirement to place the domain object the Acegi UserDetails object is
> based upon into a Tapestry ASO for use during the user session. =20
> 
> My question is: what the best practice for filling the Tapestry ASO
with
> the domain model's user object upon successful authentication with
> Acegi?
> 
> Thanks,
> 
> -jason
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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




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


-
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: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Jason.Yankus
James:

I can't get access to the svn repo.  Can you send the jars?

Thanks,

-jason

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:41 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

You can use the tapestry-acegi module found at [EMAIL PROTECTED] (if
you
can get the stupid anonymous login to work).  If you can't let me know
and I
can send you the jar files directly.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:29 AM
To: users@tapestry.apache.org
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

Hi John,

Just curious. . . would that code need to be inserted in *every* page's
pageValidate() method considering that a user can bookmark or type in
any secured URL?  

Acegi will intercept the request, throw up the Login page and then
redirect to the requested page (which in this example would not be the
default page and would therefore require it's on pageValidate() code)

Or is there a more clever way to do this?

Thanks,
Tom

-Original Message-
From: Jonathan Barker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:05 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth


I can't say it's a best practice, but it should be a reasonable
strategy.  

In your pageValidate() method, 
if your ASO is not set
Authentication auth = 
SecurityContext.getContext().getAuthentication();
If auth is not null
Object principal = auth.getPrincipal();
If (principal instanceof UserDetails)
Cast and put into ASO

If you are using Hibernate or another persistence framework, and need to
navigate the object graph from your ASO, reattach / refresh before doing
it.
I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
filter).


It would be a little neater to extract out all of the Acegi stuff so
your UI
code doesn't depend on Acegi.


Jonathan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 7:34 AM
> To: users@tapestry.apache.org
> Subject: Populating Tapestry ASO after successful Acegi Auth
> 
> Greetings:
> 
> I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> authentication using the AuthenticationProcessingFilter.  I have a
> requirement to place the domain object the Acegi UserDetails object is
> based upon into a Tapestry ASO for use during the user session. =20
> 
> My question is: what the best practice for filling the Tapestry ASO
with
> the domain model's user object upon successful authentication with
> Acegi?
> 
> Thanks,
> 
> -jason
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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




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


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



RE: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread James Carman
You can use the tapestry-acegi module found at [EMAIL PROTECTED] (if you
can get the stupid anonymous login to work).  If you can't let me know and I
can send you the jar files directly.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:29 AM
To: users@tapestry.apache.org
Subject: RE: Populating Tapestry ASO after successful Acegi Auth

Hi John,

Just curious. . . would that code need to be inserted in *every* page's
pageValidate() method considering that a user can bookmark or type in
any secured URL?  

Acegi will intercept the request, throw up the Login page and then
redirect to the requested page (which in this example would not be the
default page and would therefore require it's on pageValidate() code)

Or is there a more clever way to do this?

Thanks,
Tom

-Original Message-
From: Jonathan Barker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:05 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth


I can't say it's a best practice, but it should be a reasonable
strategy.  

In your pageValidate() method, 
if your ASO is not set
Authentication auth = 
SecurityContext.getContext().getAuthentication();
If auth is not null
Object principal = auth.getPrincipal();
If (principal instanceof UserDetails)
Cast and put into ASO

If you are using Hibernate or another persistence framework, and need to
navigate the object graph from your ASO, reattach / refresh before doing
it.
I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
filter).


It would be a little neater to extract out all of the Acegi stuff so
your UI
code doesn't depend on Acegi.


Jonathan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 7:34 AM
> To: users@tapestry.apache.org
> Subject: Populating Tapestry ASO after successful Acegi Auth
> 
> Greetings:
> 
> I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> authentication using the AuthenticationProcessingFilter.  I have a
> requirement to place the domain object the Acegi UserDetails object is
> based upon into a Tapestry ASO for use during the user session. =20
> 
> My question is: what the best practice for filling the Tapestry ASO
with
> the domain model's user object upon successful authentication with
> Acegi?
> 
> Thanks,
> 
> -jason
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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




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



RE: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Thomas.Vaughan
Hi John,

Just curious. . . would that code need to be inserted in *every* page's
pageValidate() method considering that a user can bookmark or type in
any secured URL?  

Acegi will intercept the request, throw up the Login page and then
redirect to the requested page (which in this example would not be the
default page and would therefore require it's on pageValidate() code)

Or is there a more clever way to do this?

Thanks,
Tom

-Original Message-
From: Jonathan Barker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 10:05 AM
To: 'Tapestry users'
Subject: RE: Populating Tapestry ASO after successful Acegi Auth


I can't say it's a best practice, but it should be a reasonable
strategy.  

In your pageValidate() method, 
if your ASO is not set
Authentication auth = 
SecurityContext.getContext().getAuthentication();
If auth is not null
Object principal = auth.getPrincipal();
If (principal instanceof UserDetails)
Cast and put into ASO

If you are using Hibernate or another persistence framework, and need to
navigate the object graph from your ASO, reattach / refresh before doing
it.
I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
filter).


It would be a little neater to extract out all of the Acegi stuff so
your UI
code doesn't depend on Acegi.


Jonathan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 7:34 AM
> To: users@tapestry.apache.org
> Subject: Populating Tapestry ASO after successful Acegi Auth
> 
> Greetings:
> 
> I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> authentication using the AuthenticationProcessingFilter.  I have a
> requirement to place the domain object the Acegi UserDetails object is
> based upon into a Tapestry ASO for use during the user session. =20
> 
> My question is: what the best practice for filling the Tapestry ASO
with
> the domain model's user object upon successful authentication with
> Acegi?
> 
> Thanks,
> 
> -jason
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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


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



RE: Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Jonathan Barker

I can't say it's a best practice, but it should be a reasonable strategy.  

In your pageValidate() method, 
if your ASO is not set
Authentication auth = 
SecurityContext.getContext().getAuthentication();
If auth is not null
Object principal = auth.getPrincipal();
If (principal instanceof UserDetails)
Cast and put into ASO

If you are using Hibernate or another persistence framework, and need to
navigate the object graph from your ASO, reattach / refresh before doing it.
I'm doing that in pageValidate() as well (and I'm using the Spring OSIV
filter).


It would be a little neater to extract out all of the Acegi stuff so your UI
code doesn't depend on Acegi.


Jonathan

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 7:34 AM
> To: users@tapestry.apache.org
> Subject: Populating Tapestry ASO after successful Acegi Auth
> 
> Greetings:
> 
> I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
> authentication using the AuthenticationProcessingFilter.  I have a
> requirement to place the domain object the Acegi UserDetails object is
> based upon into a Tapestry ASO for use during the user session. =20
> 
> My question is: what the best practice for filling the Tapestry ASO with
> the domain model's user object upon successful authentication with
> Acegi?
> 
> Thanks,
> 
> -jason
> 
> -
> 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: Tapestry + Eclipse validation messages

2006-08-30 Thread hv @ Fashion Content
As I recall the problem refers to the order of the tags in your .page file. 
Easiest fix would be to put the tags in the right order.

<[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> I'm using Eclipse 3.2 + WST to develop my T4 projects.
>
> During the build it tries to validate my tapestry templates and since
> they're not valid HTML it generates a million warnings like this one :
> "Invalid location of tag (link)." or this one : "Invalid location of tag
> (meta)."
>
> From reading this newsgroup I understand that there is no way to have
> Tapestry-specific validation at this time.
>
> I already disabled HTML validation ( Window -> Preferences -> 
> Validation ->
> HTML Validation ), so no new validation messages will appear.
>
> Question : how do I get rid of already generated validation warnings ? 
> There
> are about 500 of them in my "Problems" panel and they're totally 
> cluttering
> my workspace.
>
> Thank you.
>
>
> -
> 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: JWC anoyance: Creating component based on existing ones

2006-08-30 Thread hv @ Fashion Content
I think it's important to consider the direction Tap is heading, ie 
annotations tied to the class.
It would be a bad idea to introduce concepts that sits badly with the 
annotations in the name
of flexibility you can live without.

So forcing a tight relationship between the extended jwc & class seems like 
a good thing to me.

Henrik

"D&J Gredler" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> If I'm following Andy correctly, his point was that the JWC inheritance 
> tree
> can be different from the Java inheritance tree, so you don't want to try 
> to
> base one off of the other.
>
> My real-world example is BeanForm, an enhanced Form component. I had to
> copy/paste the parameters from Form.jwc in order to extend its JWC API, 
> but
> the BeanForm component class itself does not extend Form -- its JWC/HTML
> just contains a Form component to which it passes the
> method/listener/delegate/etc parameters.
>
> On 8/28/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>>
>> Just one more thing on this subject.
>> Is is really a good ideia to set the default of the inherit-specification
>> to
>> true?
>> Like you said Jesse...
>>
>> "...but I worry about what kind of unexpected behaviour would come about
>> as
>> a result of
>> doing this. (for people relying on it ~not~ happening)"
>>
>> I'm thinking out loud here. I myself think it's obviously the desired
>> bahaviour, since it's only logical to inherit the whole
>> information/resources when we subclass a component, but like you said, 
>> for
>> those who are not expecting this and since the old Tap 4.0 dis not behave
>> this way... is it not dangerous? I can just imagine the mail list spam
>> with
>> this question over and over again... :-) On the other hand it's only
>> natural
>> that such a feature would be inteligent enough to know that since an
>> inhetitance took place the correct behaviour would be to inherit the spec
>> also... humm...
>>
>> I don't know, just thinking... maybe if nobody else makes any remark on
>> this
>> it means everybody agrees on the course described and it is in fact the
>> best
>> one! ;-)
>>
>> Regards,
>>
>>
>> On 8/28/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>> >
>> > I've already created it, it's called "inherit-specification"...
>> >
>> > Description:
>> >
>> > If yes (the default), all elements contained in any superclass
>> components
>> > will be
>> >   directly inherited in this specification.(this includes
>> > parameters/properties/assets/etc..)
>> >
>> > No one should get their hopes up too much yet...(in case I'm setting
>> > myself
>> > up for some unknown blocking reason for this not to be possible...)
>> >
>> > On 8/27/06, andyhot <[EMAIL PROTECTED]> wrote:
>> > >
>> > > Are you thinking about a new 'inherits' or 'extends' attribute in the
>> > >  element ?
>> > >
>> > >
>> > > Jesse Kuhnert wrote:
>> > > > Ok...I'm giving the whole "inheritance" thing a go..We'll see how
>> that
>> > > > works
>> > > > out ;)
>> > > >
>> > > > On 8/27/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>> > > >>
>> > > >> Humm, so the inheritance is actually easyer that the inclusion of
>> an
>> > > >> external .xml... ok, the inheritance is the best solution by far 
>> > > >> so
>> > > good
>> > > >> news!
>> > > >> Has for the .xml and so on... thanks for the tip. :-D
>> > > >>
>> > > >> On 8/28/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>> > > >> >
>> > > >> > I don't think it needs to be as complicated as you think.
>> > > >> >
>> > > >> > There is a whole set of classes people don't normally see that
>> > > >> encapsulate
>> > > >> > all of the information parsed from templates. It wouldn't be 
>> > > >> > very
>> > > hard
>> > > >> to
>> > > >> > walk up the class heirarchy and create a "union" view of a
>> > template.
>> > > >> >
>> > > >> > As for filename extensions, it only takes a second or two to go
>> > into
>> > > >> > eclipse
>> > > >> > -> window -> preferences -> editor -> content types -> to
>> > > >> associated all
>> > > >> > *.jwc/*.page/*.application/etc.. with wtp xml..
>> > > >> >
>> > > >> > I've been using autocompleting xsd/dtd stuff with wtp for a
>> pretty
>> > > >> long
>> > > >> > time
>> > > >> > now and have found it mostly sufficient for my needs, especially
>> > when
>> > > >> > tapestry is able to dynamically see my changes made to them.
>> > > >> >
>> > > >> > On 8/27/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>> > > >> > >
>> > > >> > > By the way... since we're diging into this...
>> > > >> > > Again from the wiki...
>> > > >> > >
>> > > >> > > *"Rename the template page from *.page to *.xml or *.page.xml*
>> > This
>> > > >> > > feature
>> > > >> > > would allow the IDE to provide some completion and validate 
>> > > >> > > the
>> > > >> > template"
>> > > >> > >
>> > > >> > > If we didn't break compatibility with the use of the previous
>> > > >> excception
>> > > >> > > simply allowing the use of normal .xml exception this would by
>> > just
>> > > >> > > trivia

Re: JWC anoyance: Creating component based on existing ones

2006-08-30 Thread hv @ Fashion Content
I love annotations, but I think inheritance is an issue with them as well, 
even if in a different way.

For components I generally have a one-to-one relationship between class and 
component,
but for pages I would like to retain the ability to share the class somehow.

I suspect there are a couple of issues relating to this that would best be 
solved as a whole.

Henrik

"Jesse Kuhnert" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
>I think inherited jwc configurations are part of the 4.1 wishlist.
>
> http://wiki.apache.org/tapestry/Tapestry41WishList
>
> Besides that, annotations are definitely the way to go to get inheritance
> today. I would love nothing more than to be able to use them exclusively -
> but I don't think I'd be able to get away with it yet...
>
> I don't think jwc inheritance should be very hard to implement, but I 
> worry
> about what kind of unexpected behaviour would come about as a result of
> doing this. (for people relying on it ~not~ happening)
>
> Maybe I should pause on my other things and tackle this really quick?
> (besides bugs of course)
>
> On 8/27/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> Been creating a component lybrary that is composed of several tapestry
>> components with some add-ons or default customizations and a bunch of new
>> ones.
>> Been having a very repeating anoyance in doing this and would like to get
>> opinions on how to do this the best way, or if this is really something 
>> we
>> sould think about for the Tapestry wish list.
>>
>> If we get say for instance the Form component and want to basically add a
>> few funcionallity to it. Say a new parameter or two with some work in the
>> backstages (java class! :-D).
>> The normal approuch would be to subclass the
>> org.apache.tapestry.form.Formand build the .jwc companion file.
>> This is the problem, it's very anoying to have to copy several parameters
>> and injection and other Form Component needed recourses that are defined
>> in
>> the jwc to our own jwc.
>> If for instance in Tap4.2 the component suffers an enhancement, or even 
>> in
>> the current Tap version a BUG is detected and corrected in the jwc file
>> one
>> has to correct it in our code as well. Basically we're subclassing part 
>> of
>> the code and copy-pasting another part of the code... the one witch is
>> done
>> declarativly and not in the Java class.
>>
>> Is there a nother way of doing this better?
>> Of couse I could build a component witch wraped the tapestry component
>> inside it. That's what I have done at the moment, but it looks like an
>> unnecessary "layer" for tapestry to run through when rendering the page.
>> One
>> more layer of code to deel with in every AJAX refresh of a form, and so 
>> on
>> and so on.
>>
>> Seems like the more I use the JWC files the more I want to take every bit
>> of
>> information from them. Anoying little things aren't they?
>> Long live the annotation in the Javaclass. (Witch I think are not the
>> answer
>> here, are they?)
>>
>> Another painfull example is, for instance, if one needed to build a
>> component for example to accept number input. Simply a spin-off of the
>> TextField with the default translator to number. Sonds very simple, a
>> class
>> that subclasses the org.apache.tapestry.form.TextField and a... jwc
>> component that is a full copy-paste of the original TextField one with 
>> the
>> changed translator. Very ugly is it not?
>> When we're talking of simples parameter definition, no problem, it's even
>> nice to reduce to what we want the unneeded parameter list, but when 
>> we're
>> talking of injections, beans, JS scripts, and so on, well in these cases
>> we're going deep in the heart of the component implementation and are
>> asking
>> for refactors (new copy-paste) when new releases of tapestry are 
>> released.
>>
>> Any thoughts on this will be welcomed.
>>
>> --
>> Pedro Viegas
>>
>>
>
>
> -- 
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 




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



Populating Tapestry ASO after successful Acegi Auth

2006-08-30 Thread Jason.Yankus
Greetings:

I'm using Tapestry 4 and Acegi 1.0.1.  I have acegi set up to perform
authentication using the AuthenticationProcessingFilter.  I have a
requirement to place the domain object the Acegi UserDetails object is
based upon into a Tapestry ASO for use during the user session. =20

My question is: what the best practice for filling the Tapestry ASO with
the domain model's user object upon successful authentication with
Acegi?

Thanks,

-jason

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



Exception in Exception.html

2006-08-30 Thread Varun Mehta
Unable to instantiate component framework:Exception/$Shell: String index out
of range: -1 [classpath:/org/apache/tapestry/pages/Exception.html, line 17]

 

I'm able to run an application without the shell, but when my application
throws an exception, it gives this page, cos in the framework
/org/apache/tapestry/pages/Exception.html, line 17 itself is throwing an
exception, does anyone have a solution to this problem, I'm just shifting
from tap 3 to 4.1.

 

Initially it was difficult the figure out the same. But only after including
the source and debugging I figured out this exception. It is thrown in
Hivemind somewhere. I've not evaluated further, thought of posting before I
proceed further.


HTTP Status 500 - 

  _  


type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Unable to instantiate component
framework:Exception/$Shell: String index out of range: -1
 
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(W
ebRequestServicerPipelineBridge.java:60)
 
$ServletRequestServicer_10d5e3712a3.service($ServletRequestServicer_10d5e371
2a3.java)
 
$ServletRequestServicer_10d5e3712a2.service($ServletRequestServicer_10d5e371
2a2.java)
 
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInj
ector.java:55)
 
$ServletRequestServicerFilter_10d5e37129f.service($ServletRequestServicerFil
ter_10d5e37129f.java)
 
$ServletRequestServicerFilter_10d5e37129e.service($ServletRequestServicerFil
ter_10d5e37129e.java)
 
$ServletRequestServicer_10d5e3712a4.service($ServletRequestServicer_10d5e371
2a4.java)
 
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecode
rFilter.java:52)
 
$ServletRequestServicerFilter_10d5e37129d.service($ServletRequestServicerFil
ter_10d5e37129d.java)
 
$ServletRequestServicerFilter_10d5e37129c.service($ServletRequestServicerFil
ter_10d5e37129c.java)
 
$ServletRequestServicer_10d5e3712a4.service($ServletRequestServicer_10d5e371
2a4.java)
 
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestE
ncoding.java:53)
 
$ServletRequestServicerFilter_10d5e3712a1.service($ServletRequestServicerFil
ter_10d5e3712a1.java)
 
$ServletRequestServicerFilter_10d5e3712a0.service($ServletRequestServicerFil
ter_10d5e3712a0.java)
 
$ServletRequestServicer_10d5e3712a4.service($ServletRequestServicer_10d5e371
2a4.java)
 
$ServletRequestServicer_10d5e371297.service($ServletRequestServicer_10d5e371
297.java)
 
$ServletRequestServicer_10d5e371296.service($ServletRequestServicer_10d5e371
296.java)
 
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:123
)
 
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:104)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

org.apache.hivemind.ApplicationRuntimeException: Unable to instantiate
component framework:Exception/$Shell: String index out of range: -1
[classpath:/org/apache/tapestry/pages/Exception.html, line 17]
 
org.apache.tapestry.error.ExceptionPresenterImpl.presentException(ExceptionP
resenterImpl.java:66)
 
$ExceptionPresenter_10d5e371269.presentException($ExceptionPresenter_10d5e37
1269.java)
 
$ExceptionPresenter_10d5e371268.presentException($ExceptionPresenter_10d5e37
1268.java)
 
org.apache.tapestry.engine.AbstractEngine.activateExceptionPage(AbstractEngi
ne.java:121)
 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:271)
 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngin
eTerminator.java:60)
 
$WebRequestServicer_10d5e3712c1.service($WebRequestServicer_10d5e3712c1.java
)
 
$WebRequestServicer_10d5e3712c0.service($WebRequestServicer_10d5e3712c0.java
)
 
$WebRequestServicer_10d5e3712bd.service($WebRequestServicer_10d5e3712bd.java
)
 
$WebRequestServicer_10d5e3712bc.service($WebRequestServicer_10d5e3712bc.java
)
 
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(W
ebRequestServicerPipelineBridge.java:56)
 
$ServletRequestServicer_10d5e3712a3.service($ServletRequestServicer_10d5e371
2a3.java)
 
$ServletRequestServicer_10d5e3712a2.service($ServletRequestServicer_10d5e371
2a2.java)
 
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInj
ector.java:55)
 
$ServletRequestServicerFilter_10d5e37129f.service($ServletRequestServicerFil
ter_10d5e37129f.java)
 
$ServletRequestServicerFilter_10d5e37129e.service($ServletRequestServicerFil
ter_10d5e37129e.java)
 
$ServletRequestServicer_10d5e3712a4.service($ServletRequestServicer_10d5e371
2a4.java)
 
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecode
rFilter.java:52)
 
$ServletRequestServicerFilter_10d5e37129d.service($ServletRequestServicerFil
ter_10d5e37129d.java)
 
$ServletRequestServicerFilter_10d5e37129c.service($ServletRequestServicerFil
ter_10d5e3

Re: Loading Javascript from external asset

2006-08-30 Thread Bastian Voigt

andyhot schrieb:

i would add the normal html 

[solved] RE: Unable to locate resource library?

2006-08-30 Thread Jasper Huzen

I fixed my problem.

I changed the library path to and now it is working.





-Original Message-
From: Jasper Huzen 
Sent: woensdag 30 augustus 2006 8:52
To: users@tapestry.apache.org
Subject: Unable to locate resource library?

I'm trying to build a test project with Tapestry. 

 

I'm just trying to use the Contrib library, but I get the problem with
including (location) the library file.

 

The browser gives the next message:

Unable to locate resource 'org/apache/tapestry/contrib/Contrib.library'
relative to context:/WEB-INF/test.application.

 

My test.application file looks like:

 



http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>



  

  



 

The tapestry-contrib-4.0.2.jar file is after deploy found in the /lib
map (where the other Tapestry libs are also found).

 

Any solution?

 

 

 

 

 

 



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