Re: Templating with Tapestry5

2007-05-01 Thread Weisu

Please look at this post Templating with Tapestry 5 by bjornharvold. Hope
it will help you.


Joshua Jackson-3 wrote:
 
 Dear all,
 
 I'm really new with tapestry5 and tapestry. I've been figuring out
 about templating with tapestry5 the same way as struts-tiles or
 facelets. How do I do this with tapestry5? I've been trying to find
 out about the tutorial in tapestry website but can not figure it out
 also.
 
 Can somebody help me on this by giving me hints?
 
 Thanks in advance,
 joshua
 
 -- 
 Join the hireway project, an outsourcing portal for us
 http://sourceforge.net/projects/hireway
 http://groups.google.com/group/hireway
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Templating-with-Tapestry5-tf3673041.html#a10265112
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: Need help with Tacos and validation

2007-05-01 Thread Jacob Bergoo

Hi Andreas,
yes, I have looked at the demo pages and the source code for it. The problem
I am having is a little strange...
let me try to explain.
I have a page where I want to use a partial component rendering like in the
example http://opencomponentry.com:8080/tacos/ajax/EffectsExample.html where
I show or hide a search form. This I have implemented and it works. The next
step is that in the search form I want to add some validation in my listener
method so I check that at least one field in the search form is populated.
If the search form get past the validation then I want to display yet
another Partial Component to show or hide the search result in a grid
component.
This is where things start to behave strange... In IE7 the validation kicks
in at the first click if I have set an error. In Firefox it take multiple
clicks befor the validation shows. Also for now I have only put the Grid
component code from the demo in the content of the second Partial component.
In IE7 the Grid component comes up the first time I click on the search
button and in Firfox I need to click 4 times on the search button before the
Grid component is displayed. (with a valid search form).
Also in IE7 the mask I have for SSN does not  show the first time, but after
one click (either Validation kicks in or it displays the Grid) the mask
shows up and work. And the DatePicker does not work in IE7...

Do you have any ideer on how to fix these issues?

This is my code:
Page file:

?xml version=1.0?
!DOCTYPE page-specification PUBLIC -//Apache Software Foundation//Tapestry
Specification 4.0//EN
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;

page-specification
class=com.mycompany.ui.web.action.securepages.rep.RepDocumentPage

!-- COMPONENTS --
component id=pageTitleWithMenu type=PageTitleWithMenu /

component id=repTopBar type=RepTopBar 
binding name=topBarName value=currentTopBarName /
/component

component id=reportTable type=tacos:Grid
binding name=widgetId value=literal:testDiv/
binding name=columns value=ognl:gridColumns/
binding name=source value=ognl:gridData/
!-- binding name=row value=ognl:gridTableRow/--

binding name=pageSize value=ognl:20/
binding name=enableMultipleSelect value=true/
binding name=initialSortOrder value=ognl:initSortOrder/
binding name=initialSortColumn value=ognl:initSortColumn/
binding name=showFilter value=true/
binding name=footerRow value=ognl:totalRow/
binding name=headerClass value=literal:Header/
binding name=bodyClass value=literal:scrollContent/
binding name=footerClass value=literal:fixedFooter/
binding name=rowAlternateClass value=literal:alternateRow/
binding name=containerClass value=literal:tableContainer/
binding name=headerSortUpClass value=literal:headerSortUp/
binding name=headerSortDownClass value=literal:headerSortDown/
binding name=title value=literal:Demo Report/
binding name=info value=ognl:info/
/component  

component id=linkSearchForm type=tacos:AjaxDirectLink
binding name=listener value=listener:onSearchForm/
binding name=updateComponents value=ognl:{'searchBlock'}/
/component

component id=linkSearchResult type=tacos:AjaxDirectLink
binding name=listener value=listener:onSearchResult/
binding name=updateComponents value=ognl:{'showSearchResult'}/
/component

component id=insertTime type=Insert
binding name=format
value=@[EMAIL PROTECTED]/
binding name=value value=new java.util.Date()/
/component

/page-specification


the html file:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html jwcid=@Shell title=Investalink 2.0 - Website Admin
xmlns=http://www.w3.org/1999/xhtml;
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 
/
titleInvestalink 2.0 - Website Admin./title
link href=/templates/defaultbluelight/css/reptopbar.css 
rel=stylesheet
type=text/css media=screen /
link href=/templates/defaultbluelight/css/displaybox.css
rel=stylesheet type=text/css media=screen /
link href=/templates/defaultbluelight/css/pagetitlewithmenu.css
rel=stylesheet type=text/css media=screen /
link href=/templates/defaultbluelight/css/formcontrols.css
rel=stylesheet type=text/css media=screen /
link href=/templates/defaultbluelight/css/repdocument.css
rel=stylesheet type=text/css media=screen /
link href=/css/jscalendar/skins/aqua/theme.css rel=stylesheet
type=text/css media=screen /
script type=text/javascript language=javascript
src=/templates/defaultbluelight/javascript/blockresizetowindow.js/script   

script type=text/javascript language=javascript

4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Ben Dotte
Were there some sort of fundamental changes that happened between the
Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried upgrading to
4-30 and I just seem to hit one error after another. The first problem
is an EventListener that used to work fine:

@EventListener(targets=sessionData, events=onclick)
public void sessionDataClicked(IRequestCycle cycle)
{
setShowSessionData(true);
cycle.getResponseBuilder().updateComponent(theSessionData);
}

The nested stack from that is:

Caused by: org.apache.hivemind.ApplicationRuntimeException: No component
found in tree for EventListener binding with a matching component id of
sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
at
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent(Event
ConnectionVisitor.java:51)
at
$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
4e16.java)
at
$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
4e17.java)
at
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:45)
at
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:57)
at
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:604)
at
$IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
at
$IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
at
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
at
$IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
at
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
at
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
at
org.apache.tapestry.error.ExceptionPresenterImpl.presentException(Except
ionPresenterImpl.java:42)
... 62 more

After I commented that out I got another error for a Script:

span jwcid=@Script script=/scripts/categoryHelper.script /

Caused by: org.apache.tapestry.util.xml.DocumentParseException: Unable
to find resource classpath:/scripts/categoryHelper.script.
[classpath:/scripts/categoryHelper.script]
at
org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser
.java:125)
at
org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
at
org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource
.java:88)
... 124 more

I saw a minor change in JIRA to the way scripts are found but I couldn't
see how it would relate to this in particular.

Thanks,
Ben

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



Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Jesse Kuhnert

There were two unrelated changes made. The @EventListener change involved
some inevitable fundamental flaws that I think are all fully resolved as of
this mornings deployment of snapshots.

The script error is related to how the component specs are being resolved,
I'll look into why this is messing up for you but am sure that if you add
either context: or classpath: in front of your string it will work
correctly. (though I intended for it to work without them, so it's a bug if
it isn't working)

On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:


Were there some sort of fundamental changes that happened between the
Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried upgrading to
4-30 and I just seem to hit one error after another. The first problem
is an EventListener that used to work fine:

@EventListener(targets=sessionData, events=onclick)
public void sessionDataClicked(IRequestCycle cycle)
{
setShowSessionData(true);
cycle.getResponseBuilder().updateComponent(theSessionData);
}

The nested stack from that is:

Caused by: org.apache.hivemind.ApplicationRuntimeException: No component
found in tree for EventListener binding with a matching component id of
sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
at
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent(Event
ConnectionVisitor.java:51)
at
$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
4e16.java)
at
$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
4e17.java)
at
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:45)
at
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:57)
at
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:604)
at
$IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
at
$IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
at
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
at
$IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
at
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
at
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
at
org.apache.tapestry.error.ExceptionPresenterImpl.presentException(Except
ionPresenterImpl.java:42)
... 62 more

After I commented that out I got another error for a Script:

span jwcid=@Script script=/scripts/categoryHelper.script /

Caused by: org.apache.tapestry.util.xml.DocumentParseException: Unable
to find resource classpath:/scripts/categoryHelper.script.
[classpath:/scripts/categoryHelper.script]
at
org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser
.java:125)
at
org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
at
org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource
.java:88)
... 124 more

I saw a minor change in JIRA to the way scripts are found but I couldn't
see how it would relate to this in particular.

Thanks,
Ben

-
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


RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Ben Dotte
I tried the snapshots from this morning but unfortunately I still get
the same EventListener error. For the script error I tried adding
context: to the path like this:

span jwcid=@Script script=context:/scripts/categoryHelper.script /

But now the error I get for that is:

Unable to parse script
classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
t.

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 01, 2007 9:33 AM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

There were two unrelated changes made. The @EventListener change
involved
some inevitable fundamental flaws that I think are all fully resolved as
of
this mornings deployment of snapshots.

The script error is related to how the component specs are being
resolved,
I'll look into why this is messing up for you but am sure that if you
add
either context: or classpath: in front of your string it will work
correctly. (though I intended for it to work without them, so it's a bug
if
it isn't working)

On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:

 Were there some sort of fundamental changes that happened between the
 Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried upgrading
to
 4-30 and I just seem to hit one error after another. The first problem
 is an EventListener that used to work fine:

 @EventListener(targets=sessionData, events=onclick)
 public void sessionDataClicked(IRequestCycle cycle)
 {
 setShowSessionData(true);
 cycle.getResponseBuilder().updateComponent(theSessionData);
 }

 The nested stack from that is:

 Caused by: org.apache.hivemind.ApplicationRuntimeException: No
component
 found in tree for EventListener binding with a matching component id
of
 sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
 at

org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent(Event
 ConnectionVisitor.java:51)
 at

$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
 4e16.java)
 at

$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
 4e17.java)
 at

org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
 nentTreeWalker.java:45)
 at

org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
 nentTreeWalker.java:57)
 at
 org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:604)
 at
 $IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
 at
 $IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
 at
 org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
 at
 $IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
 at

org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
 at
 org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
 at

org.apache.tapestry.error.ExceptionPresenterImpl.presentException(Except
 ionPresenterImpl.java:42)
 ... 62 more

 After I commented that out I got another error for a Script:

 span jwcid=@Script script=/scripts/categoryHelper.script /

 Caused by: org.apache.tapestry.util.xml.DocumentParseException: Unable
 to find resource classpath:/scripts/categoryHelper.script.
 [classpath:/scripts/categoryHelper.script]
 at

org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser
 .java:125)
 at
 org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
 at

org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource
 .java:88)
 ... 124 more

 I saw a minor change in JIRA to the way scripts are found but I
couldn't
 see how it would relate to this in particular.

 Thanks,
 Ben

 -
 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: starting point for ajax with dojo and tapestry 4.1?

2007-05-01 Thread Steve Shucker
I asked that same question about a month ago and found there wasn't a 
good answer.  Someone pointed me to Shing Hing Man's homepage 
(http://uk.geocities.com/matmsh/) where he posted some good information, 
but dojo's documentation wasn't nearly as helpful as it should have been.


The first huge gotcha is the parseWidgets attribute of the @Shell 
component.  Tapestry (smartly) says this should be turned off.  All 
dojo's docs assume it's on.  For pure dojo work, prototype your stuff on 
a page with this on before you worry about adding the scripts to 
register widgets manually.  Often, a good way to do this is with a 
manually created header outside a jwcid=$content$ area so you can 
toggle parseWidgets when testing your template.


Look at the tacos sources - they're much more informative than any 
documentation I found.  Don't be afraid to use something other than dojo 
either - my team wasted a lot of time mucking around with dojo's editor2 
before realizing FCKEditor was a better solution.  The tapestry/dojo 
integration is very well thought out, but dojo itself has a number of 
rough edges.


-Steve

Paul Stanton wrote:
Hi, does anyone know of any good tutorials/demos for ajax with dojo 
and tapestry 4.1?


thanks.



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



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



Re: starting point for ajax with dojo and tapestry 4.1?

2007-05-01 Thread Daniel Jue

I have a really simple example you can cut and paste, in order to get
something working.

First of all make sure you have Tap 4.1 and all the dependencies.
This was a pain because I don't use maven.  If you know how to use
maven, I guess you can jump into using 4.1.2 and the snapshots for
that version.  If you don't know how to use maven, you can still
download 4.1.1 and all the 3rd party libraries and stick them in your
path.

Here is my simple program which is a pair of combo boxes where B depends on A.:
http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+4.1.1+Simple+Selection+Model+Update+using+AJAX

It's based on part of a chapter from Kent Tong's book, but I stripped
off all the other parts of that tutorial.  It's a bare minimum
example, and it could probably be made even simpler.

Daniel
On 4/30/07, Paul Stanton [EMAIL PROTECTED] wrote:

Hi, does anyone know of any good tutorials/demos for ajax with dojo and
tapestry 4.1?

thanks.



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




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



Re: Tapestry 5 and Template Reloading

2007-05-01 Thread bjornharvold

Thanks for the emails:

I am am using the same case on both my java class and html file (Start.java
/ Start.html). My directory structure is the maven 2 default one
(src/main/java / src/main/resources). I did watch the screencast and did
exactly the same. I actually did install jetty 4 first as that was what
Howard had in his demo, but it didn't like hot deploy and complained when I
saved a java file. The hot deploy worked when I installed jetty 5.1. The
strange thing about this is that changes don't even occur on the template
even if I restart!! I edit the template, save it, restart, and changes STILL
don't come up. I have to CLEAN in order for it to update which leaves me to
believe this is some caching issue on jetty or eclipse. 

Problem still not solved :-(
thx
bjorn


bjornharvold wrote:
 
 I can't seem to get template reloading to work. Classes reload just fine.
 I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have
 the same problem or better yet, the solution?
 
 thx
 bjorn
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10271041
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: Need help with Tacos and validation

2007-05-01 Thread Jacob Bergoo

One correction: The datepicker works in IE7, but only after I have click on
the 'Clear form' button or the 'Search' button... so It starts to work in
the same time as the Mask component does...

Any input in this matter is really appreciated,
Thanks
Jacob


Jacob Bergoo wrote:
 
 Hi Andreas,
 yes, I have looked at the demo pages and the source code for it. The
 problem I am having is a little strange...
 let me try to explain.
 I have a page where I want to use a partial component rendering like in
 the example http://opencomponentry.com:8080/tacos/ajax/EffectsExample.html
 where I show or hide a search form. This I have implemented and it works.
 The next step is that in the search form I want to add some validation in
 my listener method so I check that at least one field in the search form
 is populated. If the search form get past the validation then I want to
 display yet another Partial Component to show or hide the search result in
 a grid component.
 This is where things start to behave strange... In IE7 the validation
 kicks in at the first click if I have set an error. In Firefox it take
 multiple clicks befor the validation shows. Also for now I have only put
 the Grid component code from the demo in the content of the second Partial
 component. In IE7 the Grid component comes up the first time I click on
 the search button and in Firfox I need to click 4 times on the search
 button before the Grid component is displayed. (with a valid search form).
 Also in IE7 the mask I have for SSN does not  show the first time, but
 after one click (either Validation kicks in or it displays the Grid) the
 mask shows up and work. And the DatePicker does not work in IE7...
 
 Do you have any ideer on how to fix these issues?
 
 This is my code:
 Page file:
 
 ?xml version=1.0?
 !DOCTYPE page-specification PUBLIC -//Apache Software
 Foundation//Tapestry Specification 4.0//EN
   http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd;
   
 page-specification
 class=com.mycompany.ui.web.action.securepages.rep.RepDocumentPage
   
 !-- COMPONENTS --
 component id=reportTable type=tacos:Grid
 binding name=widgetId value=literal:testDiv/
 binding name=columns value=ognl:gridColumns/
 binding name=source value=ognl:gridData/
 !-- binding name=row value=ognl:gridTableRow/--
 
 binding name=pageSize value=ognl:20/
 binding name=enableMultipleSelect value=true/
 binding name=initialSortOrder value=ognl:initSortOrder/
 binding name=initialSortColumn value=ognl:initSortColumn/
 binding name=showFilter value=true/
 binding name=footerRow value=ognl:totalRow/
 binding name=headerClass value=literal:Header/
 binding name=bodyClass value=literal:scrollContent/
 binding name=footerClass value=literal:fixedFooter/
 binding name=rowAlternateClass value=literal:alternateRow/
 binding name=containerClass value=literal:tableContainer/
 binding name=headerSortUpClass value=literal:headerSortUp/
 binding name=headerSortDownClass
 value=literal:headerSortDown/
 binding name=title value=literal:Demo Report/
 binding name=info value=ognl:info/
 /component  
 
 component id=linkSearchForm type=tacos:AjaxDirectLink
 binding name=listener value=listener:onSearchForm/
 binding name=updateComponents value=ognl:{'searchBlock'}/
 /component
 
 component id=linkSearchResult type=tacos:AjaxDirectLink
 binding name=listener value=listener:onSearchResult/
 binding name=updateComponents
 value=ognl:{'showSearchResult'}/
 /component
 
 component id=insertTime type=Insert
   binding name=format
 value=@[EMAIL PROTECTED]/
   binding name=value value=new java.util.Date()/
   /component
   
 /page-specification
 
 
 the html file:
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html jwcid=@Shell title=Investalink 2.0 - Website Admin
 xmlns=http://www.w3.org/1999/xhtml;
 head
   meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
 /
   titleWebsite Admin./title
 
   link href=/templates/defaultbluelight/css/formcontrols.css
 rel=stylesheet type=text/css media=screen /
   link href=/templates/defaultbluelight/css/repdocument.css
 rel=stylesheet type=text/css media=screen /
   link href=/css/jscalendar/skins/aqua/theme.css rel=stylesheet
 type=text/css media=screen /
 
   script type=text/javascript
   djConfig = {
   isDebug: false,
   baseRelativePath: js/dojo,
   preventBackButtonFix: false,
   parseWidgets: false,
   disableFlashStorage: true
   };
   /script
   script type=text/javascript src=js/dojo/dojo.js/script
 
 /head
 
 body id=repDocument 

Another reason to avoid IE!

2007-05-01 Thread Patrick Moore

Hi there --

Brief blog post summarizing yet another 'wonderful' IE idea - MIME sniffing
(is this like glue sniffing?)


http://www.sworddance.com/blog/2007/05/01/what-the-hell-were-they-thinking/

How reasonable would it be for tapestry to have some way of flagging an
uploaded file that looked like it was pulling this stunt? Obviously doing
something about it is way beyond what tapestry should do?

-Pat


Re: Tapestry 5 and Template Reloading

2007-05-01 Thread Kristian Marinkovic
did you use the target/ directories to configure jetty?the target directory is refreshed only after a new build. make sure jetty points to src/main/webapp/ and not tptarget/webapp...-bjornharvold [EMAIL PROTECTED] schrieb: -An: users@tapestry.apache.orgVon: bjornharvold [EMAIL PROTECTED]Datum: 01.05.2007 05:37PMThema: Re: Tapestry 5 and Template ReloadingThanks for the emails:I am am using the same case on both my java class and html file (Start.java/ Start.html). My directory structure is the maven 2 default one(src/main/java / src/main/resources). I did watch the screencast and didexactly the same. I actually did install jetty 4 first as that was whatHoward had in his demo, but it didn't like hot deploy and complained when Isaved a java file. The hot deploy worked when I installed jetty 5.1. Thestrange thing about this is that changes don't even occur on the templateeven if I restart!! I edit the template, save it, restart, and changes STILLdon't come up. I have to CLEAN in order for it to update which leaves me tobelieve this is some caching issue on jetty or eclipse. Problem still not solved :-(thxbjornbjornharvold wrote:  I can't seem to get template reloading to work. Classes reload just fine. I installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have the same problem or better yet, the solution?  thx bjorn -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10271041Sent from the Tapestry - User mailing list archive at Nabble.com.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

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



Tap 4.1.2 translators/validators

2007-05-01 Thread Tony Nelson
If a TextField has both a translator and validators defined, is the 
input passed from the validators the output of the translators?


I have been trying to get something like this working in 4.1.2 (todays 
snapshot) that worked fine in 4.0.


   input jwcid=@TextField value=ognl:percent
validators=validators:required,min=1,max=100
translator=translator:percentTranslator
displayname=Percent Input/

My percentTranslator is registering the dojo events necessary to call:

   translatePercentage:function(value) {
   dojo.log.warn(enter translatePercentage);
   if(!value){return 0;}
   var result = parseFloat(value.replace(/%/,''));
   dojo.log.warn(result= + result);
   return result;
   }

which simply strips any '%' signs out of the input value and returns a 
Float (which is probably unnecessary).


When I submit my test form, I do see the log messages in Firebug as 
expected, and it definitely is returning the value without a % however I 
get a dojo validation popup that states the value is non-number, and 
does not meet the min/max criteria.


Is there any way to find out what value is being passed to min/max?

Thanks in advance for any help.

Tony Nelson


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

Problem of loop in client script with tapestry

2007-05-01 Thread Ajit Raj

Hi,

I try to use for or while in the scirpt of a tapestry page as shown 
below. But it keeps give the error of Unable to parse 
jndi:/localhost/WebRpt/WEB-INF/secure/PageRender.script: The content of 
elements must consist of well-formed character data or markup. Could anyone 
let me know what the problem is?


Thanks,


Ajit

!DOCTYPE script PUBLIC
-//Apache Software Foundation//Tapestry Script Specification 4.0//EN
http://jakarta.apache.org/tapestry/dtd/Script_4_0.dtd;
...

402 var i=0;
403 var msg = ;
404 var x = 1;
405 while (x = 10)   === complaining error here
406 {
407 msg = msg + x + \n;
408 x++;
409 }
410

_
Don’t quit your job – Take Classes Online and Earn your Degree in 1 year. 
Start Today! 
http://www.classesusa.com/clickcount.cfm?id=866146goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866144



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



Re: [announce] new goodies for tapestry 4.1

2007-05-01 Thread Massimo Lusetti

On 4/30/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


A couple new things have been added, which people may/may not be aware of.


Documentation is always worth the effort, thanks, much appreciated!

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

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



Re: Tapestry 5 + Acegi

2007-05-01 Thread Massimo Lusetti

On 4/30/07, Juan Maya [EMAIL PROTECTED] wrote:


I am starting to develop a new application with Tapestry 5 and i am amazed,
I have had such a big productivity bust; now i need to integrate acegi to my
app and i was wonder if somebody has explored how to integrate both
frameworks.

Any help would be appreciated it. I am still a newbie with tapestry 5 and i
am not sure where to start.


Do you already use spring? If so it's straightforward, follow Spring
doc and you're in.
Remember it still alpha, so things may change.

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

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



Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Andreas Andreou

I think i've seen some similar issues in the latest snapshots...

They indeed seem to be related to how components/pages are found, i'll try
to have
a clean example demonstrating this and register a JIRA.

For now, try using:

   dependency
   groupIdorg.apache.tapestry/groupId
   artifactIdtapestry-framework/artifactId
   version4.1.2-20070424.205219-56/version
   /dependency



On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:


I tried the snapshots from this morning but unfortunately I still get
the same EventListener error. For the script error I tried adding
context: to the path like this:

span jwcid=@Script script=context:/scripts/categoryHelper.script /

But now the error I get for that is:

Unable to parse script
classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
t.

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 9:33 AM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

There were two unrelated changes made. The @EventListener change
involved
some inevitable fundamental flaws that I think are all fully resolved as
of
this mornings deployment of snapshots.

The script error is related to how the component specs are being
resolved,
I'll look into why this is messing up for you but am sure that if you
add
either context: or classpath: in front of your string it will work
correctly. (though I intended for it to work without them, so it's a bug
if
it isn't working)

On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:

 Were there some sort of fundamental changes that happened between the
 Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried upgrading
to
 4-30 and I just seem to hit one error after another. The first problem
 is an EventListener that used to work fine:

 @EventListener(targets=sessionData, events=onclick)
 public void sessionDataClicked(IRequestCycle cycle)
 {
 setShowSessionData(true);
 cycle.getResponseBuilder().updateComponent(theSessionData);
 }

 The nested stack from that is:

 Caused by: org.apache.hivemind.ApplicationRuntimeException: No
component
 found in tree for EventListener binding with a matching component id
of
 sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
 at

org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent(Event
 ConnectionVisitor.java:51)
 at

$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
 4e16.java)
 at

$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
 4e17.java)
 at

org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
 nentTreeWalker.java:45)
 at

org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
 nentTreeWalker.java:57)
 at
 org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:604)
 at
 $IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
 at
 $IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
 at
 org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
 at
 $IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
 at

org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
 at
 org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
 at

org.apache.tapestry.error.ExceptionPresenterImpl.presentException(Except
 ionPresenterImpl.java:42)
 ... 62 more

 After I commented that out I got another error for a Script:

 span jwcid=@Script script=/scripts/categoryHelper.script /

 Caused by: org.apache.tapestry.util.xml.DocumentParseException: Unable
 to find resource classpath:/scripts/categoryHelper.script.
 [classpath:/scripts/categoryHelper.script]
 at

org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser
 .java:125)
 at
 org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
 at

org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource
 .java:88)
 ... 124 more

 I saw a minor change in JIRA to the way scripts are found but I
couldn't
 see how it would relate to this in particular.

 Thanks,
 Ben

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






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


Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Jesse Kuhnert

Yeah I'm aware of the issue, think it's fixed locally but am still testing
the changes.

On 5/1/07, Andreas Andreou [EMAIL PROTECTED] wrote:


I think i've seen some similar issues in the latest snapshots...

They indeed seem to be related to how components/pages are found, i'll try
to have
a clean example demonstrating this and register a JIRA.

For now, try using:

dependency
groupIdorg.apache.tapestry/groupId
artifactIdtapestry-framework/artifactId
version4.1.2-20070424.205219-56/version
/dependency



On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:

 I tried the snapshots from this morning but unfortunately I still get
 the same EventListener error. For the script error I tried adding
 context: to the path like this:

 span jwcid=@Script script=context:/scripts/categoryHelper.script /

 But now the error I get for that is:

 Unable to parse script
 classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
 t.

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 01, 2007 9:33 AM
 To: Tapestry users
 Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

 There were two unrelated changes made. The @EventListener change
 involved
 some inevitable fundamental flaws that I think are all fully resolved as
 of
 this mornings deployment of snapshots.

 The script error is related to how the component specs are being
 resolved,
 I'll look into why this is messing up for you but am sure that if you
 add
 either context: or classpath: in front of your string it will work
 correctly. (though I intended for it to work without them, so it's a bug
 if
 it isn't working)

 On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
 
  Were there some sort of fundamental changes that happened between the
  Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried upgrading
 to
  4-30 and I just seem to hit one error after another. The first problem
  is an EventListener that used to work fine:
 
  @EventListener(targets=sessionData, events=onclick)
  public void sessionDataClicked(IRequestCycle cycle)
  {
  setShowSessionData(true);
  cycle.getResponseBuilder().updateComponent(theSessionData);
  }
 
  The nested stack from that is:
 
  Caused by: org.apache.hivemind.ApplicationRuntimeException: No
 component
  found in tree for EventListener binding with a matching component id
 of
  sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
  at
 
 org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent(Event
  ConnectionVisitor.java:51)
  at
 
 $IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
  4e16.java)
  at
 
 $IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
  4e17.java)
  at
 
 org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
  nentTreeWalker.java:45)
  at
 
 org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
  nentTreeWalker.java:57)
  at
  org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:604)
  at
  $IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
  at
  $IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
  at
  org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
  at
  $IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
  at
 
 org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
  at
  org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
  at
 
 org.apache.tapestry.error.ExceptionPresenterImpl.presentException(Except
  ionPresenterImpl.java:42)
  ... 62 more
 
  After I commented that out I got another error for a Script:
 
  span jwcid=@Script script=/scripts/categoryHelper.script /
 
  Caused by: org.apache.tapestry.util.xml.DocumentParseException: Unable
  to find resource classpath:/scripts/categoryHelper.script.
  [classpath:/scripts/categoryHelper.script]
  at
 
 org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser
  .java:125)
  at
  org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
  at
 
 org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource
  .java:88)
  ... 124 more
 
  I saw a minor change in JIRA to the way scripts are found but I
 couldn't
  see how it would relate to this in particular.
 
  Thanks,
  Ben
 
  -
  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 

Re: [announce] new goodies for tapestry 4.1

2007-05-01 Thread Howard Lewis Ship

Cool, cool stuff.

On 4/29/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


A couple new things have been added, which people may/may not be aware of.

-) Josh Long contributed a new maven2 archetype to help get people up and
running with typical configurations like Spring / Jetty / etc in a
Tapestry
project. You can read more about it in his blog entries here:

http://www.joshlong.com/jl/entry/20070227
and
http://www.joshlong.com//jl/entry/20070305

Or on the project page for it at
http://tapestry.apache.org/tapestry4.1/tapestry-archetype/index.html .

-) I finally stuck some documentation pages up covering some of the unit
testing code that we've been using in Tapestry for a while now but never
bothered to document fully. It's a separate download that you can use to
help test your tapestry apps. (and is also what we use to test Tapestry
itself) . Howard wrote all / most of the code of course, I've just moved
it
around some and put it on a web site I can control.

http://tapestry.apache.org/tapestry4.1/tapestry-test/index.html

-) A somewhat experimental new piece of code has been stuck in
tapestry-contrib (do I even need to say it's 4.1.2-SNAPSHOT only ? ) to
generate different kinds of useful images in your applications. Most of
the
code is concerned with rounded corner generation but I also added in some
drop shadow rendering. There is no documentation on it yet as I'm not done
with it but whatever there is should be covered in these places:

http://blog.opencomponentry.com/2007/04/23/google-rounded-corners/
http://ajaxian.com/archives/rounded-and-shaded-corners
http://ajaxian.com/archives/googles-rounded-corner-generator

The images in the demo page here are all generated using this service.
(most
from urls you can embed in simple css declarations)

http://opencomponentry.com:8080/timetracker/LocaleList.html



--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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





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

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


Re: T4 contrib table sorting

2007-05-01 Thread Andreas Andreou

I think that's the way the table component was originally designed...
The sorting links do not set the sorting order to a given value... instead
they set it to the opposite of the previous value - which explains what
you're
seeing.

On 5/1/07, Yohan Yudanara [EMAIL PROTECTED] wrote:


Hi.. I'm using tapestry 4.0.1 included in Appfuse 1.9.4

why does the sorting on contrib table not working (ascending to
descending or descending to ascending) when I click on title column too
quick?

When I click in title column for the first time, the table data sorted
ascending..
When I click second time right after that, the table data still sorted
ascending..
I have to wait for some period (about 5 seconds, but it's not exactly)
before click on the title heading to make it sort descending.

The contrib table also show strange behaviour when I click refresh
button (F5) on browser. (I've try it in IE and firefox). When I click
refresh, the table show ascending. When I refresh again, the table show
descending, When I refresh again, the table show ascending, and so on

Plz help..
thanks a lot




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





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


Re: Initialize a value in the state object.

2007-05-01 Thread Shing Hing Man
There is an example on 
 how to inject a property into an Application State
Object at 

http://lombok.demon.co.uk/tapestry4Demo/Inject.html


Shing

--- Giaccone, Anthony CTR DTIC-A
[EMAIL PROTECTED] wrote:

 
 
 Here's what I want to do..
 
 I have a form that holds a variety of data, which
 the user will use to
 generate a query.  The query data is persistent at
 the session. This
 wayIf they wander down a path, eventually they'll
 return to the main
 page, and the query data will be returned from the
 session and they'll
 be ready to query based on the data that was last
 entered. 
 
 This all works fine and dandy. 
 
 What I want to do now, is set a value in this
 persistent object when the
 object is created. To provide a default value for
 one (or more) of the
 query parameters. 
 
 Imagine for instance that you want to search a queue
 of beans for those
 beans that are in state Pending  as the intial
 state of the query
 page.
 
 This seems like a perfect place to use Hivemind. The
 query data is
 already constructed by Hivemind. 
 
 Here's the XML for the query data in the
 hivemind.xml
 
 module id=mil.dtic.mipr version=1.0.0
   contribution

configuration-id=tapestry.state.ApplicationObjects
   
   state-object name=queryData scope=session 
   create-instance 
   

class=mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem
 /
   /state-object
   /contribution
 /module
 
 So my question is.. How do I convince Hivemind to
 set the property
 status on the object MiprQueryItem to the value of
 Pending. 
 
 
 
 





  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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



Grid Component question

2007-05-01 Thread Jacob Bergoo

Hi,
is there a way of creating a link for each row in the grid component that
goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.

Thanks,
Jacob
-- 
View this message in context: 
http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Tapestry 5 Mixins Remoting JSON

2007-05-01 Thread bjornharvold

I have a front-end that wants JSON data from the back-end. Using a regular
webapp I would integrate JSON-RPC. I started out doing this with my t5 app
and quickly realized I had to write something to put the jsonrpc bridge in
the session (like a listener) and then some component that would have access
to the session and use the bridge. Then I thought of the mixins, which I
admittedly don't yet fully understand. but then again I guess it's not
fully implemented either ;-)

How would something like auto-complete and validation be done with t5 using
mixins or is it still better to use jsonrpc as I described above? I am
looking at the mixin page and don't really find anything useful there.

thx
bjorn
-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-Mixins-Remoting-JSON-tf3676880.html#a10274739
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: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Jesse Kuhnert

A fix is deploying now for the @EventListener related issue. (though I'm
unsure if it fixes it for Ben but we'll see)

The script thing will have to happen later tonight.

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Yeah I'm aware of the issue, think it's fixed locally but am still testing
the changes.

On 5/1/07, Andreas Andreou  [EMAIL PROTECTED] wrote:

 I think i've seen some similar issues in the latest snapshots...

 They indeed seem to be related to how components/pages are found, i'll
 try
 to have
 a clean example demonstrating this and register a JIRA.

 For now, try using:

 dependency
 groupIdorg.apache.tapestry/groupId
 artifactIdtapestry-framework/artifactId
 version4.1.2-20070424.205219-56/version
 /dependency



 On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
 
  I tried the snapshots from this morning but unfortunately I still get
  the same EventListener error. For the script error I tried adding
  context: to the path like this:
 
  span jwcid=@Script script=context:/scripts/categoryHelper.script
 /
 
  But now the error I get for that is:
 
  Unable to parse script
 
 classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
  t.
 
  -Original Message-
  From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] ]
  Sent: Tuesday, May 01, 2007 9:33 AM
  To: Tapestry users
  Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30
 
  There were two unrelated changes made. The @EventListener change
  involved
  some inevitable fundamental flaws that I think are all fully resolved
 as
  of
  this mornings deployment of snapshots.
 
  The script error is related to how the component specs are being
  resolved,
  I'll look into why this is messing up for you but am sure that if you
  add
  either context: or classpath: in front of your string it will work
  correctly. (though I intended for it to work without them, so it's a
 bug
  if
  it isn't working)
 
  On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
  
   Were there some sort of fundamental changes that happened between
 the
   Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried
 upgrading
  to
   4-30 and I just seem to hit one error after another. The first
 problem
   is an EventListener that used to work fine:
  
   @EventListener(targets=sessionData, events=onclick)
   public void sessionDataClicked(IRequestCycle cycle)
   {
   setShowSessionData(true);
   cycle.getResponseBuilder
 ().updateComponent(theSessionData);
   }
  
   The nested stack from that is:
  
   Caused by: org.apache.hivemind.ApplicationRuntimeException : No
  component
   found in tree for EventListener binding with a matching component id
  of
   sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
   at
  
  org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
 (Event
   ConnectionVisitor.java:51)
   at
  
 
 $IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
   4e16.java)
   at
  
 
 $IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
   4e17.java)
   at
  
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
   nentTreeWalker.java:45)
   at
  
  org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
 (Compo
   nentTreeWalker.java:57)
   at
   org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
 :604)
   at
   $IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
   at
   $IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
   at
   org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
   at
   $IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
   at
  
  org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java
 :239)
   at
   org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
 :226)
   at
  
  org.apache.tapestry.error.ExceptionPresenterImpl.presentException
 (Except
   ionPresenterImpl.java:42)
   ... 62 more
  
   After I commented that out I got another error for a Script:
  
   span jwcid=@Script script=/scripts/categoryHelper.script /
  
   Caused by: org.apache.tapestry.util.xml.DocumentParseException:
 Unable
   to find resource classpath:/scripts/categoryHelper.script.
   [classpath:/scripts/categoryHelper.script]
   at
  
  org.apache.tapestry.util.xml.RuleDirectedParser.parse
 (RuleDirectedParser
   .java:125)
   at
   org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:112)
   at
  
  org.apache.tapestry.engine.DefaultScriptSource.parse
 (DefaultScriptSource
   .java:88)
   ... 124 more
  
   I saw a minor change in JIRA to the way scripts are found but I
  couldn't
   see how it would relate to this in particular.
  
   Thanks,
   Ben
  
  
 -
   To 

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Ben Dotte
Thanks for looking into it so quickly.. I will try out the new snapshot
tomorrow.

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 01, 2007 2:49 PM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

A fix is deploying now for the @EventListener related issue. (though I'm
unsure if it fixes it for Ben but we'll see)

The script thing will have to happen later tonight.

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Yeah I'm aware of the issue, think it's fixed locally but am still
testing
 the changes.

 On 5/1/07, Andreas Andreou  [EMAIL PROTECTED] wrote:
 
  I think i've seen some similar issues in the latest snapshots...
 
  They indeed seem to be related to how components/pages are found,
i'll
  try
  to have
  a clean example demonstrating this and register a JIRA.
 
  For now, try using:
 
  dependency
  groupIdorg.apache.tapestry/groupId
  artifactIdtapestry-framework/artifactId
  version4.1.2-20070424.205219-56/version
  /dependency
 
 
 
  On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
  
   I tried the snapshots from this morning but unfortunately I still
get
   the same EventListener error. For the script error I tried adding
   context: to the path like this:
  
   span jwcid=@Script
script=context:/scripts/categoryHelper.script
  /
  
   But now the error I get for that is:
  
   Unable to parse script
  
 
classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
   t.
  
   -Original Message-
   From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] ]
   Sent: Tuesday, May 01, 2007 9:33 AM
   To: Tapestry users
   Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30
  
   There were two unrelated changes made. The @EventListener change
   involved
   some inevitable fundamental flaws that I think are all fully
resolved
  as
   of
   this mornings deployment of snapshots.
  
   The script error is related to how the component specs are being
   resolved,
   I'll look into why this is messing up for you but am sure that if
you
   add
   either context: or classpath: in front of your string it will
work
   correctly. (though I intended for it to work without them, so it's
a
  bug
   if
   it isn't working)
  
   On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
   
Were there some sort of fundamental changes that happened
between
  the
Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried
  upgrading
   to
4-30 and I just seem to hit one error after another. The first
  problem
is an EventListener that used to work fine:
   
@EventListener(targets=sessionData, events=onclick)
public void sessionDataClicked(IRequestCycle cycle)
{
setShowSessionData(true);
cycle.getResponseBuilder
  ().updateComponent(theSessionData);
}
   
The nested stack from that is:
   
Caused by: org.apache.hivemind.ApplicationRuntimeException : No
   component
found in tree for EventListener binding with a matching
component id
   of
sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
at
   
   org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
  (Event
ConnectionVisitor.java:51)
at
   
  
 
$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
4e16.java)
at
   
  
 
$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
4e17.java)
at
   
  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:45)
at
   
   org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (Compo
nentTreeWalker.java:57)
at
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
  :604)
at
$IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
at
$IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
at
   
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
at
$IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
at
   
   org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java
  :239)
at
   
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
  :226)
at
   
   org.apache.tapestry.error.ExceptionPresenterImpl.presentException
  (Except
ionPresenterImpl.java:42)
... 62 more
   
After I commented that out I got another error for a Script:
   
span jwcid=@Script script=/scripts/categoryHelper.script /
   
Caused by: org.apache.tapestry.util.xml.DocumentParseException:
  Unable
to find resource classpath:/scripts/categoryHelper.script.
[classpath:/scripts/categoryHelper.script]
at
   
   org.apache.tapestry.util.xml.RuleDirectedParser.parse
  (RuleDirectedParser
.java:125)
at
   

Re: Tap 4.1.2 translators/validators

2007-05-01 Thread Jesse Kuhnert

Your translator may be getting called but I don't think that's how the rest
of the min/max validators are going to use the value. Each one independently
checks the value of the field in question, so if you wanted to translate the
value beforehand you should set the fields value instead of returning it.

The only thing dojo will check in your return is the javascript/c equivalent
of boolean - so really you should be returning true or false .

On 5/1/07, Tony Nelson [EMAIL PROTECTED] wrote:


If a TextField has both a translator and validators defined, is the
input passed from the validators the output of the translators?

I have been trying to get something like this working in 4.1.2 (todays
snapshot) that worked fine in 4.0.

input jwcid=@TextField value=ognl:percent
 validators=validators:required,min=1,max=100
 translator=translator:percentTranslator
 displayname=Percent Input/

My percentTranslator is registering the dojo events necessary to call:

translatePercentage:function(value) {
dojo.log.warn(enter translatePercentage);
if(!value){return 0;}
var result = parseFloat(value.replace(/%/,''));
dojo.log.warn(result= + result);
return result;
}

which simply strips any '%' signs out of the input value and returns a
Float (which is probably unnecessary).

When I submit my test form, I do see the log messages in Firebug as
expected, and it definitely is returning the value without a % however I
get a dojo validation popup that states the value is non-number, and
does not meet the min/max criteria.

Is there any way to find out what value is being passed to min/max?

Thanks in advance for any help.

Tony Nelson



-
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


Re: [ANN] Tapestry 4 Tutorial, issue 5

2007-05-01 Thread Howard Lewis Ship

Thanks and keep them coming!

On 4/30/07, Kolesnikov, Alexander GNI [EMAIL PROTECTED]
wrote:


Have a look:

http://www.devshed.com/c/a/Apache/A-Closer-Look-at-Simple-Components-in-
Apache-Tapestry/

The issues are rather short, they are actually the halves of the
originally submitted articles, as this is the tactic of the publisher.
But anyway, the story goes on.

Cheers,

Alexander


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

==





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

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


Re: Grid Component question

2007-05-01 Thread Jesse Kuhnert

You could probably do something similar to the example found at the bottom
of this page:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

Just wrap a DirectLink around whatever you want linked.

On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:



Hi,
is there a way of creating a link for each row in the grid component that
goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.

Thanks,
Jacob
--
View this message in context:
http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
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


Re: Problem of loop in client script with tapestry

2007-05-01 Thread Jesse Kuhnert

 isn't well formed character data. You can replace it with lt; and it'll
probably work then.

On 5/1/07, Ajit Raj [EMAIL PROTECTED] wrote:


Hi,

I try to use for or while in the scirpt of a tapestry page as shown
below. But it keeps give the error of Unable to parse
jndi:/localhost/WebRpt/WEB-INF/secure/PageRender.script: The content of
elements must consist of well-formed character data or markup. Could
anyone
let me know what the problem is?

Thanks,


Ajit

!DOCTYPE script PUBLIC
-//Apache Software Foundation//Tapestry Script Specification 4.0
//EN
http://jakarta.apache.org/tapestry/dtd/Script_4_0.dtd;
...

402 var i=0;
403 var msg = ;
404 var x = 1;
405 while (x = 10)   === complaining error here
406 {
407 msg = msg + x + \n;
408 x++;
409 }
410

_
Don't quit your job – Take Classes Online and Earn your Degree in 1 year.
Start Today!

http://www.classesusa.com/clickcount.cfm?id=866146goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866144


-
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


Re: Another reason to avoid IE!

2007-05-01 Thread Jesse Kuhnert

I always set the Content-Disposition: attachment in my header fields of
services returning file data anyways because of related reasons. I don't
think tapestry can do this for anyone but maybe I'm wrong.

On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:


Hi there --

Brief blog post summarizing yet another 'wonderful' IE idea - MIME
sniffing
(is this like glue sniffing?)



http://www.sworddance.com/blog/2007/05/01/what-the-hell-were-they-thinking/

How reasonable would it be for tapestry to have some way of flagging an
uploaded file that looked like it was pulling this stunt? Obviously doing
something about it is way beyond what tapestry should do?

-Pat





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Errors with @InjectState after upgrading to T4.1.2

2007-05-01 Thread Joe Chen

Hi,
I'm seeing some strange errors with the @InjectState after upgrading from
T4.0 to T4.1.2. The problem shows up only in Tomcat 5.5.

In our code, we have a component that declares:

@InjectState(playerInfo)
public abstract HashMap getPlayerInfo();

The code was working fine for months under T4.0.x.  Recently we decided to
migrate to T4.1.2, and it works under Jetty (using Jetty Eclipse plugin).
However, as soon as I deploy to Tomcat 5.5 and try to run the application, I
get the following error:

Caused by: java.lang.IllegalStateException: Cannot create a session
after the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:2214)
at org.apache.catalina.connector.Request.getSession(Request.java:2024)
at 
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
at 
org.apache.tapestry.web.ServletWebRequest.getSession(ServletWebRequest.java:82)
at $WebRequest_1124940e33a.getSession($WebRequest_1124940e33a.java)
at $WebRequest_1124940e2ce.getSession($WebRequest_1124940e2ce.java)
at 
org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:50)
at 
org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:65)
at 
$StateObjectPersistenceManager_1124940e469.get($StateObjectPersistenceManager_1124940e469.java)
at 
org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:51)
at 
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60)
at 
$ApplicationStateManager_1124940e2ea.get($ApplicationStateManager_1124940e2ea.java)
at 
$ApplicationStateManager_1124940e2eb.get($ApplicationStateManager_1124940e2eb.java)
at $SkinTiles_9.getPlayerInfo($SkinTiles_9.java)


Did the InjectState code somehow change between 4.0.x and 4.1?  Any ideas on
how to fix the problem?

Thanks,
Joe


Re: Grid Component question

2007-05-01 Thread Jacob Bergoo

Hi Jesse,
I looked at the link and I must say that I still don't get it 
How will I wrap my content into a directLink in the grid component?

I have the method from the demo app:

   public Object getGridData()
{ // source
List results = new ArrayList();
DateFormat dateFormat = new SimpleDateFormat(-MM-dd,
getLocale());
for (int i = 0; i  100; i++) {
Map map = new HashMap();
map.put(stringColumn, String  + i);
map.put(intColumn, new Integer(i * 10));
map.put(floatColumn,  + ((i * 100) + (float) ((float) i /
(float) (i + 1;
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, i);
map.put(dateColumn, dateFormat.format(cal.getTime()));
results.add(map);
}
return results;
}   

What do I need to change here for making a new column in the end with a
directLink?
I am really thankfull for any pointers or example you can help me with.
Thanks
Jacob





Jessek wrote:
 
 You could probably do something similar to the example found at the bottom
 of this page:
 
 http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
 
 Just wrap a DirectLink around whatever you want linked.
 
 On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:


 Hi,
 is there a way of creating a link for each row in the grid component that
 goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.

 Thanks,
 Jacob
 --
 View this message in context:
 http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
 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/Grid-Component-question-tf3676754.html#a10275618
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: Grid Component question

2007-05-01 Thread Jesse Kuhnert

Oh sorry You must be talking about the Tacos Grid component. I have no
idea on that one...

On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:



Hi Jesse,
I looked at the link and I must say that I still don't get it
How will I wrap my content into a directLink in the grid component?

I have the method from the demo app:

   public Object getGridData()
{ // source
List results = new ArrayList();
DateFormat dateFormat = new SimpleDateFormat(-MM-dd,
getLocale());
for (int i = 0; i  100; i++) {
Map map = new HashMap();
map.put(stringColumn, String  + i);
map.put(intColumn, new Integer(i * 10));
map.put(floatColumn,  + ((i * 100) + (float) ((float) i /
(float) (i + 1;
Calendar cal = Calendar.getInstance();
cal.add(Calendar.DATE, i);
map.put(dateColumn, dateFormat.format(cal.getTime()));
results.add(map);
}
return results;
}

What do I need to change here for making a new column in the end with a
directLink?
I am really thankfull for any pointers or example you can help me with.
Thanks
Jacob





Jessek wrote:

 You could probably do something similar to the example found at the
bottom
 of this page:


http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html

 Just wrap a DirectLink around whatever you want linked.

 On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:


 Hi,
 is there a way of creating a link for each row in the grid component
that
 goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.

 Thanks,
 Jacob
 --
 View this message in context:
 http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
 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/Grid-Component-question-tf3676754.html#a10275618
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


Re: Grid Component question

2007-05-01 Thread Jacob Bergoo

Ah.. okey then I dont need to feel stupid ;-)



Jessek wrote:
 
 Oh sorry You must be talking about the Tacos Grid component. I have no
 idea on that one...
 
 On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:


 Hi Jesse,
 I looked at the link and I must say that I still don't get it
 How will I wrap my content into a directLink in the grid component?

 I have the method from the demo app:

public Object getGridData()
 { // source
 List results = new ArrayList();
 DateFormat dateFormat = new SimpleDateFormat(-MM-dd,
 getLocale());
 for (int i = 0; i  100; i++) {
 Map map = new HashMap();
 map.put(stringColumn, String  + i);
 map.put(intColumn, new Integer(i * 10));
 map.put(floatColumn,  + ((i * 100) + (float) ((float) i /
 (float) (i + 1;
 Calendar cal = Calendar.getInstance();
 cal.add(Calendar.DATE, i);
 map.put(dateColumn, dateFormat.format(cal.getTime()));
 results.add(map);
 }
 return results;
 }

 What do I need to change here for making a new column in the end with a
 directLink?
 I am really thankfull for any pointers or example you can help me with.
 Thanks
 Jacob





 Jessek wrote:
 
  You could probably do something similar to the example found at the
 bottom
  of this page:
 
 
 http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
 
  Just wrap a DirectLink around whatever you want linked.
 
  On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:
 
 
  Hi,
  is there a way of creating a link for each row in the grid component
 that
  goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.
 
  Thanks,
  Jacob
  --
  View this message in context:
  http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
  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/Grid-Component-question-tf3676754.html#a10275618
 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/Grid-Component-question-tf3676754.html#a10275740
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: Errors with @InjectState after upgrading to T4.1.2

2007-05-01 Thread Jesse Kuhnert

I'm not sure, there seems to be some missing information. I find it hard to
believe that having a single @InjectState method alone would cause that
error.

Where are you messing with the data that was injected?

On 5/1/07, Joe Chen [EMAIL PROTECTED] wrote:


Some more information about this issue - I downgraded to 4.1.1 and the
problem went away, so it seems like this is an issue that was introduced
in
4.1.2.

Should I file a bug on this?

Joe

On 5/1/07, Joe Chen [EMAIL PROTECTED] wrote:

 Hi,
  I'm seeing some strange errors with the @InjectState after upgrading
from
 T4.0 to T4.1.2. The problem shows up only in Tomcat 5.5.

 In our code, we have a component that declares:

 @InjectState(playerInfo)
 public abstract HashMap getPlayerInfo();

 The code was working fine for months under T4.0.x.  Recently we decided
to
 migrate to T4.1.2, and it works under Jetty (using Jetty Eclipse
plugin).
 However, as soon as I deploy to Tomcat 5.5 and try to run the
application,
 I get the following error:

 Caused by: java.lang.IllegalStateException: Cannot create a session
after the response has been committed
   at
 org.apache.catalina.connector.Request.doGetSession(Request.java:2214)
   at org.apache.catalina.connector.Request.getSession(Request.java
:2024)
   at org.apache.catalina.connector.RequestFacade.getSession(
RequestFacade.java
 :831)
   at org.apache.tapestry.web.ServletWebRequest.getSession(
ServletWebRequest.java:82)
   at
$WebRequest_1124940e33a.getSession($WebRequest_1124940e33a.java)
   at
$WebRequest_1124940e2ce.getSession($WebRequest_1124940e2ce.java)

   at org.apache.tapestry.engine.state.SessionScopeManager.getSession
(SessionScopeManager.java:50)
   at org.apache.tapestry.engine.state.SessionScopeManager.get(
SessionScopeManager.java:65)
   at
$StateObjectPersistenceManager_1124940e469.get($StateObjectPersistenceManager_1124940e469.java)

   at org.apache.tapestry.engine.state.StateObjectManagerImpl.get(
StateObjectManagerImpl.java:51)
   at
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(
ApplicationStateManagerImpl.java:60)
   at
$ApplicationStateManager_1124940e2ea.get($ApplicationStateManager_1124940e2ea.java)

   at
$ApplicationStateManager_1124940e2eb.get($ApplicationStateManager_1124940e2eb.java)
   at $SkinTiles_9.getPlayerInfo($SkinTiles_9.java)


 Did the InjectState code somehow change between 4.0.x and 4.1 ?  Any
ideas
 on how to fix the problem?

 Thanks,
 Joe






--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Re: Another reason to avoid IE!

2007-05-01 Thread Patrick Moore

I am just thinking of the upload component having the ability to notify a
method that the file uploaded looks like an HTML as far as IE is concerned.
It would be a tool against someone abusing a tapestry-based website. Fixing
the file or anything else is far beyond my thinking.

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I always set the Content-Disposition: attachment in my header fields of
services returning file data anyways because of related reasons. I don't
think tapestry can do this for anyone but maybe I'm wrong.

On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:

 Hi there --

 Brief blog post summarizing yet another 'wonderful' IE idea - MIME
 sniffing
 (is this like glue sniffing?)




http://www.sworddance.com/blog/2007/05/01/what-the-hell-were-they-thinking/

 How reasonable would it be for tapestry to have some way of flagging an
 uploaded file that looked like it was pulling this stunt? Obviously
doing
 something about it is way beyond what tapestry should do?

 -Pat




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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



Re: Another reason to avoid IE!

2007-05-01 Thread Jesse Kuhnert

Isn't this for the reverse situation though, serving files?

Most browsers should be able to tell you what they think the mime type is
for incoming files thoughI guess that could be exposed in the Upload
interface if it's not already..

On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:


I am just thinking of the upload component having the ability to notify a
method that the file uploaded looks like an HTML as far as IE is
concerned.
It would be a tool against someone abusing a tapestry-based website.
Fixing
the file or anything else is far beyond my thinking.

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 I always set the Content-Disposition: attachment in my header fields
of
 services returning file data anyways because of related reasons. I don't
 think tapestry can do this for anyone but maybe I'm wrong.

 On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:
 
  Hi there --
 
  Brief blog post summarizing yet another 'wonderful' IE idea - MIME
  sniffing
  (is this like glue sniffing?)
 
 
 
 

http://www.sworddance.com/blog/2007/05/01/what-the-hell-were-they-thinking/
 
  How reasonable would it be for tapestry to have some way of flagging
an
  uploaded file that looked like it was pulling this stunt? Obviously
 doing
  something about it is way beyond what tapestry should do?
 
  -Pat
 



 --
 Jesse Kuhnert
 Tapestry/Dojo team member/developer

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






--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Re: Another reason to avoid IE!

2007-05-01 Thread Patrick Moore

Well I am presuming that no website is intentionally creating a bogus file.
So I am presuming the bogus content originated from a malicious user.  This
allows the violation to be handled at the moment it is occuring rather than
much later.

Probably the best solution would be some hook that that would allow file
validation, and on the fly processing.

Looking at the upload docs, it looks like it would be best if some real
design thought went in to any solution so it is more than just a adhoc
1-off.

-Pat

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Isn't this for the reverse situation though, serving files?

Most browsers should be able to tell you what they think the mime type is
for incoming files thoughI guess that could be exposed in the Upload
interface if it's not already..

On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:

 I am just thinking of the upload component having the ability to notify
a
 method that the file uploaded looks like an HTML as far as IE is
 concerned.
 It would be a tool against someone abusing a tapestry-based website.
 Fixing
 the file or anything else is far beyond my thinking.

 On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 
  I always set the Content-Disposition: attachment in my header fields
 of
  services returning file data anyways because of related reasons. I
don't
  think tapestry can do this for anyone but maybe I'm wrong.
 
  On 5/1/07, Patrick Moore [EMAIL PROTECTED] wrote:
  
   Hi there --
  
   Brief blog post summarizing yet another 'wonderful' IE idea - MIME
   sniffing
   (is this like glue sniffing?)
  
  
  
  
 

http://www.sworddance.com/blog/2007/05/01/what-the-hell-were-they-thinking/
  
   How reasonable would it be for tapestry to have some way of flagging
 an
   uploaded file that looked like it was pulling this stunt? Obviously
  doing
   something about it is way beyond what tapestry should do?
  
   -Pat
  
 
 
 
  --
  Jesse Kuhnert
  Tapestry/Dojo team member/developer
 
  Open source based consulting work centered around
  dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
 




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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



Re: Grid Component question

2007-05-01 Thread Andreas Andreou

Must admit i've also never used it! It was contibuted by Sam, there's
probably a
good change he was using it with direct links... or links of some form...

Anyway, looking at the generated html of
http://opencomponentry.com:8080/tacos/dojo/GridExample.html
I just wonder what happens if you provide html markup for a cell's data...

Perhaps you could then have link using the href that the direct service can
generate for you - when given the right arguments.

On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:



Ah.. okey then I dont need to feel stupid ;-)



Jessek wrote:

 Oh sorry You must be talking about the Tacos Grid component. I have
no
 idea on that one...

 On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:


 Hi Jesse,
 I looked at the link and I must say that I still don't get it
 How will I wrap my content into a directLink in the grid component?

 I have the method from the demo app:

public Object getGridData()
 { // source
 List results = new ArrayList();
 DateFormat dateFormat = new SimpleDateFormat(-MM-dd,
 getLocale());
 for (int i = 0; i  100; i++) {
 Map map = new HashMap();
 map.put(stringColumn, String  + i);
 map.put(intColumn, new Integer(i * 10));
 map.put(floatColumn,  + ((i * 100) + (float) ((float) i
/
 (float) (i + 1;
 Calendar cal = Calendar.getInstance();
 cal.add(Calendar.DATE, i);
 map.put(dateColumn, dateFormat.format(cal.getTime()));
 results.add(map);
 }
 return results;
 }

 What do I need to change here for making a new column in the end with a
 directLink?
 I am really thankfull for any pointers or example you can help me with.
 Thanks
 Jacob





 Jessek wrote:
 
  You could probably do something similar to the example found at the
 bottom
  of this page:
 
 

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/table.html
 
  Just wrap a DirectLink around whatever you want linked.
 
  On 5/1/07, Jacob Bergoo [EMAIL PROTECTED] wrote:
 
 
  Hi,
  is there a way of creating a link for each row in the grid component
 that
  goes to a listener? I am working in Tapestry 4.0.2 and Tacos 4.0.1.
 
  Thanks,
  Jacob
  --
  View this message in context:
 
http://www.nabble.com/Grid-Component-question-tf3676754.html#a10274287
  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/Grid-Component-question-tf3676754.html#a10275618
 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/Grid-Component-question-tf3676754.html#a10275740
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





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


Re: Another reason to avoid IE!

2007-05-01 Thread Patrick Moore

Looking at the Upload component for other reasons...

Looking at the example in the documentation:

Does the upload complete before the formSubmit? I presume not but one should
always ask. And does upload work well with async requests... ala gmails
attach file functioanlity?

-Pat


Re: Errors with @InjectState after upgrading to T4.1.2

2007-05-01 Thread Joe Chen

The @InjectState is declared inside of a component, and the injected state
object is referenced by the html code for that component during the
rendering of the page, inside a @Any component.

Html for component:

li jwcid=[EMAIL PROTECTED] ... 
 span onclick=prop:onClickJS jwcid=@Any
 /span
/li

Java for component:

@InjectState(playerInfo)
public abstract HashMap getPlayerInfo();

public String getOnClickJS() {
   return getSkinURL();
}

public String getSkinURL() {
   if (getPlayerInfo().contains(key))
   return ...;
}

Once again this is happening only on 4.1.2 under Tomcat 5.5.  It works for
4.0 and 4.1.1 under Jetty and Tomcat.
The only other thing that might not be standard is the use of the
tapestry-prop library and the prop: syntax instead of ognl:'.  But why
would it stop working in 4.1.2 but work in all previous versions of
Tapestry?

Here's the full stack trace:

Caused by: java.lang.IllegalStateException: Cannot create a session
after the response has been committed
at org.apache.catalina.connector.Request.doGetSession(Request.java:2214)
at org.apache.catalina.connector.Request.getSession(Request.java:2024)
at 
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
at 
org.apache.tapestry.web.ServletWebRequest.getSession(ServletWebRequest.java:82)
at $WebRequest_112499919b5.getSession($WebRequest_112499919b5.java)
at $WebRequest_11249991949.getSession($WebRequest_11249991949.java)
at 
org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:50)
at 
org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:65)
at 
$StateObjectPersistenceManager_11249991ae4.get($StateObjectPersistenceManager_11249991ae4.java)
at 
org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:51)
at 
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60)
at 
$ApplicationStateManager_11249991965.get($ApplicationStateManager_11249991965.java)
at 
$ApplicationStateManager_11249991966.get($ApplicationStateManager_11249991966.java)
at $SkinTiles_9.getPlayerInfo($SkinTiles_9.java)
at com.webapp.skins.SkinTiles.getSkinURL(SkinTiles.java:172)
at com.webapp.skins.SkinTiles.getOnClickJS(SkinTiles.java:378)
at 
$$SkinTiles_9$access_onClickJS_11249991ab2.readProperty($$SkinTiles_9$access_onClickJS_11249991ab2.java)
at 
com.javaforge.tapestry.prop.PropertyAccessorBinding.getObject(PropertyAccessorBinding.java:59)
at 
org.apache.tapestry.AbstractComponent.renderInformalParameters(AbstractComponent.java:279)
at org.apache.tapestry.components.Any.renderComponent(Any.java:42)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:526)
at org.apache.tapestry.components.Any.renderComponent(Any.java:47)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:526)
at 
org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:181)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:526)
at org.apache.tapestry.components.IfBean.renderComponent(IfBean.java:96)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:526)
at org.apache.tapestry.components.Any.renderComponent(Any.java:47)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
at com.webapp.skins.SkinTiles.renderComponent(SkinTiles.java:147)
at 
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:713)
at 
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:184)
at 
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:526)
at 

Re: Another reason to avoid IE!

2007-05-01 Thread Andreas Andreou

We aren't currently supporting async uploads - we will but not exactly in
the
same way as we do async requests... problem is that an async upload cannot
safely and cross-browserly (!) return a text/xml response.

So, we'll probably have to handle uploads separately - which isn't really a
bad thing!

On 5/2/07, Patrick Moore [EMAIL PROTECTED] wrote:


Looking at the Upload component for other reasons...

Looking at the example in the documentation:

Does the upload complete before the formSubmit? I presume not but one
should
always ask. And does upload work well with async requests... ala gmails
attach file functioanlity?

-Pat





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


RE: Initialize a value in the state object.

2007-05-01 Thread Giaccone, Anthony CTR DTIC-A
Hugo, 

First let me say thank you for your effort. I follow the basic idea
here. I have to say I'm pretty ignorant of the HiveMind. But I'm trying
to figure this out..

Here's what I put in the hivemind.xml file:

contribution
configuration-id=tapestry.state.ApplicationObjects
state-object name=queryData scope=session
invoke-factory
construct
class=mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem
set property=status
value=P/
/construct
/invoke-factory
/state-object
/contribution

Which causes the following error message:
 
Element state-object/invoke-factory (at
file:/Users/agiaccon/Source/MiprPhase1/MiprApp/WebRoot/WEB-INF/classes/M
ETA-INF/hivemodule.xml, line 10, column 20) contains errors: Attribute
'object' is required but no value was provided.

Now I looked at the message from: Shing Hing Man [EMAIL PROTECTED]

And he references a web page
(http://lombok.demon.co.uk/tapestry4Demo/Inject.html)  that has this on
it:

 service-point id=myASOFactory interface=man.aso.MyASOFactory
  invoke-factory
construct class=man.aso.MyASOFactory
  set-service property=messageHolder 
service-id=helloMessage/
 /construct
   /invoke-factory  
 /service-point

contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=myASO scope=session
invoke-factory object=service:myASOFactory /
/state-object


In this second example there's two different invoke factory
references, the first doesn't have an object associated with it, the
second does. In the first case there's a service-point and in the
second a contribution surrounding the invoke-factory


What's up how do I do this?


Tony


-Original Message-
From: Hugo Palma [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 30, 2007 7:40 PM
To: Tapestry users
Subject: Re: Initialize a value in the state object.

Try using the BuilderFactory service for creating the ASO. You can see 
more info about the service here 
http://hivemind.apache.org/hivemind1/hivemind/BuilderFactory.html.

In your example it would look like this:

module id=mil.dtic.mipr version=1.0.0
contribution
configuration-id=tapestry.state.ApplicationObjects   
state-object name=queryData scope=session
invoke-factory
construct
class=mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem
set property=status
value=Pending/
/construct
/invoke-factory
/state-object
/contribution
/module



Giaccone, Anthony CTR DTIC-A wrote:
 Here's what I want to do..

 I have a form that holds a variety of data, which the user will use to
 generate a query.  The query data is persistent at the session. This
 wayIf they wander down a path, eventually they'll return to the main
 page, and the query data will be returned from the session and
they'll
 be ready to query based on the data that was last entered. 

 This all works fine and dandy. 

 What I want to do now, is set a value in this persistent object when
the
 object is created. To provide a default value for one (or more) of the
 query parameters. 

 Imagine for instance that you want to search a queue of beans for
those
 beans that are in state Pending  as the intial state of the query
 page.

 This seems like a perfect place to use Hivemind. The query data is
 already constructed by Hivemind. 

 Here's the XML for the query data in the hivemind.xml

 module id=mil.dtic.mipr version=1.0.0
   contribution
 configuration-id=tapestry.state.ApplicationObjects 
   state-object name=queryData scope=session 
   create-instance 
   
 class=mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem /
   /state-object
   /contribution
 /module

 So my question is.. How do I convince Hivemind to set the property
 status on the object MiprQueryItem to the value of Pending. 




   

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



Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Jesse Kuhnert

Cool. .It did actually affect the project I'm working on now so I can't
pretend it was entirely the result of this thread - but either way with the
number of bug reports you've filed for ognl 2.7 I think all
current/potential tapestry 4.1.2 users should really be thanking you. ;)

I can't imagine how annoying it was being blocked by all of those
compilation errors, so at the very least you've earned having any problems
you run into take higher priority than normal. Thanks! :)

On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:


Thanks for looking into it so quickly.. I will try out the new snapshot
tomorrow.

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 01, 2007 2:49 PM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

A fix is deploying now for the @EventListener related issue. (though I'm
unsure if it fixes it for Ben but we'll see)

The script thing will have to happen later tonight.

On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Yeah I'm aware of the issue, think it's fixed locally but am still
testing
 the changes.

 On 5/1/07, Andreas Andreou  [EMAIL PROTECTED] wrote:
 
  I think i've seen some similar issues in the latest snapshots...
 
  They indeed seem to be related to how components/pages are found,
i'll
  try
  to have
  a clean example demonstrating this and register a JIRA.
 
  For now, try using:
 
  dependency
  groupIdorg.apache.tapestry/groupId
  artifactIdtapestry-framework/artifactId
  version4.1.2-20070424.205219-56/version
  /dependency
 
 
 
  On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
  
   I tried the snapshots from this morning but unfortunately I still
get
   the same EventListener error. For the script error I tried adding
   context: to the path like this:
  
   span jwcid=@Script
script=context:/scripts/categoryHelper.script
  /
  
   But now the error I get for that is:
  
   Unable to parse script
  
 
classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
   t.
  
   -Original Message-
   From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] ]
   Sent: Tuesday, May 01, 2007 9:33 AM
   To: Tapestry users
   Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30
  
   There were two unrelated changes made. The @EventListener change
   involved
   some inevitable fundamental flaws that I think are all fully
resolved
  as
   of
   this mornings deployment of snapshots.
  
   The script error is related to how the component specs are being
   resolved,
   I'll look into why this is messing up for you but am sure that if
you
   add
   either context: or classpath: in front of your string it will
work
   correctly. (though I intended for it to work without them, so it's
a
  bug
   if
   it isn't working)
  
   On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
   
Were there some sort of fundamental changes that happened
between
  the
Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried
  upgrading
   to
4-30 and I just seem to hit one error after another. The first
  problem
is an EventListener that used to work fine:
   
@EventListener(targets=sessionData, events=onclick)
public void sessionDataClicked(IRequestCycle cycle)
{
setShowSessionData(true);
cycle.getResponseBuilder
  ().updateComponent(theSessionData);
}
   
The nested stack from that is:
   
Caused by: org.apache.hivemind.ApplicationRuntimeException : No
   component
found in tree for EventListener binding with a matching
component id
   of
sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
at
   
   org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
  (Event
ConnectionVisitor.java:51)
at
   
  
 
$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
4e16.java)
at
   
  
 
$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
4e17.java)
at
   
  
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
nentTreeWalker.java:45)
at
   
   org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
  (Compo
nentTreeWalker.java:57)
at
org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
  :604)
at
$IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
at
$IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
at
   
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:119)
at
$IPageSource_11248054d1c.getPage($IPageSource_11248054d1c.java)
at
   
   org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java
  :239)
at
   
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java
  :226)
at
   
   org.apache.tapestry.error.ExceptionPresenterImpl.presentException
  (Except

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-01 Thread Ben Dotte
Thanks Jesse :) It's easier to work through the bugs when someone is
fixing them so rapidly!

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 01, 2007 5:20 PM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

Cool. .It did actually affect the project I'm working on now so I can't
pretend it was entirely the result of this thread - but either way with
the
number of bug reports you've filed for ognl 2.7 I think all
current/potential tapestry 4.1.2 users should really be thanking you. ;)

I can't imagine how annoying it was being blocked by all of those
compilation errors, so at the very least you've earned having any
problems
you run into take higher priority than normal. Thanks! :)

On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:

 Thanks for looking into it so quickly.. I will try out the new
snapshot
 tomorrow.

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 01, 2007 2:49 PM
 To: Tapestry users
 Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30

 A fix is deploying now for the @EventListener related issue. (though
I'm
 unsure if it fixes it for Ben but we'll see)

 The script thing will have to happen later tonight.

 On 5/1/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 
  Yeah I'm aware of the issue, think it's fixed locally but am still
 testing
  the changes.
 
  On 5/1/07, Andreas Andreou  [EMAIL PROTECTED] wrote:
  
   I think i've seen some similar issues in the latest snapshots...
  
   They indeed seem to be related to how components/pages are found,
 i'll
   try
   to have
   a clean example demonstrating this and register a JIRA.
  
   For now, try using:
  
   dependency
   groupIdorg.apache.tapestry/groupId
   artifactIdtapestry-framework/artifactId
   version4.1.2-20070424.205219-56/version
   /dependency
  
  
  
   On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:
   
I tried the snapshots from this morning but unfortunately I
still
 get
the same EventListener error. For the script error I tried
adding
context: to the path like this:
   
span jwcid=@Script
 script=context:/scripts/categoryHelper.script
   /
   
But now the error I get for that is:
   
Unable to parse script
   
  

classpath:collective/ui/components/context:/scripts/categoryHelper.scrip
t.
   
-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] ]
Sent: Tuesday, May 01, 2007 9:33 AM
To: Tapestry users
Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30
   
There were two unrelated changes made. The @EventListener change
involved
some inevitable fundamental flaws that I think are all fully
 resolved
   as
of
this mornings deployment of snapshots.
   
The script error is related to how the component specs are being
resolved,
I'll look into why this is messing up for you but am sure that
if
 you
add
either context: or classpath: in front of your string it
will
 work
correctly. (though I intended for it to work without them, so
it's
 a
   bug
if
it isn't working)
   
On 5/1/07, Ben Dotte [EMAIL PROTECTED] wrote:

 Were there some sort of fundamental changes that happened
 between
   the
 Tapestry 4.1.2 4-20 snapshot and the one from 4-30? I tried
   upgrading
to
 4-30 and I just seem to hit one error after another. The first
   problem
 is an EventListener that used to work fine:

 @EventListener(targets=sessionData, events=onclick)
 public void sessionDataClicked(IRequestCycle cycle)
 {
 setShowSessionData(true);
 cycle.getResponseBuilder
   ().updateComponent(theSessionData);
 }

 The nested stack from that is:

 Caused by: org.apache.hivemind.ApplicationRuntimeException :
No
component
 found in tree for EventListener binding with a matching
 component id
of
 sessionData. [context:/WEB-INF/app/ErrorPage.html, line 1]
 at

   
org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent
   (Event
 ConnectionVisitor.java:51)
 at

   
  

$IComponentVisitor_11248054e16.visitComponent($IComponentVisitor_1124805
 4e16.java)
 at

   
  

$IComponentVisitor_11248054e17.visitComponent($IComponentVisitor_1124805
 4e17.java)
 at

   

org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(Compo
 nentTreeWalker.java:45)
 at

   
org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree
   (Compo
 nentTreeWalker.java:57)
 at

org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java
   :604)
 at

$IPageLoader_11248054e04.loadPage($IPageLoader_11248054e04.java)
 at

$IPageLoader_11248054e05.loadPage($IPageLoader_11248054e05.java)
 at

 

WebObjects I - Introductory Course, 6/18-6/22 in Seattle, WA

2007-05-01 Thread Aaron Morse

Hello.

For those of you who may be interested in learning WebObjects (an  
Apple technology similar to Tapestry), here is an opportunity in  
Seattle.



- Aaron

Übermind, Inc., a leading developer of custom, enterprise  
applications, will be hosting a WebObjects I Development course in  
our training facilities in Seattle, Washington, June 18th - 22nd.  
Space is available. This five-day course offers an intensive look  
into designing, building, and deploying web applications using  
Apple's WebObjects technology.


To register for the course, ask questions, or explore logistics,  
please send email to [EMAIL PROTECTED]


WebObjects I - Introductory Course
http://www.ubermind.com/training/webobjects.php
When6/18-6/22
Where   Seattle, WA
[EMAIL PROTECTED]

Based on over a decade of professional consulting on WebObjects  
projects - for clients from Apple to the U.S. Department of Defense,  
from Disney to the U.S. Postal Service - Übermind has developed a  
curriculum which reflects a hands-on, real-world perspective to  
WebObjects development.


For details of the course syllabus, refer to our training page:
http://www.ubermind.com/training/webobjects.php.

For more details on developing WebObjects and downloading the IDEs -  
which ship free with Mac OS X 10.4 - refer here to Apple's website:  
http://www.apple.com/webobjects/.



Aaron Morse, Business Development Manager/Architect
Übermind, Inc.
PO Box 187
2400 NW 80th Street
Seattle, WA 98117
(907) 222-7812 (home office)
(425) 296-2116 (VOIP/Skype)
(907) 227-4859 (mobile)
[EMAIL PROTECTED]
AIM: xyzzycoder





[vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-01 Thread Jesse Kuhnert

This is sort of related to
https://issues.apache.org/jira/browse/TAPESTRY-1431 .

I think it was a mistake to have renderTags default to true for the If/Else
components but not For . ...

I'm thinking I'd like to have it default to false for these components
before we release 4.1.2 but as it will potentially cause work for people if
they've been relying on this new behavior I thought it'd be good to see what
everyone else thinks before ripping it out.

I'm +1 of course..

--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-01 Thread Jesse Kuhnert

I remember some small issues when ie7 first came out.  Unfortunately I can't
make any promises about 4.1.1 definitely working on it but the
still-in-development 4.1.2 version doesn't have this problem.

On 5/1/07, William Keller [EMAIL PROTECTED] wrote:


Hi all,
  Sorry if this is a repost, but I can't get any of my working pages to
run
on IE7. They run fine on Firefox 2 but no go on IE7. Has this topic
already
been covered? Any viable workarounds? Haven't tried on IE6 as I'm using
vista and don't want to go through all that pain just yet! Essentially my
issue is that my Select boxes aren't populating based on 'onchange'
events.
The exact same stuff does work though on mozilla based stuff.

Cheers





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


how to construct an instance of BasicTableModelWrap to render a Tableview

2007-05-01 Thread 王文楠

I get resultset base on JdbcTemplate  in spring

here is my sourcecode

public class JdbcPageTableModel implements IBasicTableModel {
..
   public Iterator getCurrentPageRows(int nFirst, int nPageSize,
ITableColumn arg2,
   boolean arg3) {
   List list = new JdbcTemplate(dataSource).queryForList(select
login_name,password from user_info );
   for(int i=0;ilist.size();i++){
   Map map = (Map)list.get(i);
   System.out.println(+map.get(login_name));
   }
   return list.iterator();
   }


}
public abstract class StockDetail extends BasePage{

   public ITableModel getMyTableModel(){
   Object[] columns =
   {
   user_name,user name,user_name,new Boolean(false)
   ,password,password,password,new Boolean(false)
   };
   ExpressionTableColumnModel columnModel = new
ExpressionTableColumnModel(columns,new ExpressionEvaluatorImpl());
   return new
BasicTableModelWrap(getJdbcPageTableModel(),columnModel);
   }
...
}

StockDetail.html
 span jwcid=[EMAIL PROTECTED]:TableView
tableModel=ognl:myTableModel
 pageSize=ognl:10
 table width=800 border=1
   tr
 td height=24 bgcolor=#FCA632 align=center
jwcid=@Contrib:TableColumns/td
   /tr
   tr jwcid=[EMAIL PROTECTED]:TableRows
 td bgcolor=#FFF1E1 height=24 align=center
jwcid=@Contrib:TableValuesnbsp;/td
   /tr
 /table
table width =100%trtd align=center
span jwcid=@Contrib:TableFormPages pagesDisplayed=ognl:10/
   /td/tr/table
/span

///
the system can print out
=Green
==John
but the page StockDetail just display the title row of the table and other
rows with no content


the system print errors like this:
ERROR org.apache.tapestry.contrib.table.model.ognl.OgnlTableColumnEvaluator
- Cannot use column expression 'password' in row
java.lang.NullPointerException
   at org.apache.tapestry.services.impl.ExpressionEvaluatorImpl.read(
ExpressionEvaluatorImpl.java:82)
   at
org.apache.tapestry.contrib.table.model.ognl.OgnlTableColumnEvaluator.getColumnValue
(OgnlTableColumnEvaluator.java:56)
   at
org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn.getColumnValue
(SimpleTableColumn.java:208

what is my wrong


Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-01 Thread William Keller

Ouch. I guess the only logical answer for me to ask now: Is 4.1.2 nearing
completion? I'm in a bit of trouble if it's not! Just as well I decided to
check, at least I have time to panic now :)

On 5/2/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I remember some small issues when ie7 first came out.  Unfortunately I
can't
make any promises about 4.1.1 definitely working on it but the
still-in-development 4.1.2 version doesn't have this problem.

On 5/1/07, William Keller [EMAIL PROTECTED] wrote:

 Hi all,
   Sorry if this is a repost, but I can't get any of my working pages to
 run
 on IE7. They run fine on Firefox 2 but no go on IE7. Has this topic
 already
 been covered? Any viable workarounds? Haven't tried on IE6 as I'm using
 vista and don't want to go through all that pain just yet! Essentially
my
 issue is that my Select boxes aren't populating based on 'onchange'
 events.
 The exact same stuff does work though on mozilla based stuff.

 Cheers




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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



Re: Tapestry 5 + Acegi

2007-05-01 Thread Stephan Schwab

We use exactly that combination and it works perfectly well. I even have it
documented for a chapter of the book about Acegi I'm currently working on.
At least when I'm not too tired from my daytime work.

--
http://www.stephan-schwab.com


Massimo Lusetti wrote:
 
 On 4/30/07, Juan Maya [EMAIL PROTECTED] wrote:
 
 I am starting to develop a new application with Tapestry 5 and i am
 amazed,
 I have had such a big productivity bust; now i need to integrate acegi to
 my
 app and i was wonder if somebody has explored how to integrate both
 frameworks.

 Any help would be appreciated it. I am still a newbie with tapestry 5 and
 i
 am not sure where to start.
 
 Do you already use spring? If so it's straightforward, follow Spring
 doc and you're in.
 Remember it still alpha, so things may change.
 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-%2B-Acegi-tf3670480.html#a10279305
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-01 Thread Jesse Kuhnert

I hope so. We're waiting to see when ognl 2.7 stabilizes. It's getting close
but the reports are still too frequent to feel safe. I'd like to have at
least a week or two of no ognl issues reported before heading down that
path.

On 5/1/07, William Keller [EMAIL PROTECTED] wrote:


Ouch. I guess the only logical answer for me to ask now: Is 4.1.2 nearing
completion? I'm in a bit of trouble if it's not! Just as well I decided to
check, at least I have time to panic now :)

On 5/2/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 I remember some small issues when ie7 first came out.  Unfortunately I
 can't
 make any promises about 4.1.1 definitely working on it but the
 still-in-development 4.1.2 version doesn't have this problem.

 On 5/1/07, William Keller [EMAIL PROTECTED] wrote:
 
  Hi all,
Sorry if this is a repost, but I can't get any of my working pages
to
  run
  on IE7. They run fine on Firefox 2 but no go on IE7. Has this topic
  already
  been covered? Any viable workarounds? Haven't tried on IE6 as I'm
using
  vista and don't want to go through all that pain just yet! Essentially
 my
  issue is that my Select boxes aren't populating based on 'onchange'
  events.
  The exact same stuff does work though on mozilla based stuff.
 
  Cheers
 



 --
 Jesse Kuhnert
 Tapestry/Dojo team member/developer

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






--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Re: Tapestry 5 + Acegi

2007-05-01 Thread Joshua Jackson

I think creating Tapestry security module would be nice since Acegi is
too tightly coupled with Spring.

On 5/2/07, Stephan Schwab [EMAIL PROTECTED] wrote:


We use exactly that combination and it works perfectly well. I even have it
documented for a chapter of the book about Acegi I'm currently working on.
At least when I'm not too tired from my daytime work.

--
http://www.stephan-schwab.com


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



Re: Tapestry 5 + Acegi

2007-05-01 Thread Stephan Schwab


Joshua Jackson-3 wrote:
 
 I think creating Tapestry security module would be nice since Acegi is
 too tightly coupled with Spring.
 

Acegi is quite powerful, flexible and support a large number of user
databases. It would be a big effort to build something similar. You don't
have to use Spring in your application when you want to use Acegi. You
simply create Acegi's configuration and forget that you in fact are
declaring stuff in a Spring application context.

--
http://www.stephan-schwab.com

-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-%2B-Acegi-tf3670480.html#a10279618
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tapestry 4.1.1 and @EventListener on IE7

2007-05-01 Thread William Keller

thanks for the prompt replies! I'm wondering if this is something related to
DOJO? If so, and I know this is a very simplistic view of  things, I wonder
if updating DOJO could yield a working version?

On 5/2/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I hope so. We're waiting to see when ognl 2.7 stabilizes. It's getting
close
but the reports are still too frequent to feel safe. I'd like to have at
least a week or two of no ognl issues reported before heading down that
path.

On 5/1/07, William Keller [EMAIL PROTECTED] wrote:

 Ouch. I guess the only logical answer for me to ask now: Is 4.1.2nearing
 completion? I'm in a bit of trouble if it's not! Just as well I decided
to
 check, at least I have time to panic now :)

 On 5/2/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 
  I remember some small issues when ie7 first came out.  Unfortunately I
  can't
  make any promises about 4.1.1 definitely working on it but the
  still-in-development 4.1.2 version doesn't have this problem.
 
  On 5/1/07, William Keller [EMAIL PROTECTED] wrote:
  
   Hi all,
 Sorry if this is a repost, but I can't get any of my working pages
 to
   run
   on IE7. They run fine on Firefox 2 but no go on IE7. Has this topic
   already
   been covered? Any viable workarounds? Haven't tried on IE6 as I'm
 using
   vista and don't want to go through all that pain just yet!
Essentially
  my
   issue is that my Select boxes aren't populating based on 'onchange'
   events.
   The exact same stuff does work though on mozilla based stuff.
  
   Cheers
  
 
 
 
  --
  Jesse Kuhnert
  Tapestry/Dojo team member/developer
 
  Open source based consulting work centered around
  dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
 




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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