Strange Exception page T4.1.1

2007-03-22 Thread Borut Bolčina
The exception page renders over the content. When I click the plus icon 
of the Tree component (Tacos 4.1.0-SNAPSHOT on Tapestry 4.1.1) I get 
unreadable exception page.


Can this exception be written out to console, so I can read it?

Here's how it looks like:
http://flickr.com/photo_zoom.gne?id=430152668size=o

Cheers,
Borut

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



Maven jetty problem

2007-03-22 Thread Christoph Jaeger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I tried to follow the steps described on

http://tapestry.apache.org/tapestry5/quickstart/

to get a first small tapestry application running.

The first maven command worked without problems (mvn archetype:create
...), at least it told me that everything is ok.

But when I try to do mvn jetty:run, I get the following error message:

...
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-war-plugin

Reason: Error getting POM for
'org.apache.maven.plugins:maven-war-plugin' from the repository: Failed
to resolve artifact, possibly due to a repository list that is not
appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-war-plugin:pom:2.0.3-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
  howardlewisship.com (http://howardlewisship.com/repository),
  central (http://repo1.maven.org/maven2)

...

What did I do wrong here? This is my first contact with maven, so I
don't have any experience with it (and hoped that I don't have to really
understand how it works).

Another thing, I found some typos in the Tapestry 5 tutorial, and
thought it would be nice if I contribute a bit and help improve things.
Where can I report this to?

Best Regards,

Christoph Jäger
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAlIpa8IX5asoPlERAtCYAKC89Y21rRq3wiVcyUpVn8zYkMXL9wCfSoKk
0CYtRD2nBmS0FoU7l3QVP+4=
=/JKT
-END PGP SIGNATURE-

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



Re: Strange Exception page T4.1.1

2007-03-22 Thread Borut Bolčina

Using Firebug I managed to nail down the problem. Great tool.

On 22.3.2007 9:06, Borut Bolčina wrote:
The exception page renders over the content. When I click the plus 
icon of the Tree component (Tacos 4.1.0-SNAPSHOT on Tapestry 4.1.1) I 
get unreadable exception page.


Can this exception be written out to console, so I can read it?

Here's how it looks like:
http://flickr.com/photo_zoom.gne?id=430152668size=o

Cheers,
Borut

-
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]



Antwort: Re: Session

2007-03-22 Thread Kristian Marinkovic
i think a better strategy is to reduce the sesion-timeout in the
web.xml to lets say 2mins and to implement a javascript function
that issues periodic keep-alive requests every 1.5mins or so. 
thus preventing the session from expiring...

and when someone closes his browser the session will not
stay in memory for too long :)

g,
kris




Tim Sawyer [EMAIL PROTECTED] 
22.03.2007 11:10
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
users@tapestry.apache.org
Kopie
James Sherwood [EMAIL PROTECTED]
Thema
Re: Session






I believe the timeout for this is configured through web.xml

session-config
  session-timeout30/session-timeout !-- minutes --
/session-config

Tim.

On Tuesday 20 March 2007 17:16, James Sherwood wrote:
 Hello,

 We have an admin side with a user login etc.

 The problem is, the session times out after soo many minutes(we run 
under
 tomcat) of being idle and they user has to log back in.

 Is there any way to make this indefinate and if so, is there any impact 
on
 resources etc?

 Thanks,
 James


 -
 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: Strange Exception page T4.1.1

2007-03-22 Thread Andreas Andreou

Tapestry 4.1.2-SNAPSHOT added a nice css for the (ajax) exception page, so
it's much more
readable by default.

On 3/22/07, Borut Bolčina [EMAIL PROTECTED] wrote:


Using Firebug I managed to nail down the problem. Great tool.

On 22.3.2007 9:06, Borut Bolčina wrote:
 The exception page renders over the content. When I click the plus
 icon of the Tree component (Tacos 4.1.0-SNAPSHOT on Tapestry 4.1.1) I
 get unreadable exception page.

 Can this exception be written out to console, so I can read it?

 Here's how it looks like:
 http://flickr.com/photo_zoom.gne?id=430152668size=o

 Cheers,
 Borut

 -
 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 / JEE Consulting


AW: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Maximilian Weißböck

 -Ursprüngliche Nachricht-
 Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 21. März 2007 19:44
 An: Tapestry users
 Betreff: Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!
 
 IE is a little less forgiving with javascript errors, so if 
 you get one all other code will be skipped. (a lot of the time)
 
 I fixed what was a  very subtle IE specific bug recently in 
 4.1.2-SNAPSHOT. You may try that just to see . ...I only 
 have IE7 available to me right now, but should be able to get 
 a hold of my vmware ie6 image tomorrow and take a look at 
 what is happening after that.
 
 Have you noticed any errors happening before not able to 
 load package things?

No, no other errors before this. 
And no luck with all out testing so far ...
Makes me really nervouse ...

 
 On 3/21/07, Maximilian Wei?bock 
 [EMAIL PROTECTED] wrote:
  We have a very hard problem with a Tapestry 4.1.1 Application on 
  Windows IE 6.
  We get javascript errors all the time (even if they are not 
  reproducable on all developer machines)  using IE 6.
 
  Some of the errors are:
 
   Could not load 'dojo.looging.Logger'; last tried '__package__.is'
   Could not load 'tapestry.form'; last tried '__package__.is'
   Could not load 'tapestry.form'; last tried '__package__.is'
 
  On a german IE we get more or less the same errors:
 
   'tapestry' ist undefiniert - which translates to 'tapestry' is 
  undefined  ' dojo' ist undefiniert - which translates 'dojo' is 
  undefined
 
  Sometimes errors go so far, that IE does not react on any 
 mouse click 
  any more.
  What seems to cure the problem is ab browser refresh (pressing Ctrl 
  F5)
 
  Now we fond another posting
  http://www.nabble.com/Why-is-IE6-freezing--tf3377078.html#a9399366
  that reports the excat same problem, but the solution given 
 seems not 
  to work for us.
 
  Are there no any other Tapestry 4.1.1. applications out in 
 the world 
  that must support IE 6, or do they not have this problem? 
 But I can't 
  beleve that we have a very special problem, cause we use an 
 out of the 
  Box Tapestry with nothing special.
 
  Any hints on this form anyone? If we can not fix this, we 
 are in realy 
  deep troble ...
 
  Thanks, Max
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 Jesse Kuhnert
 Tapestry/Dojo 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]
 
 

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



Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Andreas Pardeike

Maximilian,


Now we fond another posting
http://www.nabble.com/Why-is-IE6-freezing--tf3377078.html#a9399366
that reports the excat same problem, but the solution given seems  
not to

work for us.


You referred to my posting. Here are comments on quotes of it:

On 20 mar 2007, at 18.30, baleksandar wrote:
we have almost the same problem (msie freezing, javascript errors)  
by using

tomcat + tapestry 4.1 + MSIE.

we hope maybe you could  give us some hints how to solve this issue
especially because i see that  your web page http://www.fsbutiken.se
doesn't work 100% well on msie, and i thought you are still working  
on the
fix? did you already realize that your page sometimes returns  
javascript

errors?


Not sure if you're talking about an older version of the site.  
Anyway, I would
be surprised to see that http://www.fsbutiken.se still does not work  
or give

js errors. I tested and found no problems anymore.

Keep in mind that it is *absolutely* necessary to empty the browser  
cache in

IE *every time* you test. Otherwise you're hunting ghost problems...

Unfortunatelly, the solution you mentioned earlier doesn't work for  
as - our
server had all the time the compression flag turned off. the  
question is

does it really work for you?
we've tested our application using at least three client computers  
with same
configured msie browsers. Sometimes (but not always) we got the  
javascript

errors such
tapestry.form object doesn't exist or the msie just start to  
freeze. These

errors always appear in
conjunction with use of tapestry SubmitLink component. we can not  
reproduce

that...


The important part here is that something is that errors like


 Could not load 'dojo.looging.Logger'; last tried '__package__.is'
 Could not load 'tapestry.form'; last tried '__package__.is'
 Could not load 'tapestry.form'; last tried '__package__.is'


most certainly are related to either a serving problem or a js script  
error

that prevents loading (I would bet it's not a script error).

So double+triple check your tomcat configuration. Also make sure you  
don't
do any special stuff in your border component or in your @Shell  
configuration.


Andreas Pardeike

PS: I would really love to see some error checking on this. It's  
really hard

to catch any errors resulting from asset linking problems.

--

On 21 mar 2007, at 19.43, Jesse Kuhnert wrote:


IE is a little less forgiving with javascript errors, so if you get
one all other code will be skipped. (a lot of the time)

I fixed what was a  very subtle IE specific bug recently in
4.1.2-SNAPSHOT. You may try that just to see . ...I only have IE7
available to me right now, but should be able to get a hold of my
vmware ie6 image tomorrow and take a look at what is happening after
that.

Have you noticed any errors happening before not able to load  
package things?


On 3/21/07, Maximilian Wei?bock [EMAIL PROTECTED]  
wrote:
We have a very hard problem with a Tapestry 4.1.1 Application on  
Windows

IE 6.
We get javascript errors all the time (even if they are not  
reproducable

on all developer machines)  using IE 6.

Some of the errors are:

 Could not load 'dojo.looging.Logger'; last tried '__package__.is'
 Could not load 'tapestry.form'; last tried '__package__.is'
 Could not load 'tapestry.form'; last tried '__package__.is'

On a german IE we get more or less the same errors:

 'tapestry' ist undefiniert - which translates to 'tapestry' is
undefined
 ' dojo' ist undefiniert - which translates 'dojo' is undefined

Sometimes errors go so far, that IE does not react on any mouse click
any more.
What seems to cure the problem is ab browser refresh (pressing  
Ctrl F5)


Now we fond another posting
http://www.nabble.com/Why-is-IE6-freezing--tf3377078.html#a9399366
that reports the excat same problem, but the solution given seems  
not to

work for us.

Are there no any other Tapestry 4.1.1. applications out in the world
that must support IE 6, or do they not
have this problem? But I can't beleve that we have a very special
problem, cause we use an out of the Box
Tapestry with nothing special.

Any hints on this form anyone? If we can not fix this, we are in  
realy

deep troble ...

Thanks, Max

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





--
Jesse Kuhnert
Tapestry/Dojo 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]




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



[T4] PageRedirectException

2007-03-22 Thread Kolesnikov, Alexander GNI
I am using contrib:Table to display the results of a search. If a search
returns zero results, I want to treat this as an error and to show the
search form again with this error in the same way as if it was a faulty
user input validation.

It seems to me that a good solution to throw a PageRedirectException at
the moment when the Table component receives a source with 0 records in
it. I have tried to do this in the method that provides the model for
the page, like so:

public IBasicTableModel getModel() {
// some code to prepare the model

if (model.getRowCount() == 0) {
throw new PageRedirectException(Search);
}   
return model;
}

But in this case the PageRedirectException was not caught by Tapestry
but propagated.

Another attempt was to override the renderComponent() method of the
Table component, like so:

protected void renderComponent(IMarkupWriter writer, IRequestCycle
cycle) {

if (getSource().getRowCount() == 0) {
throw new PageRedirectException(Search);
}
super.renderComponent(writer, cycle); 
}

This seems to work when redirecting to a different page. However, I want
to redirect to the same page because the search form and the table of
results are simply two views of the same page, shown or hidden by If
components as needed. And when I am trying to redirect to the same page,
again, PageRedirectException is not caught but propagated, and the
application crashes.

Does anybody know, why  PageRedirectException is sometimes caught but at
other times propagated and what to do about this? Or maybe you can see a
different solution for my problem?

Thanks,

Alex

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-22 Thread Andreas Andreou

Please, go ahead and add a JIRA request for this - describing what you have
in mind...


Andreas Pardeike


PS: I would really love to see some error checking on this. It's
really hard
to catch any errors resulting from asset linking problems.

--







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


T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Bogdan Calmac

After creating my own ASO object, I kept getting the
ClassCastExeception below when accessing it, until I had the
inspiration to move the ASO in a different package than the page. Then
it worked fine. Is this just a bug or intentional design?

This is the exception (with 5.0.3). The ASO reader throws a ClassCastException:
Caused by: java.lang.ClassCastException:
org.byteberry.survey.pages.SurveySession
at 
org.byteberry.survey.pages.SurveyDetail2._$read_surveySession(SurveyDetail2.java)
at 
org.byteberry.survey.pages.SurveyDetail2.getQuestion0(SurveyDetail2.java:55)
at $PropertyConduit_11179d07ce4.get($PropertyConduit_11179d07ce4.java)
at 
org.apache.tapestry.internal.bindings.PropBinding.get(PropBinding.java:54)

For more details, the ASO is defined with:

 @ApplicationState
 private SurveySession surveySession;


and then accessed in:

 public SurveyQuestion getQuestion0() throws SQLException
 {
   return surveySession.questions.get(0);
 }


Thanks,

Bogdan Calmac.

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



Re: Tapestry 5 tutorial: classes don't exist on package

2007-03-22 Thread Peter Beshai

Perhaps try

public static void contributeApplicationDefaults(
   MappedConfigurationString, String configuration) {
   configuration.add(tapestry.supported-locales, en);
   }

ApplicationDefaults not RequestHandler. contributeRequestHandler takes an
OrderedConfiguration not a MappedConfiguration.

On 3/21/07, Bogdan Calmac [EMAIL PROTECTED] wrote:


Thanks Howard,

One of the contributions is OK now, the other is still not compatible
with the changes in the framework. The error is:

java.lang.RuntimeException: No service implements the interface
org.apache.tapestry.ioc.MappedConfiguration

and the contributing method is:

  public static void contributeRequestHandler(
  MappedConfigurationString, String configuration)
  {
configuration.add(tapestry.supported-locales, en);
  }


Thanks,

Bogdan.



On 3/21/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 The method name should now be contributeRequestHandler().

 On 3/21/07, Bogdan Calmac [EMAIL PROTECTED] wrote:
  One of the methods marked with @Contribute (see below) was a timing
  filter which would display in the console the duration of each
  request. After removing the @Contribute annotation (which is not
  available in 5.0.3) the filter is no longer called. So, is there
  another annotations to contribute services or the naming convention
  used here is inaccurate? Since generally in tapestry you can use
  either annotations or naming convention, I think it would be good to
  keep the same paradigm here.
 
  @Contribute(tapestry.RequestHandler)
  public void
  contributeRequestFilters(OrderedConfigurationRequestFilter
  configuration,
  @InjectService(TimingFilter)
  RequestFilter filter)
  {
  // Each contribution to an ordered configuration has a name,
  which will be qualified with
  // the module's id. Here, the fully qualified id will be
  app.Timing.  When necessary, you may
  // set constraints to precisely control the invocation order
  of the contributed filter
  // within the pipeline.
 
  configuration.add(Timing, filter);
  }
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Howard M. Lewis Ship
 TWD Consulting, Inc.
 Independent J2EE / Open-Source Java Consultant
 Creator and PMC Chair, Apache Tapestry
 Creator, Apache HiveMind

 Professional Tapestry training, mentoring, support
 and project work.  http://howardlewisship.com

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



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





--
Peter Beshai

Computer Science Student
University of Waterloo


Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Peter Beshai

Not 100% sure, but it seems like Tapestry has designated
my.package.pagesfor Tapestry Pages (convention) and
my.package.components for Tapestry Components (convention again). So
Tapestry will treat the classes in those packages as pages/components
respectively. It is likely a better idea anyway to keep your data objects in
a separate package from your pages :-)

On 3/22/07, Bogdan Calmac [EMAIL PROTECTED] wrote:


After creating my own ASO object, I kept getting the
ClassCastExeception below when accessing it, until I had the
inspiration to move the ASO in a different package than the page. Then
it worked fine. Is this just a bug or intentional design?

This is the exception (with 5.0.3). The ASO reader throws a
ClassCastException:
Caused by: java.lang.ClassCastException:
org.byteberry.survey.pages.SurveySession
at org.byteberry.survey.pages.SurveyDetail2._$read_surveySession(
SurveyDetail2.java)
at org.byteberry.survey.pages.SurveyDetail2.getQuestion0(
SurveyDetail2.java:55)
at
$PropertyConduit_11179d07ce4.get($PropertyConduit_11179d07ce4.java)
at org.apache.tapestry.internal.bindings.PropBinding.get(
PropBinding.java:54)

For more details, the ASO is defined with:

  @ApplicationState
  private SurveySession surveySession;


and then accessed in:

  public SurveyQuestion getQuestion0() throws SQLException
  {
return surveySession.questions.get(0);
  }


Thanks,

Bogdan Calmac.

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





--
Peter Beshai

Computer Science Student
University of Waterloo


Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Anjana Gopinath
I beleive you are supposed to put only your page classes in the page  
folder. Refer tapestry 5 tutorial, page 19.






Anjana Gopinath






On Mar 22, 2007, at 10:07 AM, Bogdan Calmac wrote:


After creating my own ASO object, I kept getting the
ClassCastExeception below when accessing it, until I had the
inspiration to move the ASO in a different package than the page. Then
it worked fine. Is this just a bug or intentional design?

This is the exception (with 5.0.3). The ASO reader throws a  
ClassCastException:

Caused by: java.lang.ClassCastException:
org.byteberry.survey.pages.SurveySession
	at org.byteberry.survey.pages.SurveyDetail2._$read_surveySession 
(SurveyDetail2.java)
	at org.byteberry.survey.pages.SurveyDetail2.getQuestion0 
(SurveyDetail2.java:55)
	at $PropertyConduit_11179d07ce4.get 
($PropertyConduit_11179d07ce4.java)
	at org.apache.tapestry.internal.bindings.PropBinding.get 
(PropBinding.java:54)


For more details, the ASO is defined with:

 @ApplicationState
 private SurveySession surveySession;


and then accessed in:

 public SurveyQuestion getQuestion0() throws SQLException
 {
   return surveySession.questions.get(0);
 }


Thanks,

Bogdan Calmac.

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






T5 - Property binding enhancements

2007-03-22 Thread Bogdan Calmac

Hi Howard,

Is there any plan to support List and Map access in the prop: binding
for the final release of Tapestry 5? This would be nice and save a lot
of boilerplate code in the page classes, because lists an maps appear
quite frequently in the data model for a page. I'm thinking of
something like:

list: questions[5].text
map: persons[jim].height or even persons.jim.height if it is
possible to determine that persons is a Map when building the conduit.

Thanks,

Bogdan Calmac.

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



Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Bogdan Calmac

Hi Peter,

I see your point. Any class in the pages package can be accessed
through an URL and it doesn't make sense to store anything else than
pages there.

But on the other hand, the behaviour that I reported is totally
obscure and not in line with the nice error reporting of tapestry. If
somebody does put an ASO in the pages package because of ignorance (as
I did) a ClassCastException from a generated method is not likely to
guide to the source of the error. I see two ways to handle this
nicely:
1. When the @ApplicationState annotation is processed report an error
An ASO cannot be part of the special tapestry packages. This way it
would take 2 minutes to fix the problem instead of 2 hours.
2. In the documentation for the ASO mention that it is not a good
practice to put the ASO in any of tapestry specific packages (pages,
components, ...) but let the people do it if they really want to.

This kind of small thing make quite a difference when starting to work
with a framework like Tapestry where there's a lot going on behind the
scene and as a newcomer you have no ideea that something apparently OK
is not what it seems.

Thanks,

Bogdan.


On 3/22/07, Anjana Gopinath [EMAIL PROTECTED] wrote:

I beleive you are supposed to put only your page classes in the page
folder. Refer tapestry 5 tutorial, page 19.





Anjana Gopinath






On Mar 22, 2007, at 10:07 AM, Bogdan Calmac wrote:

 After creating my own ASO object, I kept getting the
 ClassCastExeception below when accessing it, until I had the
 inspiration to move the ASO in a different package than the page. Then
 it worked fine. Is this just a bug or intentional design?

 This is the exception (with 5.0.3). The ASO reader throws a
 ClassCastException:
 Caused by: java.lang.ClassCastException:
 org.byteberry.survey.pages.SurveySession
   at org.byteberry.survey.pages.SurveyDetail2._$read_surveySession
 (SurveyDetail2.java)
   at org.byteberry.survey.pages.SurveyDetail2.getQuestion0
 (SurveyDetail2.java:55)
   at $PropertyConduit_11179d07ce4.get
 ($PropertyConduit_11179d07ce4.java)
   at org.apache.tapestry.internal.bindings.PropBinding.get
 (PropBinding.java:54)

 For more details, the ASO is defined with:

  @ApplicationState
  private SurveySession surveySession;


 and then accessed in:

  public SurveyQuestion getQuestion0() throws SQLException
  {
return surveySession.questions.get(0);
  }


 Thanks,

 Bogdan Calmac.

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






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



Re: T5 - Property binding enhancements

2007-03-22 Thread Howard Lewis Ship

After you de-reference a value from a list, you end up knowing only
type java.lang.Object which contains no accessible properties.
Generics is a fiction enforced at compile time, but there is some
runtime information that Tapestry might be able to leverage to allow
this kind of reference.

On 3/22/07, Bogdan Calmac [EMAIL PROTECTED] wrote:

Hi Howard,

Is there any plan to support List and Map access in the prop: binding
for the final release of Tapestry 5? This would be nice and save a lot
of boilerplate code in the page classes, because lists an maps appear
quite frequently in the data model for a page. I'm thinking of
something like:

list: questions[5].text
map: persons[jim].height or even persons.jim.height if it is
possible to determine that persons is a Map when building the conduit.

Thanks,

Bogdan Calmac.

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Howard Lewis Ship

By putting the ASO class into the pages package, Tapestry created an
enhanced version of the ASO class, as if it were a component. This
enhanced class is in the class loader used for pages, components and
mixins.  The reference to the ASO in the page is a reference to the
enhanced version, not the normal version.  The ASO that's injected is
from the normal class loader, not the enhanced class loader, thus a
ClassCastException.

On 3/22/07, Bogdan Calmac [EMAIL PROTECTED] wrote:

Hi Peter,

I see your point. Any class in the pages package can be accessed
through an URL and it doesn't make sense to store anything else than
pages there.

But on the other hand, the behaviour that I reported is totally
obscure and not in line with the nice error reporting of tapestry. If
somebody does put an ASO in the pages package because of ignorance (as
I did) a ClassCastException from a generated method is not likely to
guide to the source of the error. I see two ways to handle this
nicely:
1. When the @ApplicationState annotation is processed report an error
An ASO cannot be part of the special tapestry packages. This way it
would take 2 minutes to fix the problem instead of 2 hours.
2. In the documentation for the ASO mention that it is not a good
practice to put the ASO in any of tapestry specific packages (pages,
components, ...) but let the people do it if they really want to.

This kind of small thing make quite a difference when starting to work
with a framework like Tapestry where there's a lot going on behind the
scene and as a newcomer you have no ideea that something apparently OK
is not what it seems.

Thanks,

Bogdan.


On 3/22/07, Anjana Gopinath [EMAIL PROTECTED] wrote:
 I beleive you are supposed to put only your page classes in the page
 folder. Refer tapestry 5 tutorial, page 19.





 Anjana Gopinath






 On Mar 22, 2007, at 10:07 AM, Bogdan Calmac wrote:

  After creating my own ASO object, I kept getting the
  ClassCastExeception below when accessing it, until I had the
  inspiration to move the ASO in a different package than the page. Then
  it worked fine. Is this just a bug or intentional design?
 
  This is the exception (with 5.0.3). The ASO reader throws a
  ClassCastException:
  Caused by: java.lang.ClassCastException:
  org.byteberry.survey.pages.SurveySession
at org.byteberry.survey.pages.SurveyDetail2._$read_surveySession
  (SurveyDetail2.java)
at org.byteberry.survey.pages.SurveyDetail2.getQuestion0
  (SurveyDetail2.java:55)
at $PropertyConduit_11179d07ce4.get
  ($PropertyConduit_11179d07ce4.java)
at org.apache.tapestry.internal.bindings.PropBinding.get
  (PropBinding.java:54)
 
  For more details, the ASO is defined with:
 
   @ApplicationState
   private SurveySession surveySession;
 
 
  and then accessed in:
 
   public SurveyQuestion getQuestion0() throws SQLException
   {
 return surveySession.questions.get(0);
   }
 
 
  Thanks,
 
  Bogdan Calmac.
 
  -
  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]





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Help: TAPESTRY-1379 solved

2007-03-22 Thread Andrea Chiumenti

Hi,
since here @ work was very anoying, I've played with tapestry and I've found
the solution and discovered other two bugs.

For what concerning TAPESTRY-1379 it's sufficinet to append to the bottom of
core.js the line
dojo.require(tapestry.widget.Widget);
and it magically works ;-)

The other two bugs are:
1) In tapestry/validation/validation.js there is a comma aflter the last
element of the array that shouldn't be

2) For @Shell component there is the possibility to define the attribute
tapestrySource but not the attribute tapestryPath of the AjaxShellDelegate
so the ridefinition of the tapestrySource is useless.

Since I've no commit rights, would you please correct these three bugs, or
what do you like me to do ?

Have a nice day,
kiuma

p.s:
the opened jira is
https://issues.apache.org/jira/browse/TAPESTRY-1379


AW: [T4] PageRedirectException

2007-03-22 Thread Holger Stolzenberg
If you can try something like this to get a fresh instance of the desired page.

@InjectPage(NameOfMyPage)
public abstract MyPage getMyPage();

With the instance acquired by this method you can do something like this 
(pseudo code):

IPage page = getMyPage();

Use the page instance to get the validation delegate of it and register your 
error against it.

getRequestCylce.activate( page );


Mit lieben Grüßen aus dem eWerk

  |  Holger Stolzenberg
  |  Softwareentwickler
  |
  |  Geschäftsführer: 
  |  Frank Richter, Erik Wende, Hendrik Schubert
  |
  |  eWerk IT GmbH
  |  Markt 16
  |  Leipzig 04109
  |  http://www.ewerk.com
  |  HRB 9065, AG Leipzig
  |  Hauptniederlassung Leipzig
  |
  |  fon +49.341.4 26 49-0
  |  fax +49.341.4 26 49-88
  |  mailto:[EMAIL PROTECTED]
  |
  |  Support:
  |  fon 0700 CALLME24 (0700 22556324)
  |  fax 0700 CALLME24 (0700 22556324)
  |
  | Auskünfte und Angebote per Mail
  | sind freibleibend und unverbindlich. 

-Ursprüngliche Nachricht-
Von: Kolesnikov, Alexander GNI [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 22. März 2007 13:32
An: Tapestry users
Betreff: [T4] PageRedirectException

I am using contrib:Table to display the results of a search. If a search 
returns zero results, I want to treat this as an error and to show the search 
form again with this error in the same way as if it was a faulty user input 
validation.

It seems to me that a good solution to throw a PageRedirectException at the 
moment when the Table component receives a source with 0 records in it. I have 
tried to do this in the method that provides the model for the page, like so:

public IBasicTableModel getModel() {
// some code to prepare the model

if (model.getRowCount() == 0) {
throw new PageRedirectException(Search);
}   
return model;
}

But in this case the PageRedirectException was not caught by Tapestry but 
propagated.

Another attempt was to override the renderComponent() method of the Table 
component, like so:

protected void renderComponent(IMarkupWriter writer, IRequestCycle
cycle) {

if (getSource().getRowCount() == 0) {
throw new PageRedirectException(Search);
}
super.renderComponent(writer, cycle);
}

This seems to work when redirecting to a different page. However, I want to 
redirect to the same page because the search form and the table of results are 
simply two views of the same page, shown or hidden by If components as needed. 
And when I am trying to redirect to the same page, again, PageRedirectException 
is not caught but propagated, and the application crashes.

Does anybody know, why  PageRedirectException is sometimes caught but at other 
times propagated and what to do about this? Or maybe you can see a different 
solution for my problem?

Thanks,

Alex

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA 
==

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



T5: contributing to component class resolver

2007-03-22 Thread Ted Steen

After creating a component library and packing it all in a jar I tried
to include the jar in my T5 project and contribute the
ComponentClassResolver like this

public static void
contributeComponentClassResolver(ConfigurationLibraryMapping
configuration, Log log)
   {
log.irfo(contributing fckeditor);
   configuration.add(new LibraryMapping(fckeditor,
path.to.my.components));
   }

the log says that contributing fckeditor, but tapestry is unable to
resolve the component.
are there any documentation on this? I cant find it.
there should be some kind of search function in the maven generated page..

--
/ted

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



Re: T5: PageTester and Spring Integration

2007-03-22 Thread Kent Tong
 chris at skipoles.co.uk writes:

 So, my question... is there a way that I can get spring integration working 
 within  PageTester? If not, then some thoughts...

You may want to create a feature request at
https://issues.apache.org/jira/browse/TAPESTRY and upload a test
case. There is no guarantee that it will be implemented though.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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



Re: T5 - ASO cannot be in the same package as the page?

2007-03-22 Thread Stephan Schwab


Howard Lewis Ship wrote:
 
 By putting the ASO class into the pages package, Tapestry created an
 enhanced version of the ASO class, as if it were a component. This
 enhanced class is in the class loader used for pages, components and
 mixins.  The reference to the ASO in the page is a reference to the
 enhanced version, not the normal version.  The ASO that's injected is
 from the normal class loader, not the enhanced class loader, thus a
 ClassCastException.
 

I encountered the same problem by accident, but did suspect something
quickly as I had moved the class and the exception showed up on the next
refresh.

Still it would be nice for Tapestry to report more precisely what has
happened, if that's possible.

Stephan
--
http://www.stephan-schwab.com
-- 
View this message in context: 
http://www.nabble.com/T5---ASO-cannot-be-in-the-same-package-as-the-page--tf3447765.html#a9622369
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5: contributing to component class resolver

2007-03-22 Thread Peter Beshai

Sorry, I can't help with your tapestry problem, but to search the tapestry
page you can use google. Simply enter (in the google search field on
google.com) site:http://tapestry.apache.org/tapestry5/ %s where %s is your
search query.

On 3/22/07, Ted Steen [EMAIL PROTECTED] wrote:


After creating a component library and packing it all in a jar I tried
to include the jar in my T5 project and contribute the
ComponentClassResolver like this

public static void
contributeComponentClassResolver(ConfigurationLibraryMapping
configuration, Log log)
   {
log.irfo(contributing fckeditor);
   configuration.add(new LibraryMapping(fckeditor,
path.to.my.components));
   }

the log says that contributing fckeditor, but tapestry is unable to
resolve the component.
are there any documentation on this? I cant find it.
there should be some kind of search function in the maven generated page..

--
/ted

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





--
Peter Beshai

Computer Science Student
University of Waterloo


.script unique function names

2007-03-22 Thread Tomić Mirko
I have function in my .script file whose name is set unique with let:
let key=insertRow unique=yesinsertRow/let

Now I need to insert that unique function name in html file. How to that?


I inserted script component in jwc:
component id=tableScript type=Script
binding name=script value=literal:Table.script/

and inserted tableScript in html.


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



Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Hi,
Every time I have an external link pop up a window, I get a new window.  Even 
if it is the same link.  Any idea how to have it re-use the same window?  I 
think it is a parameter to the javascript, but I don't know how to pass the 
value down to the javascript.

a href=javascript: w = 
window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint',
 '', 'top=100,left=100,height=600,width=800,scrollbars'); 
w.focus();Application Endpoints/a

thanks,

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Thanks, I will see what I can monkey up...:-)

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 3:24 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups
 
Well...Looking at the javadocs I'd say you need to do something more like:

cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle,
page, new Object[] { Your .page name }).getURL()

You can also try getAbsoluteURL() if it's not putting the
http//context/ stuff in there for some reason.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 This is what I get:

 HTTP ERROR: 404

 Not Found

 RequestURI=/pingfederate/help/account-number-help.html

 Powered by Jetty://


 I specifically used an html page that doesn't exist.  I guess the question is 
 how I would specify a .page...

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity



 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thu 3/22/2007 2:52 PM
 To: Tapestry users
 Subject: Re: Tapestry 3.0.3 Popups

 You can use the PopupLink component to have them go to the same window
 name or control it yourself via target=. (i think)

 On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
  Hi,
  Every time I have an external link pop up a window, I get a new window.  
  Even if it is the same link.  Any idea how to have it re-use the same 
  window?  I think it is a parameter to the javascript, but I don't know how 
  to pass the value down to the javascript.
 
  a href=javascript: w = 
  window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint',
   '', 'top=100,left=100,height=600,width=800,scrollbars'); 
  w.focus();Application Endpoints/a
 
  thanks,
 
  Mark
 
  Mark J. Stang
  Senior Engineer/Architect
  office: +1 303.468.2900
  mobile: +1 303.507.2833
  Ping Identity
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo 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]





-- 
Jesse Kuhnert
Tapestry/Dojo 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]



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

Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert

That's annoying...Well..However you get a reference to the page
service in T3 (i don't remember off hand ) should be enough for you to
do a getLink().buildURL() call to generate a url for that page.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:

Jesse,
Thanks for the response.  It looks like it will put an .html into a pop-up.  It 
requires a URL, I have a .page that I am displaying.

Thoughts?

Thanks!

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 2:52 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups

You can use the PopupLink component to have them go to the same window
name or control it yourself via target=. (i think)

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 Hi,
 Every time I have an external link pop up a window, I get a new window.  Even 
if it is the same link.  Any idea how to have it re-use the same window?  I think 
it is a parameter to the javascript, but I don't know how to pass the value down 
to the javascript.

 a href=javascript: w = 
window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint', 
'', 'top=100,left=100,height=600,width=800,scrollbars'); w.focus();Application Endpoints/a

 thanks,

 Mark

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity




--
Jesse Kuhnert
Tapestry/Dojo 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]






--
Jesse Kuhnert
Tapestry/Dojo 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]



RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
This is what I get:

HTTP ERROR: 404

Not Found

RequestURI=/pingfederate/help/account-number-help.html

Powered by Jetty://


I specifically used an html page that doesn't exist.  I guess the question is 
how I would specify a .page...

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 2:52 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups
 
You can use the PopupLink component to have them go to the same window
name or control it yourself via target=. (i think)

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 Hi,
 Every time I have an external link pop up a window, I get a new window.  Even 
 if it is the same link.  Any idea how to have it re-use the same window?  I 
 think it is a parameter to the javascript, but I don't know how to pass the 
 value down to the javascript.

 a href=javascript: w = 
 window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint',
  '', 'top=100,left=100,height=600,width=800,scrollbars'); 
 w.focus();Application Endpoints/a

 thanks,

 Mark

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity




-- 
Jesse Kuhnert
Tapestry/Dojo 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]




Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert

Well...Looking at the javadocs I'd say you need to do something more like:

cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle,
page, new Object[] { Your .page name }).getURL()

You can also try getAbsoluteURL() if it's not putting the
http//context/ stuff in there for some reason.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:

This is what I get:

HTTP ERROR: 404

Not Found

RequestURI=/pingfederate/help/account-number-help.html

Powered by Jetty://


I specifically used an html page that doesn't exist.  I guess the question is 
how I would specify a .page...

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 2:52 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups

You can use the PopupLink component to have them go to the same window
name or control it yourself via target=. (i think)

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 Hi,
 Every time I have an external link pop up a window, I get a new window.  Even 
if it is the same link.  Any idea how to have it re-use the same window?  I think 
it is a parameter to the javascript, but I don't know how to pass the value down 
to the javascript.

 a href=javascript: w = 
window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint', 
'', 'top=100,left=100,height=600,width=800,scrollbars'); w.focus();Application Endpoints/a

 thanks,

 Mark

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity




--
Jesse Kuhnert
Tapestry/Dojo 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]






--
Jesse Kuhnert
Tapestry/Dojo 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]



RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Jesse,
Thanks for the response.  It looks like it will put an .html into a pop-up.  It 
requires a URL, I have a .page that I am displaying.

Thoughts?

Thanks!

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 2:52 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups
 
You can use the PopupLink component to have them go to the same window
name or control it yourself via target=. (i think)

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 Hi,
 Every time I have an external link pop up a window, I get a new window.  Even 
 if it is the same link.  Any idea how to have it re-use the same window?  I 
 think it is a parameter to the javascript, but I don't know how to pass the 
 value down to the javascript.

 a href=javascript: w = 
 window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint',
  '', 'top=100,left=100,height=600,width=800,scrollbars'); 
 w.focus();Application Endpoints/a

 thanks,

 Mark

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity




-- 
Jesse Kuhnert
Tapestry/Dojo 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]




RE: Tapestry 3.0.3 Popups

2007-03-22 Thread Mark Stang
Well, I am having a bit of a problem.
I used the code that Jesse sent me and it returns:

/pingfederate/app?service=page/SamlEndpointsPopUp

Which when I pass to the popup, opens a popup that doesn't contain my page, but 
rather my main menu...

And in my log file, I get:

16:12:39,456 WARN  [ResourceCache] Alias request of 
'file:/tmp/Jetty____pingfederate/webapp/app%3Fservice=page/SamlEndpointsPopUp'
 for 
'file:/tmp/Jetty____pingfederate/webapp/app%3Fservice=page/SamlEndpointsPopUp'
 

Thoughts?

thanks,

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Mark Stang
Sent: Thu 3/22/2007 3:30 PM
To: Tapestry users
Subject: RE: Tapestry 3.0.3 Popups
 
Thanks, I will see what I can monkey up...:-)

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 3:24 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups
 
Well...Looking at the javadocs I'd say you need to do something more like:

cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle,
page, new Object[] { Your .page name }).getURL()

You can also try getAbsoluteURL() if it's not putting the
http//context/ stuff in there for some reason.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 This is what I get:

 HTTP ERROR: 404

 Not Found

 RequestURI=/pingfederate/help/account-number-help.html

 Powered by Jetty://


 I specifically used an html page that doesn't exist.  I guess the question is 
 how I would specify a .page...

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity



 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thu 3/22/2007 2:52 PM
 To: Tapestry users
 Subject: Re: Tapestry 3.0.3 Popups

 You can use the PopupLink component to have them go to the same window
 name or control it yourself via target=. (i think)

 On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
  Hi,
  Every time I have an external link pop up a window, I get a new window.  
  Even if it is the same link.  Any idea how to have it re-use the same 
  window?  I think it is a parameter to the javascript, but I don't know how 
  to pass the value down to the javascript.
 
  a href=javascript: w = 
  window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint',
   '', 'top=100,left=100,height=600,width=800,scrollbars'); 
  w.focus();Application Endpoints/a
 
  thanks,
 
  Mark
 
  Mark J. Stang
  Senior Engineer/Architect
  office: +1 303.468.2900
  mobile: +1 303.507.2833
  Ping Identity
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo 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]





-- 
Jesse Kuhnert
Tapestry/Dojo 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]






Re: Tapestry 3.0.3 Popups

2007-03-22 Thread Jesse Kuhnert

Try getAbsoluteURL() on the page link...It's opening a new window with
a url of (/pingfederate - which your browser won't know how to
handle so it defaults to thinking you must be trying to open a local
file.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:

Well, I am having a bit of a problem.
I used the code that Jesse sent me and it returns:

/pingfederate/app?service=page/SamlEndpointsPopUp

Which when I pass to the popup, opens a popup that doesn't contain my page, but 
rather my main menu...

And in my log file, I get:

16:12:39,456 WARN  [ResourceCache] Alias request of 
'file:/tmp/Jetty____pingfederate/webapp/app%3Fservice=page/SamlEndpointsPopUp'
 for 
'file:/tmp/Jetty____pingfederate/webapp/app%3Fservice=page/SamlEndpointsPopUp'


Thoughts?

thanks,

Mark

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Mark Stang
Sent: Thu 3/22/2007 3:30 PM
To: Tapestry users
Subject: RE: Tapestry 3.0.3 Popups

Thanks, I will see what I can monkey up...:-)

Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 3:24 PM
To: Tapestry users
Subject: Re: Tapestry 3.0.3 Popups

Well...Looking at the javadocs I'd say you need to do something more like:

cycle.getEngine().getService(Tapestry.PAGE_SERVICE).getLink(cycle,
page, new Object[] { Your .page name }).getURL()

You can also try getAbsoluteURL() if it's not putting the
http//context/ stuff in there for some reason.

On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
 This is what I get:

 HTTP ERROR: 404

 Not Found

 RequestURI=/pingfederate/help/account-number-help.html

 Powered by Jetty://


 I specifically used an html page that doesn't exist.  I guess the question is 
how I would specify a .page...

 Mark J. Stang
 Senior Engineer/Architect
 office: +1 303.468.2900
 mobile: +1 303.507.2833
 Ping Identity



 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thu 3/22/2007 2:52 PM
 To: Tapestry users
 Subject: Re: Tapestry 3.0.3 Popups

 You can use the PopupLink component to have them go to the same window
 name or control it yourself via target=. (i think)

 On 3/22/07, Mark Stang [EMAIL PROTECTED] wrote:
  Hi,
  Every time I have an external link pop up a window, I get a new window.  
Even if it is the same link.  Any idea how to have it re-use the same window?  I 
think it is a parameter to the javascript, but I don't know how to pass the value 
down to the javascript.
 
  a href=javascript: w = 
window.open('/pingfederate/app?service=external/SamlEndpointsPopUpamp;sp=SIdP+Application+Endpoint', '', 
'top=100,left=100,height=600,width=800,scrollbars'); w.focus();Application Endpoints/a
 
  thanks,
 
  Mark
 
  Mark J. Stang
  Senior Engineer/Architect
  office: +1 303.468.2900
  mobile: +1 303.507.2833
  Ping Identity
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo 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]





--
Jesse Kuhnert
Tapestry/Dojo 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]








--
Jesse Kuhnert
Tapestry/Dojo 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]



Loop inside a form

2007-03-22 Thread Bogdan Calmac

Hi all,

I'm trying to understand how the Loop component works inside a form
and I couldn't find too much info in the docs. My main curiosity is
how do the right objects get updated when the form is submitted. I
would guess it has something to do with the PrimaryKeyEncoder, but how
does tapestry keep track of the actual object? Store it in the
session?

What does the volatile attribute of the loop mean? When should it be used?

Also, in the doc for Loop there is a reference to heartbeats. What is that?

Thanks,

Bogdan.

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