RE: [ANN]T5 book: reviewers are needed

2007-08-13 Thread Kolesnikov, Alexander GNI
Well, I am in chapter 5 now, out of nine planned. The trick is that chapter 9 
should be about AJAX and I only hope that Howard will add AJAX features soon. 
If all goes well, the manuscript should be ready by the end of September, and 
then it should take something like a month to have it printed. This publisher 
is a very efficient one. They don't mind printing a book even about an Alpha 
version as they print on demand, and the book can be upgraded together with the 
framework.

-Original Message-
From: Adam Zimowski [mailto:[EMAIL PROTECTED] 
Sent: 11 August 2007 18:05
To: Tapestry users
Subject: Re: [ANN]T5 book: reviewers are needed


When can we expect this book to hit the stores???

On 8/9/07, Kolesnikov, Alexander  GNI
[EMAIL PROTECTED] wrote:
 Sorry, Thiago, I don't think I should... I think the publisher has 
 already contacted them.

 -Original Message-
 From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED]
 Sent: 09 August 2007 16:40
 To: Tapestry users
 Subject: Re: [ANN]T5 book: reviewers are needed


 On Thu, 09 Aug 2007 12:28:41 -0300, Kolesnikov, Alexander  GNI
 [EMAIL PROTECTED] wrote:

  Phew... The publisher has actually contacted me a few days ago to 
  tell me that he's got many more reviewer volunteers than he ever 
  expected, and so he selected only three of them. But it will be an 
  honor for both me and them to have you as a reviewer. I will contact 
  them now and try to convince to increase the number of reviewers!

 Can you tell us who the chosen reviewers are? :)

 --
 Thiago H. de Paula Figueiredo
 Desenvolvedor, Instrutor e Consultor de Tecnologia
 Eteg Tecnologia da Informação Ltda.
 http://www.eteg.com.br

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



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



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



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



Re: [T4.1.2] No component found in tree for EventListener binding

2007-08-13 Thread Daniel Kleine-Albers

Hi Marcus,

I could have a look into building a small example, but the corrected  
version of the wireElementFormEvents() in EventConnectionVisitor that  
is attached to the following JIRA fixed my problem (using the second  
version):


https://issues.apache.org/jira/browse/TAPESTRY-1556

Thanks to Tapestry's flexible architecture I was able to easily  
override the EventConnectionVisitor with the new version -  
hivemodule.xml:


implementation service-id=tapestry.page.EventConnectionVisitor 
invoke-factory model=pooled
construct class=my.package.EventConnectionVisitor
set-service property=eventInvoker service- 
id=tapestry.event.EventInvoker/

/construct
/invoke-factory
/implementation


Best regards
Daniel


On 10.08.2007, at 19:02, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:



Hi Daniel,

I'm not sure that it's exactly the same problem.
If you can, please provide an example. It would be helpful anyway.

Marcus


-Original Message-
From: Daniel Kleine-Albers [mailto:[EMAIL PROTECTED]
Sent: Friday, August 10, 2007 8:52 AM
To: Tapestry users
Subject: Re: [T4.1.2] No component found in tree for
EventListener binding

Hi List,

please ignore this mail. I've just found that JIRA which fixed it:
https://issues.apache.org/jira/browse/TAPESTRY-1556

Thanks anyway - I've been really enjoying developing with
Tapestry over last couple of months.

Cheers
Daniel


On 10.08.2007, at 18:05, Daniel Kleine-Albers wrote:


Hi All,

I've got a problem with embedding the same component into multiple
pages that might be a bug. The situation is as follows:

Component C has a form in it that contains a Suggest component. An
EventListener is attached to that suggest field (on the

onblur event).

I found out that I needed to specify the submitForm

parameter for this

event listener to actually get the form data submitted.

C is embedded in pages A and B. As long as I turn off caching
everything works fine. As soon as I turn on caching and access only
page A everything's fine as well, but as soon as I access

page B after

page A has been accessed (also if not triggering the event)

I get the

following Exception (also happens if accessing A after B so

I exclude

a problem with this particular page):

No component found in tree for EventListener binding with a

matching

component id of A/$component...C.

The whole stacktrace follows below. I've searched the archives and
found some references that this behavior might be solved if

I use an

explicit component specification (instead of using annotations)
- so I tried that but it didn't make a difference.

What I think is strange is that it searches a component on Page B
which has actually its component id prefixed by the name of Page A
- this sounds a bit like some variables not getting recalculated
correctly when borrowing the component from the pool.

Any ideas or workarounds would be really appreciated.

Thanks
Daniel


No component found in tree for EventListener binding with a

matching

component id of ValidateEmail/$CPublicBorder.
$CRegistration.registrationForm.

Stack Trace:

*

org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEv 
e

nts(EventConnectionVisitor.java:114)
*
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
(EventConnectionVisitor.java:86)
* $IComponentVisitor_1144d16ac97.visitComponent
($IComponentVisitor_1144d16ac97.java)
* $IComponentVisitor_1144d16ac98.visitComponent
($IComponentVisitor_1144d16ac98.java)
*
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
(ComponentTreeWalker.java:45)
*
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
(ComponentTreeWalker.java:57)
*
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
(ComponentTreeWalker.java:57)
* org.apache.tapestry.pageload.PageLoader.loadPage
(PageLoader.java:655)
*

$IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)

*

$IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)

* org.apache.tapestry.pageload.PageSource.makeObject
(PageSource.java:153)
*
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject
(GenericKeyedObjectPool.java:797)
* org.apache.tapestry.pageload.PageSource.getPage
(PageSource.java:177)
*

$IPageSource_1144d16abe2.getPage($IPageSource_1144d16abe2.java)

* org.apache.tapestry.engine.RequestCycle.loadPage
(RequestCycle.java:239)
* org.apache.tapestry.engine.RequestCycle.getPage
(RequestCycle.java:226)
* org.apache.tapestry.engine.RequestCycle.activate
(RequestCycle.java:559)
* org.apache.tapestry.engine.PageService.service
(PageService.java:66)
* $IEngineService_1144d16ac6c.service
($IEngineService_1144d16ac6c.java)
*
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service
(EngineServiceOuterProxy.java:72)
* org.apache.tapestry.engine.AbstractEngine.service
(AbstractEngine.java:237)
*

Re: [ANN]T5 book: reviewers are needed

2007-08-13 Thread Adam Zimowski
Great! Looking forward it it :)

On 8/13/07, Kolesnikov, Alexander  GNI
[EMAIL PROTECTED] wrote:
 Well, I am in chapter 5 now, out of nine planned. The trick is that chapter 9 
 should be about AJAX and I only hope that Howard will add AJAX features soon. 
 If all goes well, the manuscript should be ready by the end of September, and 
 then it should take something like a month to have it printed. This publisher 
 is a very efficient one. They don't mind printing a book even about an Alpha 
 version as they print on demand, and the book can be upgraded together with 
 the framework.

 -Original Message-
 From: Adam Zimowski [mailto:[EMAIL PROTECTED]
 Sent: 11 August 2007 18:05
 To: Tapestry users
 Subject: Re: [ANN]T5 book: reviewers are needed


 When can we expect this book to hit the stores???

 On 8/9/07, Kolesnikov, Alexander  GNI
 [EMAIL PROTECTED] wrote:
  Sorry, Thiago, I don't think I should... I think the publisher has
  already contacted them.
 
  -Original Message-
  From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED]
  Sent: 09 August 2007 16:40
  To: Tapestry users
  Subject: Re: [ANN]T5 book: reviewers are needed
 
 
  On Thu, 09 Aug 2007 12:28:41 -0300, Kolesnikov, Alexander  GNI
  [EMAIL PROTECTED] wrote:
 
   Phew... The publisher has actually contacted me a few days ago to
   tell me that he's got many more reviewer volunteers than he ever
   expected, and so he selected only three of them. But it will be an
   honor for both me and them to have you as a reviewer. I will contact
   them now and try to convince to increase the number of reviewers!
 
  Can you tell us who the chosen reviewers are? :)
 
  --
  Thiago H. de Paula Figueiredo
  Desenvolvedor, Instrutor e Consultor de Tecnologia
  Eteg Tecnologia da Informação Ltda.
  http://www.eteg.com.br
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  
  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]
 
 

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



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



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



t4.1.2 + dojo tree component beginner question

2007-08-13 Thread mn

Hi,

I am new in tapestry first of all :) How to use dojo tree component? I tried
this, but it doest't work (lack dojo definition error...). What should I do
to use other widget that are not included in tapestry (other than
autocompleter etc.)?

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
http://www.w3.org/TR/html4/strict.dtd;
html
head
titleDojo Tree Widget Test/title

script type=text/javascript

dojo.require(dojo.widget.*);
dojo.require(dojo.widget.Tree);
dojo.require(dojo.widget.TreeSelector);
dojo.hostenv.writeIncludes();

dojo.addOnLoad(function() {
dojo.event.topic.subscribe(nodeSelected,
 function(message) { dojo.debug(message.node.title+ 
selected); }
);
});

/script

/head

body jwcid=@Body

h2Tree with selector events/h2

dojo:TreeSelector widgetId=treeSelector
eventNames=select:nodeSelected/dojo:TreeSelector

div dojoType=Tree selector=treeSelector
div dojoType=TreeNode title=Item 1
div dojoType=TreeNode title=Item 1.1 /div
div dojoType=TreeNode title=Item 1.2 
div dojoType=TreeNode title=Item 1.2.1 
div dojoType=TreeNode title=Item 1.2.1.1 
/div
/div
div dojoType=TreeNode title=Item 1.2.2 /div
/div
div dojoType=TreeNode title=Item 1.3 
div dojoType=TreeNode title=Item 1.3.1 /div
div dojoType=TreeNode title=Item 1.3.2 /div
/div
div dojoType=TreeNode title=Item 1.4 
div dojoType=TreeNode title=Item 1.4.1 /div
/div
/div
div dojoType=TreeNode title=Item 2 /div
/div
/body


-- 
View this message in context: 
http://www.nabble.com/t4.1.2-%2B-dojo-tree-component-beginner-question-tf4260575.html#a12124378
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: [T4.1.2] No component found in tree for EventListener binding

2007-08-13 Thread Marcus.Schulte
Hi Daniel, 

thanks, if you've confirmed that Lionel's solution solves your problem,
that's fine. No need for an example then. I've just not been sure that
it really solved the problem you had.

best regards,
Marcus

 -Original Message-
 From: Daniel Kleine-Albers [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 13, 2007 11:02 AM
 To: Tapestry users
 Subject: Re: [T4.1.2] No component found in tree for 
 EventListener binding
 
 Hi Marcus,
 
 I could have a look into building a small example, but the 
 corrected version of the wireElementFormEvents() in 
 EventConnectionVisitor that is attached to the following JIRA 
 fixed my problem (using the second
 version):
 
 https://issues.apache.org/jira/browse/TAPESTRY-1556
 
 Thanks to Tapestry's flexible architecture I was able to 
 easily override the EventConnectionVisitor with the new version -
 hivemodule.xml:
 
 implementation service-id=tapestry.page.EventConnectionVisitor 
   invoke-factory model=pooled
  construct class=my.package.EventConnectionVisitor
  set-service property=eventInvoker 
 service- id=tapestry.event.EventInvoker/
  /construct
  /invoke-factory
 /implementation
 
 
 Best regards
 Daniel
 
 
 On 10.08.2007, at 19:02, [EMAIL PROTECTED]  
 [EMAIL PROTECTED] wrote:
 
  Hi Daniel,
 
  I'm not sure that it's exactly the same problem.
  If you can, please provide an example. It would be helpful anyway.
 
  Marcus
 
  -Original Message-
  From: Daniel Kleine-Albers [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 10, 2007 8:52 AM
  To: Tapestry users
  Subject: Re: [T4.1.2] No component found in tree for
  EventListener binding
 
  Hi List,
 
  please ignore this mail. I've just found that JIRA which fixed it:
  https://issues.apache.org/jira/browse/TAPESTRY-1556
 
  Thanks anyway - I've been really enjoying developing with
  Tapestry over last couple of months.
 
  Cheers
  Daniel
 
 
  On 10.08.2007, at 18:05, Daniel Kleine-Albers wrote:
 
  Hi All,
 
  I've got a problem with embedding the same component into multiple
  pages that might be a bug. The situation is as follows:
 
  Component C has a form in it that contains a Suggest component. An
  EventListener is attached to that suggest field (on the
  onblur event).
  I found out that I needed to specify the submitForm
  parameter for this
  event listener to actually get the form data submitted.
 
  C is embedded in pages A and B. As long as I turn off caching
  everything works fine. As soon as I turn on caching and 
 access only
  page A everything's fine as well, but as soon as I access
  page B after
  page A has been accessed (also if not triggering the event)
  I get the
  following Exception (also happens if accessing A after B so
  I exclude
  a problem with this particular page):
 
  No component found in tree for EventListener binding with a
  matching
  component id of A/$component...C.
 
  The whole stacktrace follows below. I've searched the archives and
  found some references that this behavior might be solved if
  I use an
  explicit component specification (instead of using annotations)
  - so I tried that but it didn't make a difference.
 
  What I think is strange is that it searches a component on Page B
  which has actually its component id prefixed by the name of Page A
  - this sounds a bit like some variables not getting recalculated
  correctly when borrowing the component from the pool.
 
  Any ideas or workarounds would be really appreciated.
 
  Thanks
  Daniel
 
 
  No component found in tree for EventListener binding with a
  matching
  component id of ValidateEmail/$CPublicBorder.
  $CRegistration.registrationForm.
 
  Stack Trace:
 
  *
 
  
 org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEv 
  e
  nts(EventConnectionVisitor.java:114)
  *
  org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
  (EventConnectionVisitor.java:86)
  * $IComponentVisitor_1144d16ac97.visitComponent
  ($IComponentVisitor_1144d16ac97.java)
  * $IComponentVisitor_1144d16ac98.visitComponent
  ($IComponentVisitor_1144d16ac98.java)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:45)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:57)
  *
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (ComponentTreeWalker.java:57)
  * org.apache.tapestry.pageload.PageLoader.loadPage
  (PageLoader.java:655)
  *
  $IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)
  *
  $IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)
  * org.apache.tapestry.pageload.PageSource.makeObject
  (PageSource.java:153)
  *
  org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject
  (GenericKeyedObjectPool.java:797)
  * org.apache.tapestry.pageload.PageSource.getPage
  (PageSource.java:177)
  *
  

JSON help... image scaling onRender

2007-08-13 Thread Ken nashua

Folks,

I want to operate JSON during body onload:???

Basically I have a Border.html that operates a custom head which renders a 
header image.


span jwcid=@ScriptIncludes /
html
jwcid=[EMAIL PROTECTED]
title=ognl:layout.title
stylesheet=ognl:assets.stylesheet   
body jwcid=@Body

But my header images are not scaling to the exact size of the box.

So I would like to operate JSON during ONLOAD in order to ask the server 
what the actual size of the box is using dojo.html.getContentBox(???);


Can anyone explain how I can rig this up?

Preferably I would like to use...
   void renderComponent(IJSONWriter writer,IRequestCycle cycle)

The doc semantics for rigging all this up are not clear.

At best there are two variables I would like to gather from the server 
(scaleWidth, scaleHeight... which are the actual outer dimensions of the box 
in question).


Thanks in advance

Best regards
Ken in nashua

_
Now you can see trouble…before he arrives 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507



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



T5: date picker component

2007-08-13 Thread Ted Steen
Hi!
A new version of our date picker component is released.
Compability issues with 5.0.5 is resolved.

There are new features in un-commited code here, sent to me by Martin
Dietze, but we want to have a closer look before we add it.

http://code.google.com/p/tapestry5-jscalendar/

-- 
/ted

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



T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua

Folks,

I am receiving bootstrap problems with my webapp using T-4.1

tapestry.version4.1/tapestry.version
ognl.version2.6.7/ognl.version
spring.version2.0.6/spring.version

All I am trying to do is operate dojo with T-4.1 as it comes bundled with 
T-4.1 right?


I receive this stack dump...

0:8080
[INFO] Started Jetty Server
2007-08-13 12:53:30,745 [btpool0-2] WARN  
tapestry.error.RequestExceptionReporter - Failure to

export classpath resource /dojo/src/html/style.js.
org.apache.hivemind.ApplicationRuntimeException: Classpath resource 
'/dojo/src/html/style.js'

does not exist.
   at 
org.apache.tapestry.asset.AssetService.service(AssetService.java:248)
   at 
$IEngineService_11460249fbf.service($IEngineService_11460249fbf.java)
   at 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOute

rProxy.java:72)
   at 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241)
   at 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTermin


Am I operatiing dojo the right way in my custom component below with the 
asset annotations?


Thanks in advance

Best regards
Ken in nashua

@ComponentClass(allowBody = true, allowInformalParameters = true)
public abstract class CustomHead extends Shell
{
@InjectState(adminLayout)
public abstract AdminLayout getLayout();

public abstract void setLayout(AdminLayout layout);

	private static final String generatorContent = Tapestry Application 
Framework, version  + Tapestry.VERSION;


@Asset(/js/dojo/dojo.js)
public abstract IAsset getDefaultDojoSource();

@Asset(/dojo/)
public abstract IAsset getDefaultDojoPath();

@Asset(/tapestry/core.js)
public abstract IAsset getDefaultTapestrySource();

@Asset(/tapestry/)
public abstract IAsset getDefaultTapestryPath();

@Asset(/styles/tapestryskin/theme.css)
public abstract IAsset getTheme();

public abstract IApplicationSpecification getApplicationSpecification();

@Parameter(required = true, cache = true)
public abstract IAsset getStylesheet();

public abstract void setStylesheet(IAsset stylesheet);

@Parameter(required = true, cache = true)
public abstract String getTitle();

public abstract void setTitle(String title);

_
See what you’re getting into…before you go there 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507



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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread andyhot

You really should use 4.1.2, from
http://tapestry.apache.org/download.html

For the dojo path use @Asset(/dojo-0.4.3/)


Ken nashua wrote:

Folks,

I am receiving bootstrap problems with my webapp using T-4.1

tapestry.version4.1/tapestry.version
ognl.version2.6.7/ognl.version
spring.version2.0.6/spring.version

All I am trying to do is operate dojo with T-4.1 as it comes bundled 
with T-4.1 right?


I receive this stack dump...

0:8080
[INFO] Started Jetty Server
2007-08-13 12:53:30,745 [btpool0-2] WARN 
tapestry.error.RequestExceptionReporter - Failure to

export classpath resource /dojo/src/html/style.js.
org.apache.hivemind.ApplicationRuntimeException: Classpath resource 
'/dojo/src/html/style.js'

does not exist.
at org.apache.tapestry.asset.AssetService.service(AssetService.java:248)
at $IEngineService_11460249fbf.service($IEngineService_11460249fbf.java)
at 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOute 


rProxy.java:72)
at 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241) 

at 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTermin 



Am I operatiing dojo the right way in my custom component below with 
the asset annotations?


Thanks in advance

Best regards
Ken in nashua

@ComponentClass(allowBody = true, allowInformalParameters = true)
public abstract class CustomHead extends Shell
{
@InjectState(adminLayout)
public abstract AdminLayout getLayout();

public abstract void setLayout(AdminLayout layout);

private static final String generatorContent = Tapestry Application 
Framework, version  + Tapestry.VERSION;


@Asset(/js/dojo/dojo.js)
public abstract IAsset getDefaultDojoSource();

@Asset(/dojo/)
public abstract IAsset getDefaultDojoPath();

@Asset(/tapestry/core.js)
public abstract IAsset getDefaultTapestrySource();

@Asset(/tapestry/)
public abstract IAsset getDefaultTapestryPath();

@Asset(/styles/tapestryskin/theme.css)
public abstract IAsset getTheme();

public abstract IApplicationSpecification getApplicationSpecification();

@Parameter(required = true, cache = true)
public abstract IAsset getStylesheet();

public abstract void setStylesheet(IAsset stylesheet);

@Parameter(required = true, cache = true)
public abstract String getTitle();

public abstract void setTitle(String title);

_
See what you’re getting into…before you go there 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507



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



not found in application namespace ERROR!!

2007-08-13 Thread dinesh kumar
hey iam new to tapestry . i started with the quick start tutorials in the
tapestry page after compleating that i found this error can any one help me
how to sort it .. how to fix this in  the application name space.

home.html

 html jwcid=@Shell title=Tapestry Component DataBase
 head
   title form tutorial/title
 /head
 body
 h1 Tapestry Component Database/h1

 p
 Options:
 /p
 ul
 lia  jwcid=@PageLink page=AddProject Add New
Project/a/li
 lia jwcid=@PageLink page=Page3Extra Page/a/li
 /ul
 /body
/html

Page3.html

html jwcid=@Shell title=Extra Page
 head
   title/title
 /head
 body jwcid=@Body
 h1 welcome to page 3/h1
 /body
/html

--
---
 An exception has occurred.

You may continue by *restarting
http://localhost:8084/Form/app?service=restart
* the session.
 [ +/- ] Exception:
http://localhost:8084/Form/app?page=Page3service=pagePage 'Page3'
not found in application namespace.
org.apache.tapestry.PageNotFoundException  Page 'Page3' not found in
application namespace.  pageName: Page3  Stack Trace:

  - org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
  PageSpecificationResolverImpl.java:147)
  -
$PageSpecificationResolver_114607e6394.resolve($PageSpecificationResolver_114607e6394.java)

  - $PageSpecificationResolver
_114607e6395.resolve($PageSpecificationResolver_114607e6395.java)

  - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:114)

  - $IPageSource_114607e62f7.getPage($IPageSource_114607e62f7.java)
  - org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)

  - org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)

  - org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:573)

  - org.apache.tapestry.engine.PageService.service(PageService.java:66)
  - $IEngineService_114607e637f.service($IEngineService_114607e637f.java)

  - org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
  EngineServiceOuterProxy.java:72)
  - org.apache.tapestry.engine.AbstractEngine.service(
  AbstractEngine.java:246)
  - org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
  InvokeEngineTerminator.java:54)
  -
$WebRequestServicer_114607e635d.service($WebRequestServicer_114607e635d.java)

  -
$WebRequestServicer_114607e6359.service($WebRequestServicer_114607e6359.java)


T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua

Does t-4.1.2 depend on ognl-2.7

I am anchored to ognl-2.6.7 due to an ognl-2.7 bug that wipes out my whole 
app.


t-4.1.2 is built against ognl... which one though?

What do I provide for dojo source?

Thank You

_
Learn.Laugh.Share. Reallivemoms is right place! 
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us



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



Re: not found in application namespace ERROR!!

2007-08-13 Thread Ulrich Stärk
You forgot to write a corresponding page class for Page3. If you did 
make sure that you either referenced it in your Page3.page or that you 
put it into the package denoted by the 
org.apache.tapestry.page-class-packages configuration property (see 
http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html for 
details).


Uli

dinesh kumar schrieb:

hey iam new to tapestry . i started with the quick start tutorials in the
tapestry page after compleating that i found this error can any one help me
how to sort it .. how to fix this in  the application name space.

home.html

 html jwcid=@Shell title=Tapestry Component DataBase
 head
   title form tutorial/title
 /head
 body
 h1 Tapestry Component Database/h1

 p
 Options:
 /p
 ul
 lia  jwcid=@PageLink page=AddProject Add New
Project/a/li
 lia jwcid=@PageLink page=Page3Extra Page/a/li
 /ul
 /body
/html

Page3.html

html jwcid=@Shell title=Extra Page
 head
   title/title
 /head
 body jwcid=@Body
 h1 welcome to page 3/h1
 /body
/html

--
---
 An exception has occurred.

You may continue by *restarting
http://localhost:8084/Form/app?service=restart
* the session.
 [ +/- ] Exception:
http://localhost:8084/Form/app?page=Page3service=pagePage 'Page3'
not found in application namespace.
org.apache.tapestry.PageNotFoundException  Page 'Page3' not found in
application namespace.  pageName: Page3  Stack Trace:

  - org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
  PageSpecificationResolverImpl.java:147)
  -
$PageSpecificationResolver_114607e6394.resolve($PageSpecificationResolver_114607e6394.java)

  - $PageSpecificationResolver
_114607e6395.resolve($PageSpecificationResolver_114607e6395.java)

  - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:114)

  - $IPageSource_114607e62f7.getPage($IPageSource_114607e62f7.java)
  - org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)

  - org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)

  - org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java:573)

  - org.apache.tapestry.engine.PageService.service(PageService.java:66)
  - $IEngineService_114607e637f.service($IEngineService_114607e637f.java)

  - org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
  EngineServiceOuterProxy.java:72)
  - org.apache.tapestry.engine.AbstractEngine.service(
  AbstractEngine.java:246)
  - org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
  InvokeEngineTerminator.java:54)
  -
$WebRequestServicer_114607e635d.service($WebRequestServicer_114607e635d.java)

  -
$WebRequestServicer_114607e6359.service($WebRequestServicer_114607e6359.java)




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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua

Ok, t-4.1.2 and ognl-2.7 works better.. for dojo

But I still cannot get past the ognl bug 111. Thats why I backed down to 
t-4.1 ognl-2.6.7 (which worked my ognl code fine)


   [
http://jira.opensymphony.com/browse/OGNL-111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31191
]

111 is getting 0 attention. All the ognl is failing in multiple various 
intermittent forms due to the object graph being mauled internally.


I am still unable to find any usable version of tapestry and ognl for my 
code now.


Best regards
Ken in nashua

An exception has occurred.

You may continue by restarting the session.
[ +/- ] Exception: Unable to parse OGNL expression 'byteArrayAsset': 
byteArrayAsset

org.apache.tapestry.BindingException
Unable to parse OGNL expression 'byteArrayAsset': byteArrayAsset
binding: 	ExpressionBinding[DefaultList/$ObjectTable.$TrailsDownload 
byteArrayAsset] 	location: 
	classpath:/org/trails/component/blob/TrailsDownload.html, line 3

1   span jwcid=$content$
2	span jwcid=@If 
condition=ognl:blobDescriptorExtension.renderType.image
3	a jwcid=@ServiceLink service=BlobService 
parameters=ognl:byteArrayAsset

4   img jwcid=@MimedImage
5   propertyDescriptor=ognl:propertyDescriptor
6   model=ognl:model
7   image=ognl:byteArrayAsset
8   bytes=ognl:model[propertyDescriptor.name]

[ +/- ] Exception: Unable to parse OGNL expression 'byteArrayAsset': 
byteArrayAsset

org.apache.hivemind.ApplicationRuntimeException
Unable to parse OGNL expression 'byteArrayAsset': byteArrayAsset

[ +/- ] Exception: byteArrayAsset
ognl.OgnlException
byteArrayAsset

[ +/- ] Exception: org.trails.demo.AdminLayout
java.lang.ClassCastException
org.trails.demo.AdminLayout
Stack Trace:

 
org.trails.component.blob.TrailsDownload.getByteArrayAsset(TrailsDownload.java:79) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
java.lang.reflect.Method.invoke(Method.java:585) 
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:743) 
ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1167) 
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60)


_
Messenger Café — open for fun 24/7. Hot games, cool activities served daily. 
Visit now. http://cafemessenger.com?ocid=TXT_TAGHM_AugHMtagline



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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua
Do I dare build T-4.1.2 against ognl-2.6.7 ? It seems like my only logical 
solution.


Best regards
Ken in nashua

_
More photos, more messages, more storage—get 2GB with Windows Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_2G_0507



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



RE: T5: How to get id of HttpSession

2007-08-13 Thread Shing Hing Man
Thanks!

Shing


--- Jonathan Glanz [EMAIL PROTECTED] wrote:

 Use
 
 @Inject
 Private RequestGlobals globals;
 
 Then 
 
 Globals.getHTTPServletRequest();
 
 
 -cheers, Jon
 
 -Original Message-
 From: Shing Hing Man [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, August 12, 2007 2:51 PM
 To: tapestry Tapestry
 Subject: T5: How to get id of HttpSession 
 
 I have checked that the API of  IOC service 
 org.apache.tapestry.services.Request and Session
 do not return HttpSession.getId().
 
 How to get HttpSession.getId() ?
 
 Shing 
 
 Home page : http://www.lombok.demon.co.uk/
 
 
 
  

___
 Yahoo! Answers - Got a question? Someone out there
 knows the answer. Try it
 now.
 http://uk.answers.yahoo.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]
 
 


Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua

Any ideas what I can do?

Why can't I use 4.1 ? Does dojo work on that rev?

Best regards
Ken in nashua

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\ExpressionEvaluator.java:[18,20] package ognl.enhance does 
not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\ExpressionEvaluator.java:[59,31] cannot find symbol
symbol  : class ExpressionAccessor
location: interface org.apache.tapestry.services.ExpressionEvaluator

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\ExpressionEvaluator.java:[59,11] 
read(java.lang.Object,java.lang.String) is alr

eady defined in org.apache.tapestry.services.ExpressionEvaluator

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\ExpressionEvaluator.java:[91,30] cannot find symbol
symbol  : class ExpressionAccessor
location: interface org.apache.tapestry.services.ExpressionEvaluator

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\ExpressionEvaluator.java:[91,9] 
write(java.lang.Object,java.lang.String,java.la
ng.Object) is already defined in 
org.apache.tapestry.services.ExpressionEvaluator


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\listener\ListenerMapPropertyAccessor.java:[24,20] package ognl.enhance 
does not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\listener\ListenerMapPropertyAccessor.java:[25,20] package ognl.enhance 
does not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\HiveMindExpressionCompiler.java:[19,0] package 
ognl.enhance does not exist



C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\HiveMindExpressionCompiler.java:[36,48] cannot find 
symbol

symbol: class ExpressionCompiler
public class HiveMindExpressionCompiler extends ExpressionCompiler 
implements OgnlExpressionCo

mpiler {

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\HiveMindExpressionCompiler.java:[36,78] cannot find 
symbol

symbol: class OgnlExpressionCompiler
public class HiveMindExpressionCompiler extends ExpressionCompiler 
implements OgnlExpressionCo

mpiler {

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\binding\ExpressionBinding.java:[18,20] package ognl.enhance does not 
exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\binding\ExpressionBinding.java:[60,12] cannot find symbol
symbol  : class ExpressionAccessor
location: class org.apache.tapestry.binding.ExpressionBinding

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\bean\BeanProviderPropertyAccessor.java:[24,20] package ognl.enhance 
does not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\bean\BeanProviderPropertyAccessor.java:[25,20] package ognl.enhance 
does not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionCacheImpl.java:[18,12] cannot find symbol
symbol  : class ClassCacheInspector
location: package ognl

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionCacheImpl.java:[39,103] cannot find symbol
symbol: class ClassCacheInspector
public class ExpressionCacheImpl implements ExpressionCache, 
ResetEventListener, ReportStatusL

istener, ClassCacheInspector {

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionEvaluatorImpl.java:[18,20] package 
ognl.enhance does not exist


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionEvaluatorImpl.java:[135,38] cannot find symbol
symbol  : class ExpressionAccessor
location: class org.apache.tapestry.services.impl.ExpressionEvaluatorImpl

C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionEvaluatorImpl.java:[135,18] 
read(java.lang.Object,java.lang.Stri
ng) is already defined in 
org.apache.tapestry.services.impl.ExpressionEvaluatorImpl


C:\Prototype\Mavenized\Product\tapestry-4.1.1\trunk\tapestry-framework\src\java\org\apache\tap
estry\services\impl\ExpressionEvaluatorImpl.java:[168,37] cannot find symbol
symbol  : class ExpressionAccessor
location: class org.apache.tapestry.services.impl.ExpressionEvaluatorImpl


Re: not found in application namespace ERROR!!

2007-08-13 Thread dinesh kumar
 hello thanks for the reply . but i still have a problem.

  1. in the home.html i used the @pagelink  to page=page1  ( both having
no java class files)

2. i created a  page1.html in WEB-INF folder .

  3. then i deployed  and saw in the web browser. when i click the page1
link it shows this  page not found exception error.

4 . did i forget to write any code elsewhere ?

   i want to navigate from one page to the other page ..how to do can u
explain me  with some example codes..

 thanx.

On 8/13/07, Ulrich Stärk [EMAIL PROTECTED] wrote:

 You forgot to write a corresponding page class for Page3. If you did
 make sure that you either referenced it in your Page3.page or that you
 put it into the package denoted by the
 org.apache.tapestry.page-class-packages configuration property (see
 http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html for
 details).

 Uli

 dinesh kumar schrieb:
  hey iam new to tapestry . i started with the quick start tutorials in
 the
  tapestry page after compleating that i found this error can any one help
 me
  how to sort it .. how to fix this in  the application name space.
 
  home.html
 
   html jwcid=@Shell title=Tapestry Component DataBase
   head
 title form tutorial/title
   /head
   body
   h1 Tapestry Component Database/h1
 
   p
   Options:
   /p
   ul
   lia  jwcid=@PageLink page=AddProject Add New
  Project/a/li
   lia jwcid=@PageLink page=Page3Extra Page/a/li
   /ul
   /body
  /html
 
  Page3.html
 
  html jwcid=@Shell title=Extra Page
   head
 title/title
   /head
   body jwcid=@Body
   h1 welcome to page 3/h1
   /body
  /html
 
  --
 
 ---
   An exception has occurred.
 
  You may continue by *restarting
  http://localhost:8084/Form/app?service=restart
  * the session.
   [ +/- ] Exception:
  http://localhost:8084/Form/app?page=Page3service=pagePage 'Page3'
  not found in application namespace.
  org.apache.tapestry.PageNotFoundException  Page 'Page3' not found in
  application namespace.  pageName: Page3  Stack Trace:
 
- org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
PageSpecificationResolverImpl.java:147)
-
 
 $PageSpecificationResolver_114607e6394.resolve($PageSpecificationResolver_114607e6394.java)
 
- $PageSpecificationResolver
  _114607e6395.resolve($PageSpecificationResolver_114607e6395.java)
 
- org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:114)
 
- $IPageSource_114607e62f7.getPage($IPageSource_114607e62f7.java)
- org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java
 :239)
 
- org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
 :226)
 
- org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java
 :573)
 
- org.apache.tapestry.engine.PageService.service(PageService.java:66)
-
 $IEngineService_114607e637f.service($IEngineService_114607e637f.java)
 
- org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
EngineServiceOuterProxy.java:72)
- org.apache.tapestry.engine.AbstractEngine.service(
AbstractEngine.java:246)
- org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:54)
-
 
 $WebRequestServicer_114607e635d.service($WebRequestServicer_114607e635d.java)
 
-
 
 $WebRequestServicer_114607e6359.service($WebRequestServicer_114607e6359.java)
 


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




Re: not found in application namespace ERROR!!

2007-08-13 Thread Marcos Chicote
where is the .page file? under web-inf too?

On 8/13/07, dinesh kumar [EMAIL PROTECTED] wrote:

 hello thanks for the reply . but i still have a problem.

   1. in the home.html i used the @pagelink  to page=page1  ( both having
 no java class files)

 2. i created a  page1.html in WEB-INF folder .

   3. then i deployed  and saw in the web browser. when i click the page1
 link it shows this  page not found exception error.

 4 . did i forget to write any code elsewhere ?

i want to navigate from one page to the other page ..how to do can u
 explain me  with some example codes..

 thanx.

 On 8/13/07, Ulrich Stärk [EMAIL PROTECTED] wrote:
 
  You forgot to write a corresponding page class for Page3. If you did
  make sure that you either referenced it in your Page3.page or that you
  put it into the package denoted by the
  org.apache.tapestry.page-class-packages configuration property (see
  http://tapestry.apache.org/tapestry4.1/usersguide/configuration.html for
  details).
 
  Uli
 
  dinesh kumar schrieb:
   hey iam new to tapestry . i started with the quick start tutorials in
  the
   tapestry page after compleating that i found this error can any one
 help
  me
   how to sort it .. how to fix this in  the application name space.
  
   home.html
  
html jwcid=@Shell title=Tapestry Component DataBase
head
  title form tutorial/title
/head
body
h1 Tapestry Component Database/h1
  
p
Options:
/p
ul
lia  jwcid=@PageLink page=AddProject Add New
   Project/a/li
lia jwcid=@PageLink page=Page3Extra Page/a/li
/ul
/body
   /html
  
   Page3.html
  
   html jwcid=@Shell title=Extra Page
head
  title/title
/head
body jwcid=@Body
h1 welcome to page 3/h1
/body
   /html
  
   --
  
 
 ---
An exception has occurred.
  
   You may continue by *restarting
   http://localhost:8084/Form/app?service=restart
   * the session.
[ +/- ] Exception:
   http://localhost:8084/Form/app?page=Page3service=pagePage 'Page3'
   not found in application namespace.
   org.apache.tapestry.PageNotFoundException  Page 'Page3' not found in
   application namespace.  pageName: Page3  Stack Trace:
  
 - org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve
 (
 PageSpecificationResolverImpl.java:147)
 -
  
 
 $PageSpecificationResolver_114607e6394.resolve($PageSpecificationResolver_114607e6394.java)
  
 - $PageSpecificationResolver
   _114607e6395.resolve($PageSpecificationResolver_114607e6395.java)
  
 - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java
 :114)
  
 - $IPageSource_114607e62f7.getPage($IPageSource_114607e62f7.java)
 - org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java
  :239)
  
 - org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
  :226)
  
 - org.apache.tapestry.engine.RequestCycle.activate(RequestCycle.java
  :573)
  
 - org.apache.tapestry.engine.PageService.service(PageService.java
 :66)
 -
  $IEngineService_114607e637f.service($IEngineService_114607e637f.java)
  
 - org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
 EngineServiceOuterProxy.java:72)
 - org.apache.tapestry.engine.AbstractEngine.service(
 AbstractEngine.java:246)
 - org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
 InvokeEngineTerminator.java:54)
 -
  
 
 $WebRequestServicer_114607e635d.service($WebRequestServicer_114607e635d.java)
  
 -
  
 
 $WebRequestServicer_114607e6359.service($WebRequestServicer_114607e6359.java)
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: not found in application namespace ERROR!!

2007-08-13 Thread dinesh kumar
   yes . iam attaching the doc2.doc file showing my file structure,

On 8/13/07, Marcos Chicote [EMAIL PROTECTED] wrote:

 where is the .page file? under web-inf too?

 On 8/13/07, dinesh kumar [EMAIL PROTECTED] wrote:
 
  hello thanks for the reply . but i still have a problem.
 
1. in the home.html i used the @pagelink  to page=page1  ( both
 having
  no java class files)
 
  2. i created a  page1.html in WEB-INF folder .
 
3. then i deployed  and saw in the web browser. when i click the page1
  link it shows this  page not found exception error.
 
  4 . did i forget to write any code elsewhere ?
 
 i want to navigate from one page to the other page ..how to do can u
  explain me  with some example codes..
 
  thanx.
 
  On 8/13/07, Ulrich Stärk [EMAIL PROTECTED] wrote:
  
   You forgot to write a corresponding page class for Page3. If you did
   make sure that you either referenced it in your Page3.page or that you
   put it into the package denoted by the
   org.apache.tapestry.page-class-packages configuration property (see
   http://tapestry.apache.org/tapestry4.1/usersguide/configuration.htmlfor
   details).
  
   Uli
  
   dinesh kumar schrieb:
hey iam new to tapestry . i started with the quick start tutorials
 in
   the
tapestry page after compleating that i found this error can any one
  help
   me
how to sort it .. how to fix this in  the application name space.
   
home.html
   
 html jwcid=@Shell title=Tapestry Component DataBase
 head
   title form tutorial/title
 /head
 body
 h1 Tapestry Component Database/h1
   
 p
 Options:
 /p
 ul
 lia  jwcid=@PageLink page=AddProject Add New
Project/a/li
 lia jwcid=@PageLink page=Page3Extra Page/a/li
 /ul
 /body
/html
   
Page3.html
   
html jwcid=@Shell title=Extra Page
 head
   title/title
 /head
 body jwcid=@Body
 h1 welcome to page 3/h1
 /body
/html
   
--
   
  
 
 ---
 An exception has occurred.
   
You may continue by *restarting
http://localhost:8084/Form/app?service=restart
* the session.
 [ +/- ] Exception:
http://localhost:8084/Form/app?page=Page3service=pagePage 'Page3'
not found in application namespace.
org.apache.tapestry.PageNotFoundException  Page 'Page3' not found in
application namespace.  pageName: Page3  Stack Trace:
   
  -
 org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve
  (
  PageSpecificationResolverImpl.java:147)
  -
   
  
 
 $PageSpecificationResolver_114607e6394.resolve($PageSpecificationResolver_114607e6394.java)
   
  - $PageSpecificationResolver
_114607e6395.resolve($PageSpecificationResolver_114607e6395.java)
   
  - org.apache.tapestry.pageload.PageSource.getPage(PageSource.java
  :114)
   
  - $IPageSource_114607e62f7.getPage($IPageSource_114607e62f7.java)
  - org.apache.tapestry.engine.RequestCycle.loadPage(
 RequestCycle.java
   :239)
   
  - org.apache.tapestry.engine.RequestCycle.getPage(
 RequestCycle.java
   :226)
   
  - org.apache.tapestry.engine.RequestCycle.activate(
 RequestCycle.java
   :573)
   
  - org.apache.tapestry.engine.PageService.service(PageService.java
  :66)
  -
   $IEngineService_114607e637f.service($IEngineService_114607e637f.java)
   
  -
 org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
  EngineServiceOuterProxy.java:72)
  - org.apache.tapestry.engine.AbstractEngine.service(
  AbstractEngine.java:246)
  - org.apache.tapestry.services.impl.InvokeEngineTerminator.service
 (
  InvokeEngineTerminator.java:54)
  -
   
  
 
 $WebRequestServicer_114607e635d.service($WebRequestServicer_114607e635d.java)
   
  -
   
  
 
 $WebRequestServicer_114607e6359.service($WebRequestServicer_114607e6359.java)
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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

T5: a layout with varying style sheets

2007-08-13 Thread Chris Lewis
One of the nice things I learned in my brief investigation of T4.1.2 was 
that the Shell component would automatically pick up any style sheets a 
page declared using the @Style annotation (or something like that). I've 
been wondering how something like this might be achieved in T5, using 
the available components as opposed to subclassing a base page. This 
seems like a feature that would be part of the core, as it is such a 
common need.
I know I could emulate this by creating a layout that expected a page 
property, say externalCss (a collection), and using the Loop component 
to iterate it and insert the link elements. Is this the only way to do 
this in T5?


thanks!
chris

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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua


I cannot even use tapestry-4.1.1 and ognl-2.6.9

[INFO] Started Jetty Server
2007-08-13 17:58:23,090 [btpool0-2] WARN  tapestry.services.Asset - 
Classpath resource '/dojo/

tapestry/namespace.js' does not exist.
2007-08-13 17:58:23,105 [btpool0-2] WARN  tapestry.services.Asset - 
Classpath resource '/dojo/

tapestry.js' does not exist.
2007-08-13 17:58:23,121 [btpool0-2] WARN  tapestry.services.Asset - 
Classpath resource '/dojo/

__package__.js' does not exist.

_
Learn.Laugh.Share. Reallivemoms is right place! 
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us



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



Re: T-4.1 Asset Usage - proper for dojo ?

2007-08-13 Thread Ken nashua

An exception has occurred.

You may continue by restarting the session.
[ +/- ] Exception: Missing classpath resource '/js/dojo/dojo.js'.
org.apache.hivemind.ApplicationRuntimeException
Missing classpath resource '/js/dojo/dojo.js'.
location: 	Annotation 
@org.apache.tapestry.annotations.Asset(value=/js/dojo/dojo.js) of public 
abstract org.apache.tapestry.IAsset 
org.trails.demo.components.CustomHead.getDefaultDojoSource()

Stack Trace:

 
org.apache.tapestry.asset.ClasspathAssetFactory.createAbsoluteAsset(ClasspathAssetFactory.java:61)


_
Puzzles, trivia teasers, word scrambles and more. Play for your chance to 
win! http://club.live.com/home.aspx?icid=CLUB_hotmailtextlink



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



Re: T5: a layout with varying style sheets

2007-08-13 Thread Robert Zeigler

T5 renders with a dom.
Gives you a lot of control...
You could create a style component that finds the head and inserts  
the appropriate link element.
Then your components could add their own stylesheets using the style  
component, with the page and containing components none the wiser.
You would want to make sure that a given stylesheet is inserted only  
once, of course (eg, if your component is contained within a loop...).

A component like this should be very straightforward to write in T5.

Robert

On Aug 13, 2007, at 8/134:51 PM , Chris Lewis wrote:

One of the nice things I learned in my brief investigation of  
T4.1.2 was that the Shell component would automatically pick up any  
style sheets a page declared using the @Style annotation (or  
something like that). I've been wondering how something like this  
might be achieved in T5, using the available components as opposed  
to subclassing a base page. This seems like a feature that would be  
part of the core, as it is such a common need.
I know I could emulate this by creating a layout that expected a  
page property, say externalCss (a collection), and using the Loop  
component to iterate it and insert the link elements. Is this the  
only way to do this in T5?


thanks!
chris

-
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] Render ExceptionReport for emailing from custom ExceptionReport

2007-08-13 Thread Daniel Jue
I would like to know as well.  I believe someone else asked about
generating html email content using Tapestry 5, and I think the
response was that it's just not possible at the moment.  HTML email
generation would be nice!


On 8/11/07, Jonathan Barker [EMAIL PROTECTED] wrote:
 Hi all,



 I want to email a copy of the default ExceptionReport wile displaying only a
 friendly message to users.  I built up the email manually in T4, but I would
 rather take advantage of the nice error reporting in T5.



 I guess this is just a specific case of wanting to use a Tapestry Page as a
 template.  For most emails, I would just use Velocity or Freemarker, but
 that would be reinventing the wheel in this case.



 Anyone know how to render another page to a String from within a page?





 Jonathan



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



Re: T5: a layout with varying style sheets

2007-08-13 Thread Chris Lewis
So it looks like one would need to (re)create something similar to the 
T4 Shell component.
I've taken a brief look at the DOM api, and if I were to write something 
as focused as a Style component, then it looks like I'd have to:


1) create my component class, either in my.namespace.components, or 
another module that is loaded and contributed

2) get a MarkupWriter instance via void beginRender/@BeginRender
3) use writer.getRootElement() to get the root, and then traverse into 
the head
4) assuming eHead is my head Element, use eHead.element(link, rel, 
stylesheet, type, text/css, href, TODO-css-url-here), to 
append a link


Can anyone comment on the (in)correctness of this?
It'd be nice to ensure ordering of the sheets somehow, so they can 
cascade properly. It'd be easier to do that with a more sophisticated 
Shell-link component that handled building the page base (head, metas, 
scripts, etc). Anyway, please share thoughts.


thanks
chris

Robert Zeigler wrote:

T5 renders with a dom.
Gives you a lot of control...
You could create a style component that finds the head and inserts 
the appropriate link element.
Then your components could add their own stylesheets using the style 
component, with the page and containing components none the wiser.
You would want to make sure that a given stylesheet is inserted only 
once, of course (eg, if your component is contained within a loop...).

A component like this should be very straightforward to write in T5.

Robert

On Aug 13, 2007, at 8/134:51 PM , Chris Lewis wrote:

One of the nice things I learned in my brief investigation of T4.1.2 
was that the Shell component would automatically pick up any style 
sheets a page declared using the @Style annotation (or something like 
that). I've been wondering how something like this might be achieved 
in T5, using the available components as opposed to subclassing a 
base page. This seems like a feature that would be part of the core, 
as it is such a common need.
I know I could emulate this by creating a layout that expected a page 
property, say externalCss (a collection), and using the Loop 
component to iterate it and insert the link elements. Is this the 
only way to do this in T5?


thanks!
chris

-
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: T5: a layout with varying style sheets

2007-08-13 Thread Robert Zeigler
Overall, that looks pretty good, but you could handle it easier, I  
think, by using the environment service.
The top level document is available during render from the  
Environment service, so you could use that in place of steps 2 and 3.
Consistent ordering would be nice... the difficult thing there is  
determining what ordering should be the correct ordering.
If you have some way or knowing what the correct ordering ought to  
be, then you could certainly traverse the dom and make sure your new  
link element is inserted in the correct location.
But the real question is knowing what the right order should be.  
Order of render is probably incorrect. For example, you create a  
layout component which inserts your application-specific  
stylesheets via the proposed custom style component. Your layout is  
embedded in a page, and as part of the layout body, there is a  
component which also uses the style component. Rendering order would  
place the style of the layout first, and the style of the embedded  
component second, which is probably not what you want since you might  
be overriding the component-default styling in your application  
style.  (You could get around that be declaring your layout/ 
application-specific style component after the t:body/ of your  
layout component, but...) You don't want to have to explicitly define  
an order in the style component since you don't really know what  
stylesheets will be available.  But, again, if you can figure out  
what the order /ought/ to be, you should be able to enforce that  
order. :)


Robert

On Aug 13, 2007, at 8/136:08 PM , Chris Lewis wrote:

So it looks like one would need to (re)create something similar to  
the T4 Shell component.
I've taken a brief look at the DOM api, and if I were to write  
something as focused as a Style component, then it looks like I'd  
have to:


1) create my component class, either in my.namespace.components, or  
another module that is loaded and contributed

2) get a MarkupWriter instance via void beginRender/@BeginRender
3) use writer.getRootElement() to get the root, and then traverse  
into the head
4) assuming eHead is my head Element, use eHead.element(link,  
rel, stylesheet, type, text/css, href, TODO-css-url- 
here), to append a link


Can anyone comment on the (in)correctness of this?
It'd be nice to ensure ordering of the sheets somehow, so they can  
cascade properly. It'd be easier to do that with a more  
sophisticated Shell-link component that handled building the page  
base (head, metas, scripts, etc). Anyway, please share thoughts.


thanks
chris

Robert Zeigler wrote:

T5 renders with a dom.
Gives you a lot of control...
You could create a style component that finds the head and  
inserts the appropriate link element.
Then your components could add their own stylesheets using the  
style component, with the page and containing components none the  
wiser.
You would want to make sure that a given stylesheet is inserted  
only once, of course (eg, if your component is contained within a  
loop...).

A component like this should be very straightforward to write in T5.

Robert

On Aug 13, 2007, at 8/134:51 PM , Chris Lewis wrote:

One of the nice things I learned in my brief investigation of  
T4.1.2 was that the Shell component would automatically pick up  
any style sheets a page declared using the @Style annotation (or  
something like that). I've been wondering how something like this  
might be achieved in T5, using the available components as  
opposed to subclassing a base page. This seems like a feature  
that would be part of the core, as it is such a common need.
I know I could emulate this by creating a layout that expected a  
page property, say externalCss (a collection), and using the Loop  
component to iterate it and insert the link elements. Is this the  
only way to do this in T5?


thanks!
chris

 
-

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: T5: a layout with varying style sheets

2007-08-13 Thread Martin Reurings
Well, one could peek to get the markupwriter, but perhaps you may want 
to dig through the sourcecode to see what Howard's done to support 
adding javascript files on the fly. He uses a 'service' 
DocumentScriptBuilder to 'declare' the various scripts as well as keep 
them unique and then once all components have rendered he modifies the 
DOM to prepend script tags to the body.


I've been meaning to build a style version for a project we're doing but 
just haven't found the time yet (it's not a critical issue as yet).


The idea here would be:
1) create a 'service' to declare your stylesheets to. In essence any 
ListString that ensures unique entries and if desires order.
2) declare this service in your AppModule in such a way that it's 
available to all pages
3) Using peek or peekrequired any component can declare stylesheets to 
the service
4) On document cleanup add a link for each declared stylesheet to the 
end of head-elememt (preserving order).


I don't have the details of where to do step (4) yet, I haven't had the 
need to find out but if you follow the trail of breadcrumbs and hunt 
down DocumentScriptBuilder one would assume you'd be able to do this :)


Other than this alternative, I see nothing wrong with what you proposed, 
except perhaps that it doesn't ensure uniqueness, which I would find 
essential :)


Good luck,

Martin

Chris Lewis wrote:
So it looks like one would need to (re)create something similar to the 
T4 Shell component.
I've taken a brief look at the DOM api, and if I were to write 
something as focused as a Style component, then it looks like I'd have 
to:


1) create my component class, either in my.namespace.components, or 
another module that is loaded and contributed

2) get a MarkupWriter instance via void beginRender/@BeginRender
3) use writer.getRootElement() to get the root, and then traverse into 
the head
4) assuming eHead is my head Element, use eHead.element(link, 
rel, stylesheet, type, text/css, href, TODO-css-url-here), 
to append a link


Can anyone comment on the (in)correctness of this?
It'd be nice to ensure ordering of the sheets somehow, so they can 
cascade properly. It'd be easier to do that with a more sophisticated 
Shell-link component that handled building the page base (head, metas, 
scripts, etc). Anyway, please share thoughts.


thanks
chris

Robert Zeigler wrote:

T5 renders with a dom.
Gives you a lot of control...
You could create a style component that finds the head and inserts 
the appropriate link element.
Then your components could add their own stylesheets using the style 
component, with the page and containing components none the wiser.
You would want to make sure that a given stylesheet is inserted only 
once, of course (eg, if your component is contained within a loop...).

A component like this should be very straightforward to write in T5.

Robert

On Aug 13, 2007, at 8/134:51 PM , Chris Lewis wrote:

One of the nice things I learned in my brief investigation of T4.1.2 
was that the Shell component would automatically pick up any style 
sheets a page declared using the @Style annotation (or something 
like that). I've been wondering how something like this might be 
achieved in T5, using the available components as opposed to 
subclassing a base page. This seems like a feature that would be 
part of the core, as it is such a common need.
I know I could emulate this by creating a layout that expected a 
page property, say externalCss (a collection), and using the Loop 
component to iterate it and insert the link elements. Is this the 
only way to do this in T5?


thanks!
chris

-
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: T5: a layout with varying style sheets

2007-08-13 Thread Chris Lewis
I have some thoughts on ordering, but first could you elaborate on, or 
better yet point me to documentation on teh Environmental service? I've 
seen it mentioned but know nothing about it.


Robert Zeigler wrote:
Overall, that looks pretty good, but you could handle it easier, I 
think, by using the environment service.
The top level document is available during render from the Environment 
service, so you could use that in place of steps 2 and 3.
Consistent ordering would be nice... the difficult thing there is 
determining what ordering should be the correct ordering.
If you have some way or knowing what the correct ordering ought to be, 
then you could certainly traverse the dom and make sure your new link 
element is inserted in the correct location.
But the real question is knowing what the right order should be. Order 
of render is probably incorrect. For example, you create a layout 
component which inserts your application-specific stylesheets via the 
proposed custom style component. Your layout is embedded in a page, 
and as part of the layout body, there is a component which also uses 
the style component. Rendering order would place the style of the 
layout first, and the style of the embedded component second, which is 
probably not what you want since you might be overriding the 
component-default styling in your application style.  (You could get 
around that be declaring your layout/application-specific style 
component after the t:body/ of your layout component, but...) You 
don't want to have to explicitly define an order in the style 
component since you don't really know what stylesheets will be 
available.  But, again, if you can figure out what the order /ought/ 
to be, you should be able to enforce that order. :)


Robert

On Aug 13, 2007, at 8/136:08 PM , Chris Lewis wrote:

So it looks like one would need to (re)create something similar to 
the T4 Shell component.
I've taken a brief look at the DOM api, and if I were to write 
something as focused as a Style component, then it looks like I'd 
have to:


1) create my component class, either in my.namespace.components, or 
another module that is loaded and contributed

2) get a MarkupWriter instance via void beginRender/@BeginRender
3) use writer.getRootElement() to get the root, and then traverse 
into the head
4) assuming eHead is my head Element, use eHead.element(link, 
rel, stylesheet, type, text/css, href, 
TODO-css-url-here), to append a link


Can anyone comment on the (in)correctness of this?
It'd be nice to ensure ordering of the sheets somehow, so they can 
cascade properly. It'd be easier to do that with a more sophisticated 
Shell-link component that handled building the page base (head, 
metas, scripts, etc). Anyway, please share thoughts.


thanks
chris

Robert Zeigler wrote:

T5 renders with a dom.
Gives you a lot of control...
You could create a style component that finds the head and inserts 
the appropriate link element.
Then your components could add their own stylesheets using the style 
component, with the page and containing components none the wiser.
You would want to make sure that a given stylesheet is inserted only 
once, of course (eg, if your component is contained within a loop...).

A component like this should be very straightforward to write in T5.

Robert

On Aug 13, 2007, at 8/134:51 PM , Chris Lewis wrote:

One of the nice things I learned in my brief investigation of 
T4.1.2 was that the Shell component would automatically pick up any 
style sheets a page declared using the @Style annotation (or 
something like that). I've been wondering how something like this 
might be achieved in T5, using the available components as opposed 
to subclassing a base page. This seems like a feature that would be 
part of the core, as it is such a common need.
I know I could emulate this by creating a layout that expected a 
page property, say externalCss (a collection), and using the Loop 
component to iterate it and insert the link elements. Is this the 
only way to do this in T5?


thanks!
chris

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



T3: PropertySelecton

2007-08-13 Thread Nazmul Bhuiyan

Hello,

I want the user to choose Code and Description. But I can only let the user
choose Code or the Description by the PropertySelection.
Is there any component similar to PropertySelection that I can use for this
purpose, so that user can see Code and Description?
Some code example would be great help for me.

Regards

Naz


My current code looks like:

.html
tr
  td width=1% nowrapAddress Type: /td
  td width=99%
select jwcid=addrType
  option value=0Postal/option
  option value=1Street/option
/select
  /td
/tr

.page
property-specification name=addrType type=java.lang.String /

component id=addrType type=PropertySelection
binding name=model expression=availAddrType/binding
binding name=value expression=AddrType/binding
/component

.java
public abstract String getAddrType();
public abstract void setAddrType(String addrType);

public IPropertySelectionModel getAvailAddrType() {
String[] addrTypeArray = 
EfiAddrTypeDAO.getActiveEfiAddrTypeDescrList().toArray(new String[0]);
return new StringPropertySelectionModel(addrTypeArray);
}

-- 
View this message in context: 
http://www.nabble.com/T3%3A-PropertySelecton-tf4264534.html#a12136626
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: AssetExternaliser in 4.1.2

2007-08-13 Thread Jesse Kuhnert
Hmm ...Sounds interesting.   I don't have a specific need for
something like that right now - but am always happy to accept patches
(+ tests) .

On 7/26/07, Lionel Touati [EMAIL PROTECTED] wrote:
 It actually saved the content of the assets in a specified directory, so
 they'd be served by Apache rather than tomcat

 L.


 Jesse Kuhnert a écrit :
  I've never really used T3 (other than the progression of alpha/beta
  builds
  from T3-T4 when I first found it ) - what exactly did externalizing an
  asset mean?
 
  On 7/21/07, Lionel Touati [EMAIL PROTECTED] wrote:
 
  Hi List,
 
  In Tapestry 3, there was the ability to externalize assets on the web
  server to avoid contention on the Tomcat instance. Apparently this
  feature does not exist anymore.
 
  Is this something I've missed, or a requirement for V4 ?
 
  Thanks for your feedback
 
  -
  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 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: [T4.1.2] DirectLink and stateful

2007-08-13 Thread Jesse Kuhnert
I'm not sure I understand what you are seeing as expected vs. actual behavior.

I do remember seeing a bug with DirectLinks not passing that parameter
to the link factory but don't know how it applies to your situation
that isn't controllable via setting stateful = true/false.

On 7/26/07, Patrick Klein [EMAIL PROTECTED] wrote:
 Hi!

 I just noticed that the behavior of directlink seems to have changed
 from 4.1.1. We have the following directlink in your page:

 a class=quick jwcid=[EMAIL PROTECTED] stateful=ognl:false
 listener=listener:logoutUser href=# ... /a

 Problem is now that the listener does not get called, but the
 RedirectException inside the listener seems to get triggered.
 Additionally the Session triggering the logout does not get destroyed.
 If i set stateful to true all works as it should (listener is called,
 session is destroyed), but if the user has waited till the session
 timeout had occured already she/he would see the stalestate page which
 we do not want.

 Somehow i doubt that this is the intended behavior here...

 Regards,
 Patrick

 -
 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: [T4] need help on multi-checkbox validation

2007-08-13 Thread Jesse Kuhnert
Sounds like you need to create a new depends on validator.  I've
been meaning to do it but haven't yet.

On 7/26/07, #Cyrille37# [EMAIL PROTECTED] wrote:
 Perhaps I can present my question in a different way :

 What's the way to have an inter-fields validation for a form, like if
 checkboxA and checkboxB are checked, textfieldC must be filled.
 Should I create a component which it not rendered but it comes for
 inspecting form's fields to make the validation ?

 Have you got an idea ?

 thanks
 cyrille.

 #Cyrille37# a écrit :
  Hello,
  This days I'm trying to find a way for managing validation between
  severals checkbox.
  The need is: there are several checkboxes in a form and each checkbox
  needs to match rules which exprims dependencies between those checkboxes.
  For example :  you can check this one if you have checked those two
  others, but only if a third on is not checked.
 
  I come here to ask your opinion, ideas and tips on the way you will do
  it in different layer : server-side validation, client-side
  validation, a rules manager component or not, is validation can have a
  view on several component to return error or not ...
 
  Please, tell me want idea comes to you about that need.
 
  Thanks a lot
  cyrille.
 



 -
 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: [T4] Problems with Dialog component

2007-08-13 Thread Jesse Kuhnert
You should try 4.1.3-snapshot to be sure - but sometimes the problem
is just conflicting css rules on your page.

Try segregating the dialog in to a minimal page with little to no css
rules and work your way out from there. (if 4.1.3 doesn't solve it)

On 7/26/07, Martino Piccinato [EMAIL PROTECTED] wrote:
 Hi everybody,

 I'm experiencing lots of problems with Dialog component with Tapestry
 4.1.2, don't know if other or getting the same problems,
 I'm just following the Dialog tutorial on online documentation.

 First problem is that I get an exception if not setting the optional
 hidden parameter with an ognl binding as in tutorial
 hidden=ognl:hiddenDialog otherwise I'd get a ReadOnlyBindingException.

 But this is not the biggest problem just by following the tutorial I
 can set the parameter with an ognl binding and go ahead, what seems
 not to be working at all is the hid()/show() mechanism, meaning that
 when I click on the link to show the dialog the dialog appears bottom
 left and BEHIND the grey layer used to disable the rest of the
 screen

 I don't have any form whatsoever in my page or in dojo dialog, I
 investigated a bit with firebug and this is what appear BEFORE
 clicking on showDialog link:

 a id=DirectLink onclick=return
 tapestry.linkOnClick(this.href,'DirectLink', false)
 href=/kironweb/StartPage,$DirectLink.sdirect?updateParts=dialogComponentToggle
 dialog/a

 script type=text/javascript
 !--
 dojo.addOnLoad(function(e) {
 tapestry.widget.synchronizeWidgetState(dialogComponent, Dialog,
 {bgColor:black,bgOpacity:0.400059604645}, false);

  dojo.widget.byId(dialogComponent).hide();});
 // --
 /script


 div id=dialogComponent class=dojoDialog dojoattachpoint=wrapper
 style=overflow: visible; position: absolute; z-index: 999; display:
 none;
 span tabindex=0 dojoonblur=clearTrap dojoonfocus=trapTabs
 dojoattachpoint=tabStartOuter/
 span tabindex=0 dojoonblur=clearTrap dojoonfocus=trapTabs
 dojoattachpoint=tabStart/
 div style=position: relative; z-index: 2;
 dojoattachpoint=containerNode DIALOG CONTENT/div
 span tabindex=0 dojoonblur=clearTrap dojoonfocus=trapTabs
 dojoattachpoint=tabEnd/
 span tabindex=0 dojoonblur=clearTrap dojoonfocus=trapTabs
 dojoattachpoint=tabEndOuter/
 /div
 div class=dialogUnderlay style=position: absolute; top: 0px; left:
 0px; z-index: 998; display: none; background-color: rgb(0, 0, 0);
 height: 1px; width: 1px;/


 This is what is in the DOM Tree AFTER pressing the show dialog button:

 div id=dialogComponent class=dojoDialog dojoattachpoint=wrapper
 style=visibility: visible; left: 0px; top: 337.5px; DIALOG
 CONTENT/div
 div class=dialogUnderlay style=position: absolute; top: 190px;
 left: 0px; z-index: 998; display: block; background-color: rgb(0, 0,
 0); height: 318px; width: 1264px; opacity: 0.4;/


 So, I can se the dialog content but not positioned and under the
 dialogUnderlay div and the application is just blocked obviously.


 It's a very basic example on a very basic page, just following the
 tutorial. My cache is disabled. Any suggestion? Does anybody had the
 same problem?

 Tnx

 Martino

 -
 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: T 4.1.2 OGNL exception dies on linux while ok on win...

2007-08-13 Thread Jesse Kuhnert
No idea,  if you file an issue with ~exact~ object types / values
being used - independent of anything happening in tapestry - I should
be able to look at it.

I do everything on linux so I probably would have seen something there
by now but 64 bit stuff in general is still kind of wanky for libstdc/
friends as far as I know.

On 7/27/07, Wojciech Ciesielski [EMAIL PROTECTED] wrote:
 Hi there,

 I am stuck with an exception being thrown by OGNL expression... I have
 an application started on the windows machine and exactly the same app
 connected to exactly the same databases on the 64bit linux. On windows
 it's workin, on linux - mysterious exception is being thrown

 Does anybody know what might be OS sensitive ??

 13:25:31,025 ERROR [http-8080-Processor24] AjaxComponentProvider - Error
 while processing request
 org.apache.tapestry.BindingException: Unable to parse OGNL expression
 'isOccurrenceNew()': Method isOccurrenceNew failed for object
 $OccurrencesInf$
at
 org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:145)

at
 org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125)

at
 org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84)

at
 org.apache.tapestry.enhance.EnhanceUtils.toBoolean(EnhanceUtils.java:173)
at $IfBean_6.getCondition($IfBean_6.java)
at
 org.apache.tapestry.components.IfBean.evaluateCondition(IfBean.java:128)
at
 org.apache.tapestry.components.IfBean.renderComponent(IfBean.java:66)

 ...

at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:595)
 Caused by: org.apache.hivemind.ApplicationRuntimeException: Unable to
 parse OGNL expression 'isOccurrenceNew()': Method isOccurrenceNew
 failed for $
at
 org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:156)

at
 org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115)

at
 $ExpressionCache_11407a2adbb.getCompiledExpression($ExpressionCache_11407a2adbb.java)

at
 org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134)

... 69 more
 Caused by: ognl.MethodFailedException: Method isOccurrenceNew failed
 for object
 [EMAIL PROTECTED]/OccurrencesInfo]$
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1058)
at
 ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1084)
at ognl.ASTMethod.getValueBody(ASTMethod.java:90)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200)
at ognl.SimpleNode.getValue(SimpleNode.java:244)
at ognl.Ognl.getValue(Ognl.java:494)
at ognl.Ognl.getValue(Ognl.java:458)
at
 org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:148)

at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498)
at ognl.Ognl.compileExpression(Ognl.java:141)
at
 org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152)

... 72 more

 TIA,
 Wojtek




-- 
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: T4: How to exclude dojo?

2007-08-13 Thread Jesse Kuhnert
There isn't currently a way to do this.  I have thought about it and
think I have a good idea on how to do this with T5 but am thinking
that it's not worth the investment in T4.  (it would require a lot of
behind the scenes refactoring and such that might be time better spent
on T5)

On 7/27/07, Chinchih [EMAIL PROTECTED] wrote:
 I know that Tapestry 4.1.x bundles with dojo, and to use the dojo functions, 
 the
 @Shell component will have to be used to include the necessary js files.
 However, in our application we prefer to use jQuery instead of Dojo. I noticed
 that if a Form component is used, Tapestry will output the following code 
 inside
 the generated body block:

 script type=text/javascript!--
 dojo.addOnLoad(function(e) {
 dojo.require(tapestry.form);tapestry.form.registerForm(Form);
 tapestry.form.focusField('button');});
 // --/script

 Is there a way to turn off Dojo to avoid having to include dojo?

 Thanks,
 Chinchih


 -
 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: ajax question

2007-08-13 Thread Jesse Kuhnert
In IE you can only replace the inner content of td elements, anything
above that is off limits.

But..tables are still a perfectly acceptable way to lay content
out.  I've played the floating div css whatever game and found it to
be more trouble than it's worth a lot (but not always) of the time.
Or I'm just lazy.  :)   (but even the ajax kings - ie gmail / others
use a lot of tables as well so it must be not as bad as people think)

On 7/28/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 For what I can remember table elements substitution (innerHTML ='...') have
 problem under M$IE either if you threat 'em with dom.
 The tbody element is needed tho handle all table 'real' content and to
 separate that content from the header and footer that i threat for different
 scopes.

 On 7/28/07, Evan Rawson - Work [EMAIL PROTECTED] wrote:
 
  that is true they do get tricky when it comes to vertical scaling, you
  need
  to use javascript to maintain that. however im still confused onto y you
  are
  using a tbody. i have no idea wether a tbody would have problems with
  ajax.
  I dont think it would.
  - Original Message -
  From: Andrea Chiumenti [EMAIL PROTECTED]
  To: Tapestry users users@tapestry.apache.org
  Sent: Friday, July 27, 2007 5:23 PM
  Subject: Re: ajax question
 
 
   Yes the use of div would be very nice, but as far as I know div elements
   don't expand very well vertically, so building a table using div
  elements
   for cells and rows would be a little tricky.  sigh!
  
   ps.: I hate tables too
  
   On 7/27/07, Evan Rawson - Work [EMAIL PROTECTED] wrote:
  
   tbody is a soon to be deprecated html element. i would recommend
  steering
   away from tables and try to utilize div's and css as much as possible.
   Especially if you wanna be using alot of AJAX.
   - Original Message -
   From: Andrea Chiumenti [EMAIL PROTECTED]
   To: Tapestry users users@tapestry.apache.org
   Sent: Thursday, July 26, 2007 1:30 AM
   Subject: Re: ajax question
  
  
Yea!
..because they are evil bastards
+1
   
   
On 7/26/07, Marcus Schulte [EMAIL PROTECTED] wrote:
   
- at least, that's a pretty decent reason, isn't it?
   
2007/7/26, Jesse Kuhnert [EMAIL PROTECTED]:

 IE won't let you do it. ..because they are evil bastards.

 On 7/25/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 
  Does anybody know if there are some problems in updating a tbody
element
  when performing an ajax request?
 
  Thx,
  kiuma
 



 --
 Jesse Kuhnert
 Tapestry/Dojo team member/developer

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

   
   
   
--
Marcus Schulte
http://marcus-schulte.blogspot.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]
 
 



-- 
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: include-script and 3rd-party javascript libraries

2007-08-13 Thread Jesse Kuhnert
On your running web app copy and paste the url that is generated to
jquery and just see if you can hit it directly..  If you are
successful you'll see the javascript source code.

On 7/28/07, Chinchih [EMAIL PROTECTED] wrote:
 I have a question about how the include-script tag in script templates is 
 used
 to include 3rd-party javascript libraries? According to Tapestry 4.x online 
 User
 Guide, the required resource-path attribute specifies The path to the 
 script
 within the classpath.

 I tagged onto the ConfirmDelete example in ch.10 of Enjoying Web Deveopment
 with Tapestry, 3ed and added the following line in Confirm.script, just below
 script:

 include-script resource-path=js/jquery-latest.pack.js/

 And inside the body block, I used a jQuery function just for testing. After
 deploying the example, view source revealed that Tapestry had generated the
 following:

 body id=Body
 script type=text/javascript
 src=/ConfirmDelete/WEB-INF/js/jquery-latest.pack.js/script
 script type=text/javascript!--
 function getConfirmation() {
 return confirm(Are you sure?);
 }
 $(function(){
 $('button').bind('click', getConfirmation);
 });
 // --/script
 ...

 But on page load I'm getting an error in Firebug which indicated that the page
 couldn't reference the jquery library. I have tried to put
 jquery-latest.pack.js under WEB-INF/js inside the war file, but that didn't
 work. Then I tried to create a jslib.jar, which contains
 js/jquery-latest.pack.js and put it under WEB-INF/lib. That didn't work, 
 either.
 Could someone please kindly offer some hint?

 Thanks,
 Chinchih


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



T5 Type to ValueEncoderFactory

2007-08-13 Thread Todd Orr
I've suddenly run into what seems to be a bug that appears when I pass
an integer to a custom component that itself contains a radiogroup
that uses the inherit:value as its own value. For some reason it will
only take a string. If the value is an int, for example, it throws the
exception below. I find it odd that it is not converting this for me
as I might expect. Nor do I know where to manually convert this
myself.


Caused by: java.lang.IllegalArgumentException: No adapter from type
int to type org.apache.tapestry.services.ValueEncoderFactory is
available (registered types are java.lang.Enum, java.lang.String).
at 
org.apache.tapestry.ioc.util.StrategyRegistry.findMatch(StrategyRegistry.java:125)
at 
org.apache.tapestry.ioc.util.StrategyRegistry.get(StrategyRegistry.java:102)
at 
org.apache.tapestry.internal.services.ValueEncoderSourceImpl.createEncoder(ValueEncoderSourceImpl.java:48)
at 
$ValueEncoderSource_1146231daef.createEncoder($ValueEncoderSource_1146231daef.java)
at 
org.apache.tapestry.corelib.components.RadioGroup.defaultEncoder(RadioGroup.java:84)
at 
org.apache.tapestry.corelib.components.RadioGroup.containingPageDidLoad(RadioGroup.java)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl$3.run(ComponentPageElementImpl.java:92)
at 
org.apache.tapestry.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:923)
... 38 more
... Removed 22 stack frames


Any ideas?

Thanks

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



Re: T4.1 List of pages

2007-08-13 Thread Jesse Kuhnert
Yep,  it's impossible to do.  (and would be extremely inefficient if
tapestry did do it for very large apps)

I'd recommend using something like the tacos SiteMap service - I still
seem to end up using it on almost every project I work on.

http://tacos.sourceforge.net/hivemind/SiteMap.html

On 7/31/07, Craig Spry [EMAIL PROTECTED] wrote:
 Thanks

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 31 July 2007 4:47 PM
 To: users@tapestry.apache.org
 Subject: RE: T4.1 List of pages

 Hi Craig,

 most probably, you don't have your page-specifications listed in your
 *.application (or *.library, if you're interested in a library's pages.)

 Unfortunately, Tapestry's page-/component-lookup mechanism is
 sufficiently complicated to make it hard to detect all pages before
 usage -- unless they're listed in the specification.

 Marcus

  -Original Message-
  From: Craig Spry [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, July 31, 2007 3:46 AM
  To: Tapestry users
  Subject: RE: T4.1 List of pages
 
  Hello,
 
  I tried to do getNamespace().getPageNames() and all I got was
  the name of the current page.  Then I tried this:
  ListString pages = new VectorString(); for ( Object id :
  getNamespace().getChildIds() ) {
  INamespace lib = getNamespace().getChildNamespace(
  id.toString() );
  pages.addAll(lib.getPageNames()); }
 
  This gave me a list of components.  Is there anything eles
  that I need to do?
 
  Craig
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 25 July 2007 4:16 PM
  To: users@tapestry.apache.org
  Subject: RE: T4.1 List of pages
 
  getNamespace().getPageNames()
 
  /Marcus
 
   -Original Message-
   From: Craig Spry [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 25, 2007 8:01 AM
   To: Tapestry users
   Subject: T4.1 List of pages
  
   Hello All,
  
   I'm currently adding user permissions to my application,
  this is going
   to be done on a per page basis.  I was wondering if it is
  possible to
   get tapestry to give me a list of pages so I can build the
  permissions
   page dynamically to save me having to manually up date this
  every time
   a new page is added.
  
   TIA,
   Craig
  
  
  -
   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]




-- 
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 4.1.2 upgrade

2007-08-13 Thread Jesse Kuhnert
Glad you liked it. :) 4.1.3 is even faster if you can believe it

On 7/31/07, Peter Stavrinides [EMAIL PROTECTED] wrote:
 Thank guys for your hard work on Tapestry 4.1.2, I have noticed a
 massive performance improvement, especially with the asynchronous stuff.

 well done! ;-)

 Peter


 -
 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: 4.1.2 - problem starting tapestry app

2007-08-13 Thread Jesse Kuhnert
Probably something is mapped weird in your web.xml file or you have a
context name hard coded somewhere.   Deploying it as root.war means it
becomes the root context and has no context name.

ie normally it'd be :

http://appname:port/contextname

but now it's just

http://appname:port/

On 7/31/07, craigham [EMAIL PROTECTED] wrote:

 Hi Jesse,

 I have narrowed this down a little.  I only get this error if I attempt to
 deploy the war as ROOT.war.  If I name it myApp.war, it deploys fine.

 Do you know what could be prohibiting me from deploying as ROOT.war ?

 thanks,
 craig


 Jessek wrote:
 
  That sounds about right to me.  There really isn't an engine service named
  action anymore.  It existed in previous 4.X versions but was marked for
  death a long time ago.
 
  Sounds like your server has some old tapestry jars somewhere.
 
  On 7/12/07, craigham [EMAIL PROTECTED] wrote:
 
 
  Hi,
 
  I just updated my tapestry, and am trying to deploy my application.
 
  It deploys fine on one of my ubuntu based servers, but when I attempted
  to
  deploy it onto production I get the following errors:
 
  ERROR spintop.tapestry.Exception  - Uncaught error, discovered at
  tapestry
  level
  org.apache.hivemind.ApplicationRuntimeException: There was an error
  borrowing the page with key PageKey[_pageName='Home'
  , _locale=en_US
  ] from the page pool. [classpath:/org/apache/tapestry/form/Form.jwc, line
  127, column 68]
 
  ...
 
  Caused by: org.apache.hivemind.ApplicationRuntimeException: Error at
  classpath:/org/apache/tapestry/form/Form.jwc, line 127, column 68: Error
  adding property actionService to class org.apache.tapestry.form.Form: No
  engine service named 'action' is available.
  [classpath:/org/apache/tapestry/form/Form.jwc, line 127, column 68]
 
  ...
 
  Caused by: org.apache.hivemind.ApplicationRuntimeException: No engine
  service named 'action' is available.
  [classpath:/org/apache/tapestry/form/Form.jwc, line 127, column 68]
 
  ...
 
  Caused by: org.apache.hivemind.ApplicationRuntimeException: No engine
  service named 'action' is available.
 
  Any ideas what could cause the app to work on one server but not the
  other?
 
  thanks,
  craig
 
  --
  View this message in context:
  http://www.nabble.com/4.1.2---problem-starting-tapestry-app-tf4071997.html#a11572445
  Sent from the Tapestry - User mailing list archive at Nabble.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
 
 

 --
 View this message in context: 
 http://www.nabble.com/4.1.2---problem-starting-tapestry-app-tf4071997.html#a11927962
 Sent from the Tapestry - User mailing list archive at Nabble.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: Conditional async?

2007-08-13 Thread Jesse Kuhnert
Right.   Redirects aren't really handled by xml http request - so any
implementation of them is haphazard at best.

On 8/2/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 you could als set via javascript the input components you need and then call
 dojo.byId('idsubmit').click(); to take advantage of the ajax features.

 ciao,
 kiuma

 On 8/2/07, Malin Ljungh [EMAIL PROTECTED] wrote:
 
  Igor:
  Thanks! Works better now :-)  It's not beautiful but it works!
 
  Peter:
  Thanks for your reply. I use validators and async=true and this is the
  whole
  point... it's in case of valid input I need to reload the whole page, due
  to
  logged in view is so different from anonymous view so async=true and
  updateComponents is not appropriate anymore.
 
  Malin
 
 
 
  On 8/2/07, Peter Stavrinides [EMAIL PROTECTED] wrote:
  
   Malin
  
   There are so many scenarios I can think of, which depend very much on
   how you app is constructed, without a good understanding of which makes
   answering your question correctly a shot in the dark.
  
   I find the best place to validate is before the page render so you wont
   need a reload afterwards... if you implement the pageValidate interface
   (PageValidateListener) you can do this. There are also Tapestry
   components that allow you to refresh portions of pages, after all thats
   what AJAX is for: input type=submit jwcid=@Submit async=true
   value=Submit
  
  
  updateComponents=ognl:{'refresh_component1','refresh_component1','error_log_refresh','image_refresh'}/
  
   Peter
  
  
   Malin Ljungh wrote:
No one had this issue?
Must be the most common scenario I figure...
   
*puff*
   
   
On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote:
   
Thanks Andrea - it works! ... well, almost anyway :)
   
If the page is reached through a post I will get the POSTDATA confirm
dialog... :'(
   
Malin
   
   
On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
   
if login succeeds just write a conditional js that refresh the page
   
   
On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote:
   
I've created a login component to add to my pages.
   
If validation fails I'd like to use async=true to display
   validation
messages - works fine!
   
But - if login succeeds, I'd like to refresh the whole page... how
  do
   
I
   
perform this? In this case I'd like to have async=false or
  possibly
   
use
   
some other updateComponents.
   
Thought of a round-trip page or a forced reload from the client
  using
   
script
   
or something...
   
Any ideas?
   
Malin
   
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
   
   
This message has been scanned for malware by SurfControl plc.
   www.surfcontrol.com
   
   
  
   --
   Peter Stavrinides
   Albourne Partners (Cyprus) Ltd
   Tel: +357 22 750652
  
   If you are not an intended recipient of this e-mail, please notify the
   sender, delete it and do not read, act upon, print, disclose, copy,
  retain
   or redistribute it. Please visit http://www.albourne.com/email.html for
   important additional terms relating to this e-mail.
  
  
  
   -
   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: T4.1:Overloaded Submit Button

2007-08-13 Thread Jesse Kuhnert
Or create a new IBinding type that you stick in parameters like
disabled=perm:something .   That's what I've done in the past.

On 8/3/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 It's a matter of tastes, you could also  put a js code that does a
 dojo.event.connect (and sons ;-p ).

 Ciao,
 kiuma

 On 8/3/07, Craig Spry [EMAIL PROTECTED] wrote:
 
 
  Hello All,
 
  I'm trying to overload tapestries Submit with my own submit so I can have
  my code in the isDisabled() function.  I want to do this so I can check only
  in one place is a user has write access to any page in my application in one
  place, ie the isDisabled() function.  Since I'm having to do some strange
  things to get this going, copy the contents of the Submit.jwc from the
  Tapestry source into MySubmit.jwc and copy the SubmitBindings.script into
  my source directory, I was wondering if this is the best way to do this, or
  is there a better way.
 
  Thanks,
  Craig
 
  -
  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: T4 creating dynamic styles for divs

2007-08-13 Thread Jesse Kuhnert
Don't forget the new IMarkupWriter.appendAttribute() function - which
does what the name implies.   (could possibly combine this with a
custom RenderWorker hivemind contribution)

On 8/3/07, Christian Haselbach [EMAIL PROTECTED] wrote:
 On Thu, Aug 02, 2007 at 06:32:06PM -0700, kael20 wrote:
  I have an issue where I need to create the style for a div based on the
  properties of an object in my database.  This object contains top, left,
  width, and height which are important to create this particular div.  Is
  there anyway that I can apply these attributes dynamically to a div using a
  component or something else?

 You mean like this?

 div jwcid=@Any style=ognl:'width:'+mywidth+';height:'+myhight
 ...
 /div

 Regards,
 Christian
 --
 Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804
 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
 Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
 Amtsgericht München, HRB 135082

 -
 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: [T4] Event for every request to clear data

2007-08-13 Thread Jesse Kuhnert
Yep, that's exactly how you should do it.

On 8/3/07, Ben Dotte [EMAIL PROTECTED] wrote:
 Yes, a threaded service is created and bound to the current request
 thread the first time it is requested. There is a more detailed
 explanation here:

 http://hivemind.apache.org/hivemind1/services.html#Threaded+Service+Model

 They also mention on there how to handle cleanup at the end of the
 request with HiveMind's servlet filter and the Discardable interface
 if needed.

 On 8/3/07, Christian Haselbach [EMAIL PROTECTED] wrote:
  On Thu, Aug 02, 2007 at 10:12:14AM -0500, Ben Dotte wrote:
   Is there any reason you can't use a threaded HiveMind service? That is
   usually the approach I take when I have a shared resource that should
   only live for the duration of a request.
 
  Thanks for the tip. I'm not quite sure if this works as I think.
  So the request is done in a new thread, the service is created for this
  thread and is discarded when the request finishes, right?
 
  That would work for me, if this is the way things go.
 
  Regards,
  Christian
 
  --
  Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804
  TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring
  Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock
  Amtsgericht München, HRB 135082
 
  -
  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 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: Newbie - Show all validation errors

2007-08-13 Thread Jesse Kuhnert
Yeah that's mostly how it's done.

But - you may want to think about handling this differently if you
have the opportunity.   At least from a ui perspective - I've not been
particularly fond of web forms that display all my errors at the top
or bottom in a list that I then need to re lookup for each field I'm
trying to correct.   (maybe some contextual display of errors next to
the relevant section of a form - ie a fieldset -  that still lists
things but at least has them listed on a per section basis)

just random thoughts...

On 8/3/07, Adam Bennett [EMAIL PROTECTED] wrote:
 Hello all,

 I'm trying to wrap my head around Tapestry.  I'll be ordering some books
 shortly but in the meantime:  What is the simplest way (in 4.1) to show
 a list of form validation errors.  Here is the essence of my page:

 html jwcid=@Shell title=Home
 body jwcid=@Body

 !-- I want to show the errors here --

 form jwcid=[EMAIL PROTECTED] success=listener:doSubmit
 label jwcid=@FieldLabel field=component:user/

 input jwcid=[EMAIL PROTECTED] displayName=Email
 value=ognl:login.user
 validators=validators:required,email[Invalid email
 address]/

 label jwcid=@FieldLabel field=component:password/
 input jwcid=[EMAIL PROTECTED] displayName=Password
 value=ognl:login.pwd validators=validators:required/

 input type=submit value=Log in/
 /form
 /body
 /html

 It doesn't seem like a task that should require any custom java code in
 my page class.  From what I can guess It will probably involve something
 like this:

 ul
 span jwcid=@For
 source=ognl:components.myForm.delegate.fieldTracking
 value=currentFieldTracking
 li
 span jwcid=@Delegator
 delegate=currentFieldTracking.errorRenderer/
 /li
 /span
 /ul

 Yet the above doesn't work.

 Thanks for your patience.
 - Adam (a former (hopefully) Struts developer)



 Videx Inc. 1105 N. E. Circle Blvd. Corvallis OR 97330 (541) 758-0521
 CONFIDENTIAL COMMUNICATION: The email message and any attachments are 
 intended only for the addressee.  They may be privileged, confidential, and 
 protected from disclosure. If you are not the intended recipient, any 
 dissemination, distribution, or copying is expressly prohibited.  If you 
 received this email message in error, please notify the sender immediately by 
 replying to this e-mail message or by telephone


 -
 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: StaleLinkException with LinkSubmit in 4.1.2

2007-08-13 Thread Jesse Kuhnert
It sounds sort of familiar.   It's not been anything I've run across
in normal app development but it sounds familiar in various bug
hunting stuff I may have done.

Is this stuff you see while debugging with firebug by any chance?
I've noticed that firebug has a bug in the net tab view where
viewing an ajax request with data causes it to mess things up with
form submits,.The only reliable way to see things is to turn on
xml request debugging and look at the requests in the console tab.
...only if this is in conjunction with firebug though..

On 8/4/07, Lionel Touati [EMAIL PROTECTED] wrote:
 Hi List,

 I'm having a strange problem with a LinkSubmit component. Here's a part
 of my template

 form jwcid=[EMAIL PROTECTED]
 listener=ognl:listeners.defaultFormSubmit
 delegate=ognl:beans.delegate  autocomplete=off
 h2span raw=true key=manage_cards //h2
 br /
 table
 tr
 td width=120px
 a jwcid=@LinkSubmit async=true
 action=ognl:listeners.newCard
 span jwcid=@ColorButtonWithoutListener
 label=message:ajouter_carte  /
 /a
 /td
 /tr
 /table

 

 /form

 Sometimes, I get the following stalelink exception


 Rewind of form CreateUser/$UserCards.createUserForm expected only 0 form
 elements, but an additional id was requested by component
 CreateUser/$UserCards.$LinkSubmit.org.apache.tapestry.StaleLinkException:
 Rewind of form CreateUser/$UserCards.createUserForm expected only 0 form
 elements, but an additional id was requested by component
 CreateUser/$UserCards.$LinkSubmit.
 [classpath:/com/egencia/frontend/usermanagement/components/UserCards.html,
 line 7]
 at
 org.apache.tapestry.form.FormSupportImpl.getElementId(FormSupportImpl.java:389)
 at org.apache.tapestry.form.Form.getElementId(Form.java:122)
 at
 org.apache.tapestry.form.AbstractFormComponent.setName(AbstractFormComponent.java:153)
 at
 org.apache.tapestry.form.AbstractFormComponent.renderComponent(AbstractFormComponent.java:88)
 at org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:723)
 at
 org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:180)
 at
 org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:537)
 at org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:615)
 at org.apache.tapestry.form.Form.renderComponent(Form.java:196)
 at org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:723)
 at
 org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:180)
 at org.apache.tapestry.form.Form.rewind(Form.java:269)
 at org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:453)
 at org.apache.tapestry.form.Form.trigger(Form.java:280)
 at
 org.apache.tapestry.engine.DirectService.triggerComponent(DirectService.java:166)
 at org.apache.tapestry.engine.DirectService.service(DirectService.java:142)


 Is this something ever encountered ?

 Thanks a lot

 L.

 -
 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: AW: [T4] wierd ognl error

2007-08-13 Thread Jesse Kuhnert
I don't think ognl really handled enums (very well) before 2.7.

On 8/8/07, Peter Schröder [EMAIL PROTECTED] wrote:
 i dont think that logging an issue to jira will be successfull. T4.0.2 seems 
 not to be supported any longer...

 -Ursprüngliche Nachricht-
 Von: Nick Westgate [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 8. August 2007 08:21
 An: Tapestry users
 Betreff: Re: AW: [T4] wierd ognl error

 Looks like an OGNL/Tapestry bug to me, so log a JIRA for Tapestry.

 Cheers,
 Nick.


 Peter Schröder wrote:
  hi lutz,
 
  ognl: property name=radioId initial-value=@[EMAIL PROTECTED] + 
  '_radio' /
 
  prop: label jwcid=@Any for=prop:radioId.../label
 
  from my poit of view, the failure is in the first statement, cause this 
  should constuct some property with an initial value, the prop should just 
  read from that property... but its just a guess.
 
  anyways that is something that should NEVER happen! the property is not 
  changed after it is initaialized!
  but i think i just put the ognl expression right into my Any component. 
  perhaps that helps.
 
  kind regards,
  peter
 
 
  -Ursprüngliche Nachricht-
  Von: Lutz Hühnken [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 7. August 2007 20:48
  An: Tapestry users
  Betreff: Re: [T4] wierd ognl error
 
  Excuse me for being picky, but your subject is misleading. You claim
  to have an ognl error, but obviously you are using tapestry-prop
  instead of ognl.
 
 From a quick look at your code I would guess the problem is that at
  some point the value of radioId is mnpnull. Although you have
  defined an initial value, it is not immutable and can take on other
  values of type string, I guess.
 
  If you think that's unlikely, you could also try to actually use ognl
  instead of prop, just to make sure it's not a shortcoming of
  tapestry-prop you're facing.
 
  Hth,
 
  Lutz
 
 
  On 8/7/07, Peter Schröder [EMAIL PROTECTED] wrote:
  hi,
 
  we are running an t4 application wich has the following code in .jwc:
 
  property name=radioId initial-value=@[EMAIL PROTECTED] + '_radio' /
 
  and in .html:
 
  label jwcid=@Any for=prop:radioId.../label
 
  this normally renders to:
 
  label for=mnp_radio.../label
 
  but some times, ognl fails and renders to:
 
  label for=mnpnull.../label
 
 
  the only way to solve this is to reload the application!
  any comments on this?
 
  kind regards,
  peter
 
  -
  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]




-- 
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: EventListener

2007-08-13 Thread Jesse Kuhnert
try 4.1.3-snapshot?  There was more work done in that function
recently with the new javascript @EventListener function parameters
being able to be passed in to listeners via special methods in the
BrowserEvent object.

On 8/11/07, Frank [EMAIL PROTECTED] wrote:
 Hi,

 When I make a simple EventListener I get this error :

 FATAL exception raised: buildTargetProperties() Unknown target type:[object
 HTMLSelectElement]
 FATAL exception raised: Error: buildTargetProperties() Unknown target
 type:[object HTMLSelectElement]

 I just can't figure out what is wrong.

 Tapestry 4.1.1  4.1.2

 Java :

 @EventListener( targets = size,events = onchange)
 public void updatePaper()
 {
 System.out.println(update);
 }

 HTML:

 label jwcid=@FieldLabel field=component:size/
 span jwcid=[EMAIL PROTECTED] model=ognl:validPapers
 value=ognl:skiltSetup.paperId
 validators=validators:required,min=1
 displayName=message:size/


 Anyone having a hint ?

 Cheers,

 Frank



-- 
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: [ANN]T5 book: reviewers are needed

2007-08-13 Thread Jesse Kuhnert
He will have more of those AJAX features in soon - one way or
another.   After 4.1.3 goes out I'm thinking of easing off T4.1.X
some, except maybe bug fixes.   (if I can get away with it)

On 8/13/07, Kolesnikov, Alexander  GNI
[EMAIL PROTECTED] wrote:
 Well, I am in chapter 5 now, out of nine planned. The trick is that chapter 9 
 should be about AJAX and I only hope that Howard will add AJAX features soon. 
 If all goes well, the manuscript should be ready by the end of September, and 
 then it should take something like a month to have it printed. This publisher 
 is a very efficient one. They don't mind printing a book even about an Alpha 
 version as they print on demand, and the book can be upgraded together with 
 the framework.

 -Original Message-
 From: Adam Zimowski [mailto:[EMAIL PROTECTED]
 Sent: 11 August 2007 18:05
 To: Tapestry users
 Subject: Re: [ANN]T5 book: reviewers are needed


 When can we expect this book to hit the stores???

 On 8/9/07, Kolesnikov, Alexander  GNI
 [EMAIL PROTECTED] wrote:
  Sorry, Thiago, I don't think I should... I think the publisher has
  already contacted them.
 
  -Original Message-
  From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED]
  Sent: 09 August 2007 16:40
  To: Tapestry users
  Subject: Re: [ANN]T5 book: reviewers are needed
 
 
  On Thu, 09 Aug 2007 12:28:41 -0300, Kolesnikov, Alexander  GNI
  [EMAIL PROTECTED] wrote:
 
   Phew... The publisher has actually contacted me a few days ago to
   tell me that he's got many more reviewer volunteers than he ever
   expected, and so he selected only three of them. But it will be an
   honor for both me and them to have you as a reviewer. I will contact
   them now and try to convince to increase the number of reviewers!
 
  Can you tell us who the chosen reviewers are? :)
 
  --
  Thiago H. de Paula Figueiredo
  Desenvolvedor, Instrutor e Consultor de Tecnologia
  Eteg Tecnologia da Informação Ltda.
  http://www.eteg.com.br
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  
  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]
 
 

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



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




-- 
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: t4.1.2 + dojo tree component beginner question

2007-08-13 Thread Jesse Kuhnert
You should try the dojo support forums - there's no such thing as a
Tapestry Dojo tree component.   (at least there better not be, not in
tapestry at least ;)  )

http://dojotoolkit.org/forums/forums/support/dijit

On 8/13/07, mn [EMAIL PROTECTED] wrote:

 Hi,

 I am new in tapestry first of all :) How to use dojo tree component? I tried
 this, but it doest't work (lack dojo definition error...). What should I do
 to use other widget that are not included in tapestry (other than
 autocompleter etc.)?

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN
 http://www.w3.org/TR/html4/strict.dtd;
 html
 head
 titleDojo Tree Widget Test/title

 script type=text/javascript

 dojo.require(dojo.widget.*);
 dojo.require(dojo.widget.Tree);
 dojo.require(dojo.widget.TreeSelector);
 dojo.hostenv.writeIncludes();

 dojo.addOnLoad(function() {
 dojo.event.topic.subscribe(nodeSelected,
  function(message) { dojo.debug(message.node.title+ 
 selected); }
 );
 });

 /script

 /head

 body jwcid=@Body

 h2Tree with selector events/h2

 dojo:TreeSelector widgetId=treeSelector
 eventNames=select:nodeSelected/dojo:TreeSelector

 div dojoType=Tree selector=treeSelector
 div dojoType=TreeNode title=Item 1
 div dojoType=TreeNode title=Item 1.1 /div
 div dojoType=TreeNode title=Item 1.2 
 div dojoType=TreeNode title=Item 1.2.1 
 div dojoType=TreeNode title=Item 1.2.1.1 
 /div
 /div
 div dojoType=TreeNode title=Item 1.2.2 /div
 /div
 div dojoType=TreeNode title=Item 1.3 
 div dojoType=TreeNode title=Item 1.3.1 /div
 div dojoType=TreeNode title=Item 1.3.2 /div
 /div
 div dojoType=TreeNode title=Item 1.4 
 div dojoType=TreeNode title=Item 1.4.1 /div
 /div
 /div
 div dojoType=TreeNode title=Item 2 /div
 /div
 /body


 --
 View this message in context: 
 http://www.nabble.com/t4.1.2-%2B-dojo-tree-component-beginner-question-tf4260575.html#a12124378
 Sent from the Tapestry - User mailing list archive at Nabble.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: JSON help... image scaling onRender

2007-08-13 Thread Jesse Kuhnert
Make your image very large by default (or however large the largest
box would ever be)  and let the browser scale it down for you
automatically.   Nothing can make images scale up,  but almost
anything can do a reasonable job at going down..

This should all be possible with 0 help from tapestry / javascript /
dojo.  Just your image / css and you.

On 8/13/07, Ken nashua [EMAIL PROTECTED] wrote:
 Folks,

 I want to operate JSON during body onload:???

 Basically I have a Border.html that operates a custom head which renders a
 header image.

 span jwcid=@ScriptIncludes /
 html
 jwcid=[EMAIL PROTECTED]
 title=ognl:layout.title
 stylesheet=ognl:assets.stylesheet 
 body jwcid=@Body

 But my header images are not scaling to the exact size of the box.

 So I would like to operate JSON during ONLOAD in order to ask the server
 what the actual size of the box is using dojo.html.getContentBox(???);

 Can anyone explain how I can rig this up?

 Preferably I would like to use...
 void renderComponent(IJSONWriter writer,IRequestCycle cycle)

 The doc semantics for rigging all this up are not clear.

 At best there are two variables I would like to gather from the server
 (scaleWidth, scaleHeight... which are the actual outer dimensions of the box
 in question).

 Thanks in advance

 Best regards
 Ken in nashua

 _
 Now you can see trouble…before he arrives
 http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_protection_0507


 -
 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: T3: PropertySelecton

2007-08-13 Thread Jesse Kuhnert
Do you mean having two select lists where the second list depends on
what is selected in the first?

I use this ~all~ the time in combination with @EventListener to update
the second list when something changes via onchange in the first.

On 8/13/07, Nazmul Bhuiyan [EMAIL PROTECTED] wrote:

 Hello,

 I want the user to choose Code and Description. But I can only let the user
 choose Code or the Description by the PropertySelection.
 Is there any component similar to PropertySelection that I can use for this
 purpose, so that user can see Code and Description?
 Some code example would be great help for me.

 Regards

 Naz


 My current code looks like:

 .html
 tr
   td width=1% nowrapAddress Type: /td
   td width=99%
 select jwcid=addrType
   option value=0Postal/option
   option value=1Street/option
 /select
   /td
 /tr

 .page
 property-specification name=addrType type=java.lang.String /

 component id=addrType type=PropertySelection
 binding name=model expression=availAddrType/binding
 binding name=value expression=AddrType/binding
 /component

 .java
 public abstract String getAddrType();
 public abstract void setAddrType(String addrType);

 public IPropertySelectionModel getAvailAddrType() {
 String[] addrTypeArray =
 EfiAddrTypeDAO.getActiveEfiAddrTypeDescrList().toArray(new String[0]);
 return new StringPropertySelectionModel(addrTypeArray);
 }

 --
 View this message in context: 
 http://www.nabble.com/T3%3A-PropertySelecton-tf4264534.html#a12136626
 Sent from the Tapestry - User mailing list archive at Nabble.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: T3: PropertySelecton

2007-08-13 Thread Nazmul Bhuiyan

Not really, I’m retrieving data from the database that has code and
description. If I display code in the PropertySelection then that doesn’t
make any sense to user. I would like to display the description beside the
code.
 
I also need to enable and disable some of the fields according to the item
selected form the PropertySelection.

Even better if I can render only specific fields to enter specific data if
user selects one thing in PropertySelection and other fields to enter other
data if user selects other.

For example if user selects org=Y then user should only see the organization
specific fields in the form and if user selects org=N then user should only
see the person specific fields in the form to enter data.

Is there any T3 specific code example that I can see to understand how
onchange works?

Thanks a lot


Jessek wrote:
 
 Do you mean having two select lists where the second list depends on
 what is selected in the first?
 
 I use this ~all~ the time in combination with @EventListener to update
 the second list when something changes via onchange in the first.
 
 On 8/13/07, Nazmul Bhuiyan [EMAIL PROTECTED] wrote:

 Hello,

 I want the user to choose Code and Description. But I can only let the
 user
 choose Code or the Description by the PropertySelection.
 Is there any component similar to PropertySelection that I can use for
 this
 purpose, so that user can see Code and Description?
 Some code example would be great help for me.

 Regards

 Naz


 My current code looks like:

 .html
 tr
   td width=1% nowrapAddress Type: /td
   td width=99%
 select jwcid=addrType
   option value=0Postal/option
   option value=1Street/option
 /select
   /td
 /tr

 .page
 property-specification name=addrType type=java.lang.String /

 component id=addrType type=PropertySelection
 binding name=model expression=availAddrType/binding
 binding name=value expression=AddrType/binding
 /component

 .java
 public abstract String getAddrType();
 public abstract void setAddrType(String addrType);

 public IPropertySelectionModel getAvailAddrType() {
 String[] addrTypeArray =
 EfiAddrTypeDAO.getActiveEfiAddrTypeDescrList().toArray(new String[0]);
 return new StringPropertySelectionModel(addrTypeArray);
 }

 --
 View this message in context:
 http://www.nabble.com/T3%3A-PropertySelecton-tf4264534.html#a12136626
 Sent from the Tapestry - User mailing list archive at Nabble.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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T3%3A-PropertySelecton-tf4264534.html#a12138311
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[Tap4] Page Flickering on Firefox.

2007-08-13 Thread Miguel Angel Hernández
Hi everyone,
This is a general web design question.
Does anybody knows how to avoid flickering on loading pages?

I'm developing a tapestry4 app with tacos, and it suffers of a lot of
flcikering when loading pages. This means the browser goes blank before
rendering a page, even thought
they are using border component.

Cheers,

Miguel