Re: T4: Servlet mapping problem

2007-10-06 Thread Renat Zubairov
Hi

As far as I know friendly URLS are automatically mapped to the Page
service, but Restart is not a Page service, it's a service on it's
own.

What you can do, you can create your own engine instance and map it to
the URL you want, your Engine would serve the requests the way you
need.

Renat

On 05/10/2007, Bill Holloway [EMAIL PROTECTED] wrote:
 I haven't seen a lot of coverage on this recently.

 We have configured friendly urls for services with the usual .svc
 extension.  In our web.xml, we  map /home to the tapestry servlet
 rather than /app.  The service links look fine (e.g.,
 http://host/restart.svc) but winds up redirected to
 /app?service=restart.  This would be ok if we had the default mapping
 of /app to the tapestry servlet, but we need /home.

 Is there a resolution for this for Tapestry 4.1.2?

 Bill

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




-- 
Best regards,
Renat Zubairov

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



Re: T5: how to use message catalogs for individual page

2007-10-06 Thread Nick Westgate

I should clarify that things are working for me in these folders:
\myapp\src\main\java\org\example\myapp\pages\sub\Test.java
\myapp\src\main\resources\org\example\myapp\pages\sub\Test.tml
\myapp\src\main\resources\org\example\myapp\pages\sub\Test.properties

Global properties should go in:
\myapp\src\main\webapp\WEB-INF\app.properties

Note that moving *.tml files to WEB-INF won't work.
T5.0.6 expects templates to be as above or in:
\myapp\src\main\webapp

Even in that case your properties files should be in:
\myapp\src\main\resources\org\example\myapp\pages\...

Cheers,
Nick.


Chris Lewis wrote:
Template file names must be named *.tml, and NOT *.html, as of 
5.0.6-SNAPSHOT.


mnguyen21 wrote:

1 ) I want to change the labels of the fields of the form.
2) I am using Eclipse and launching using the Jetty Launcher
3) no exceptions or errors

-- btw, I can't seem to do a project checkout using the commands in the
tutorial for 5.0.6-SNAPSHOT.  It complains about missing Start.html.  I
noticed that a bug fix for this was checked into SVN.  Will this be 
added to

the snapshot?

Thanks,
Michael


Nick Westgate wrote:
 

I verified today that this works.

How are you using the properties?
Are you launching from Eclipse or maven?
Do you get any console errors or exceptions?

Cheers,
Nick.


mnguyen21 wrote:
   

Hello,
  I'm trying to follow the form tutorial and am having some trouble 
with

the
message catalog.  The tutorial states to put the 
CreateAddress.properties

file under
src/main/resources/org/apache/tapestry/tutorial/pages/address/CreateAddress.properties 



I have done that and nothing I've entered gets picked up by 
tapestry. I've

restarted Jetty numerous times with no success.  I've also tried moving
everything from org into WEB-INF with no success.

Can somebody tell what I am doing wrong?

I'm using 5.0.6-SNAPSHOT and Jetty 5.1.


Thanks,

Michael
  

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






  





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



Re: t5: no root element has been defined

2007-10-06 Thread Nick Westgate

The exception means your Java class was found, but not the template.

Carefully check your project details against Marcus's notes below.
Check your pom.xml for the tapestry version etc.

Cheers,
Nick.


Christian Gruber wrote:

Actually, I'm getting it from the tutorial as well.  That is, I'm getting

[ERROR] Tapestry 5 Tutorial #1 /:
java.lang.IllegalStateException: No root element has been defined.
at org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
at 
org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:51) 

at 
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:75) 

at 
$PageResponseRenderer_11571e00308.renderPageResponse($PageResponseRenderer_11571e00308.java) 


...



from the trunk/ version of the tutorial project.

Christian.

On 5-Oct-07, at 3:43 PM, Marcus wrote:


Hi Bob,

T505 - templates   .htmlin   src/main/webapp/WEB-INF/   or
src/main/resources/your package/pages/
T506 - templates   .tmlin   src/main/webapp/or
src/main/resources/your package/pages/

http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469 



Marcus



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




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



T5: Grid with GridRows Question

2007-10-06 Thread Josh Penza
I have a question about the grid and it rows.

Where are the rows being rendered?

In Grid.html I see table  tbody tr t:id=rows / /tbody/table

But In GridRows.html I only see a loop for the properties of a single row.

Where is the loop that renders the rows itself?


Re: T5: Grid with GridRows Question

2007-10-06 Thread Howard Lewis Ship
The GridRows component is a close relative of the Loop component, and
manages its loop in Java code, re-rendering its template multiple
times.  Each render of the template includes an explicit Loop to
render a td for each property.

On 10/6/07, Josh Penza [EMAIL PROTECTED] wrote:
 I have a question about the grid and it rows.

 Where are the rows being rendered?

 In Grid.html I see table  tbody tr t:id=rows / /tbody/table

 But In GridRows.html I only see a loop for the properties of a single row.

 Where is the loop that renders the rows itself?



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

Creator Apache Tapestry and Apache HiveMind

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



Re: T4: Servlet mapping problem

2007-10-06 Thread Alejandro Scandroli
Hi Bill

Make sure you have these 2 things:
In tour web.xml declare your RedirectFilter like this:
  filter
filter-nameredirect/filter-name
filter-classorg.apache.tapestry.RedirectFilter/filter-class
init-param
  param-nameredirect-path/param-name
  param-value/home/param-value
/init-param
  /filter

then in yourapp.application include this line:
meta key=org.apache.tapestry.servlet-path value=/home/

I think that's all you need.

Saludos.
Alejandro.

On 10/5/07, Bill Holloway [EMAIL PROTECTED] wrote:
 I haven't seen a lot of coverage on this recently.

 We have configured friendly urls for services with the usual .svc
 extension.  In our web.xml, we  map /home to the tapestry servlet
 rather than /app.  The service links look fine (e.g.,
 http://host/restart.svc) but winds up redirected to
 /app?service=restart.  This would be ok if we had the default mapping
 of /app to the tapestry servlet, but we need /home.

 Is there a resolution for this for Tapestry 4.1.2?

 Bill

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



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



T5: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

2007-10-06 Thread Marc A. Donis
Hi again,

I have a form in EditAccount.html, which contains:

t:textfield t:id=user.username t:validate=required/

EditAccount.java has a refernce to a user, along with a get/set pair of 
accessors, and the User object has gettes and setters for its properties, as 
well.

Nonetheless, I am encountering:

Parameter(s) translate, value are required for 
org.apache.tapestry.corelib.components.TextField, but have not been bound.
  seeming to imply that it can't find the property named user.username.
Note that if I try this with a property which is actually in the EditAccount 
class, it works just fine.  It this sort of thing just not supported?  I must 
be missing something.  Thoughts?

Thanks,

Marc




T5: A simple Ajax need(JQuery)

2007-10-06 Thread Angelo Chen

Hi,

I have a very simple Ajax need, here is the situation:

My page will display a blog, when user click 'more comments', I'd like to
load a T5 page into a DIV provided, so basically, the page is like this:

pmy blog's text goes here/p
div id=comments/div

the js will be like this:

$('#more_comments').click(function() { 
   $('#comments').load('/getcomment');

got some questions: 1. simply passing the url '/getcomment' to load is
enough? how to pass blog ID as parameters? 2. if above steps not correct,
any other way to achive this? Thanks,
A.C. 



-- 
View this message in context: 
http://www.nabble.com/T5%3A-A-simple-Ajax-need%28JQuery%29-tf4580040.html#a13074090
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: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

2007-10-06 Thread Marc A. Donis

Aha...
I need to specify a TextField's value property, not its id.  But why does id 
work when the value is bound to an attribute of the component class?


Anyway, problem solved.

- Original Message - 
From: Marc A. Donis [EMAIL PROTECTED]

To: Tapestry users users@tapestry.apache.org
Sent: Saturday, October 06, 2007 16:08
Subject: T5: Parameter(s) translate, value are required for 
org.apache.tapestry.corelib.components.TextField, but have not been bound.



Hi again,

I have a form in EditAccount.html, which contains:

t:textfield t:id=user.username t:validate=required/

EditAccount.java has a refernce to a user, along with a get/set pair of 
accessors, and the User object has gettes and setters for its properties, as 
well.


Nonetheless, I am encountering:

Parameter(s) translate, value are required for 
org.apache.tapestry.corelib.components.TextField, but have not been bound.

 seeming to imply that it can't find the property named user.username.
Note that if I try this with a property which is actually in the EditAccount 
class, it works just fine.  It this sort of thing just not supported?  I 
must be missing something.  Thoughts?


Thanks,

Marc




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



Re: T5: how to use message catalogs for individual page

2007-10-06 Thread mnguyen21

That's not my problem.
When I do a checkout
'mvn archetype:create .'

the process fails and complains about not being able to find Start.html.  I
haven't started writing any code at that point.  Here's the command I use:

mvn archetype:create \
-DarchetypeGroupId=org.apache.tapestry \
-DarchetypeArtifactId=quickstart \
-DarchetypeVersion=5.0.6-SNAPSHOT \
-DgroupId=org.apache.tapestry \
-DartifactId=tutorial1 \
   
-DremoteRepositories=http://tapestry.formos.com/maven-snapshot-repository \
-DpackageName=org.apache.tapestry.tutorial



I've attached a copy of the log file I created of the output of this
command.




What I've done in the meantime is
1) check out 5.0.5
2) modify the pom.xml to reflect that I want to use the 5.0.6 
-- modified the release from 5.0.5 to 5.0.6-SNAPSHOT
--- modified log4j version from 1.2.9 to 1.2.14
3) run mvn clean install

This seems to have put me on 5.0.6 as it picks up tml files.  And the
properties files seem to work with the exception that enum labels don't seem
to be working as described in the tutorial.  I have the following lines that
do not get picked up by the application
MR=MR.
MRS=Mrs.
MS=Ms.
MISS=Miss

Other message labels are picked up, just not the Honorific enum values.


Thanks for any help you can provide.
--Michael



Chris Lewis-5 wrote:
 
 Template file names must be named *.tml, and NOT *.html, as of 
 5.0.6-SNAPSHOT.
 
 mnguyen21 wrote:
 1 ) I want to change the labels of the fields of the form.
 2) I am using Eclipse and launching using the Jetty Launcher
 3) no exceptions or errors

 -- btw, I can't seem to do a project checkout using the commands in the
 tutorial for 5.0.6-SNAPSHOT.  It complains about missing Start.html.  I
 noticed that a bug fix for this was checked into SVN.  Will this be added
 to
 the snapshot?

 Thanks,
 Michael


 Nick Westgate wrote:
   
 I verified today that this works.

 How are you using the properties?
 Are you launching from Eclipse or maven?
 Do you get any console errors or exceptions?

 Cheers,
 Nick.


 mnguyen21 wrote:
 
 Hello,
   I'm trying to follow the form tutorial and am having some trouble
 with
 the
 message catalog.  The tutorial states to put the
 CreateAddress.properties
 file under
 src/main/resources/org/apache/tapestry/tutorial/pages/address/CreateAddress.properties

 I have done that and nothing I've entered gets picked up by tapestry. 
 I've
 restarted Jetty numerous times with no success.  I've also tried moving
 everything from org into WEB-INF with no success.

 Can somebody tell what I am doing wrong?

 I'm using 5.0.6-SNAPSHOT and Jetty 5.1.


 Thanks,

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



 

   
 
 
 
http://www.nabble.com/file/p13075575/mvn-20071006.log mvn-20071006.log 
-- 
View this message in context: 
http://www.nabble.com/T5%3A-how-to-use-message-catalogs-for-individual-page-tf4577747.html#a13075575
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: t5: no root element has been defined

2007-10-06 Thread Christian Gruber
I did.  It's not a version thing.  I built 5.0.6-SNAPSHOT from trunk  
(as of yesterday), and the pom file pulls in that version.  (In fact,  
m2eclipse plugin in eclipse shows the t5-core project as the dep).  I  
have tried each combination of old and new template location, and  
filename.  I understand the nature of the exception, just not what I  
am specifically not doing.


I should file a JIRA to clarify the exception for cases where there is  
no template, and have the locations searched listed in the log.  The  
problem might be that no root node is defined, but the cause is no  
template, and that can probably be trapped where that is discovered.


Christian.

On 6-Oct-07, at 6:48 AM, Nick Westgate wrote:


The exception means your Java class was found, but not the template.

Carefully check your project details against Marcus's notes below.
Check your pom.xml for the tapestry version etc.

Cheers,
Nick.


Christian Gruber wrote:
Actually, I'm getting it from the tutorial as well.  That is, I'm  
getting

[ERROR] Tapestry 5 Tutorial #1 /:
java.lang.IllegalStateException: No root element has been defined.
  at org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
  at  
org 
.apache 
.tapestry 
.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java: 
51) at  
org 
.apache 
.tapestry 
.internal 
.services 
.PageResponseRendererImpl 
.renderPageResponse(PageResponseRendererImpl.java:75) at  
$ 
PageResponseRenderer_11571e00308 
.renderPageResponse($PageResponseRenderer_11571e00308.java) ...

  from the trunk/ version of the tutorial project.
Christian.
On 5-Oct-07, at 3:43 PM, Marcus wrote:

Hi Bob,

T505 - templates   .htmlin   src/main/webapp/WEB-INF/   or
src/main/resources/your package/pages/
T506 - templates   .tmlin   src/main/webapp/or
src/main/resources/your package/pages/

http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469

Marcus

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


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




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



Re: [ANN] Trails 1.1.1 release

2007-10-06 Thread Howard Lewis Ship
Thanks for all the effort.

I can tell you that Trails demos pretty darn well when I show it off
as part of No Fluff Just Stuff.

I'm looking forward to Trails 5 for Tapestry 5 !

On 10/4/07, Kalle Korhonen [EMAIL PROTECTED] wrote:
 Hello Trailers :)

 Just as promised, we are happy to announce Trails 1.1.1 release! It feels
 it's been so long, even though it was less than six months ago we hit 1.0.
 The single biggest difference between 1.0 and 1.1 is the modularized
 architecture. The documentation gives you an
 overviewhttp://trailsframework.org/Overview?nocacheof the new
 modules; the important thing is it allows Trails to be used in
 more heterogenous use cases, independent of whether your project is using
 Hibernate or Acegi. One of the other more visible changes we also made is
 the new default user interface and layout that's designed to be compatible
 with AppFuse so users of that project should feel right at home trying out
 our examples. One more super-exciting feature is our first draft of
 full-text search based on Trails-Compass integration that we have a whole
 section about in the User
 Guidehttp://trailsframework.org/Querying+entities+and+full-text+search?nocache.
 The release history
 http://trailsframework.org/Release+history?nocache(also copied
 below) gives you a brief overview of the major features and a
 summary of the 30 bugs that were fixed in this release.

 While the initial plan for 1.1 was to integrate with Tapestry 4.1.2,
 4.1.3contained important bug fixes for us and since it was released
 just
 recently, we decided to go with it for 1.1.x. We've also upgraded versions
 of several other dependencies, check out the dependency
 reporthttp://www.trailsframework.org/site/modules/trails-core/dependencies.htmlto
 see exactly what. Trails libraries are already available in
 repo1.maven.org http://repo1.maven.org/maven2/org/trailsframework/trails.
 We've also revamped our website to transparently blend Maven reports with
 Confluence-based Codehaus project site. Go visit
 http://trailsframework.organd enjoy!
 1.1.1 Release summary (release date 2007-10-02)
 * Fixes minor issues in 1.1 release:
   o Fixed archetypes referring to snapshot versions
   o Added a default exception page to the archetype
   o Fixed an issue with validating unique entities when CGLIB
 enhanced classes are used
 * Branch (1.1.x) available for further maintenance releases

 1.1 Release summary (release date 2007-09-30)
 * Features
   o Move to Tapestry 4.1.3 ( DONE)
   o Modularization ( DONE)
   o Owner instance -based security ( DONE)
   o Search refactoring + Compass / Lucene Integration ( DONE)
   o Exception handling ( DONE)
   o New look  feel, multiple themes ( DONE)
 * Fixed bugs in 1.1:
   T Key Summary
   Bug TRAILS-78 Editing a child object from a indexed list
 child collection creates duplicates.
   New Feature TRAILS-30 @OneToOne needs user interface semantics

   Bug TRAILS-50 Security Bug: infinite loop on special
 configuration
   Bug TRAILS-49 Security BUG: Login.html does not render
   Bug TRAILS-61 Login.html requires username/password entry
 twice
   New Feature TRAILS-59 ObjectTable needs to be instrumented to
 be able to automatically render images
   Bug TRAILS-56 Security is broken, ROLE_ANONYMOUS is
 constrained from creating users - impact from merge 582
   Bug TRAILS-87 Property Editor is broken ... serious flawed
 behavior semantics 4.1.2 Branch
   Bug TRAILS-42 Trails is not using success-cancel-refresh
 actions listeners in its ObjectForm
   Bug TRAILS-85 Trails crashes stale after sitting overnight
   Bug TRAILS-86 Custom Editors no longer possible in trails
 OGNL-105 OGNL-111
   Bug TRAILS-81 regression:OneToOne decoration faulty...HARD
 OneToOne associations broken
   Bug TRAILS-33 hasCyclicRelationships solution is merging on
 entities not persisted yet
   Bug TRAILS-3 trails-archetype generates a ${basedir} directory
   New Feature TRAILS-37 remove Tapernate
   Task TRAILS-38 re-modularize Trails
   Improvement TRAILS-40 upgrade to Spring 2.0.6 and Tapestry
 4.1.2
   Improvement TRAILS-52 The pages ServiceEncoder should use the
 extension .page (so should the filters)
   Improvement TRAILS-66 login page needs a proper tapestry form
   New Feature TRAILS-82 SINGLETON Annotation required to
 properly manage these at entity level
   Improvement TRAILS-48 Manual hand editing is required to
 properly integrate security
   New Feature TRAILS-27 Provide facility to expose objects as
 web services
   New Feature TRAILS-31 Required Fields indicator (top of page
 and on each field)
   Bug TRAILS-80 

Re: t5: no root element has been defined

2007-10-06 Thread Imants Firsts
After the change from .html to .tml in the SVN, my page
templates in WEB-INF were not found any more. Moving
them to the corresponding package under main/resources
like component templates solved the problem.

Imants

Quoting Christian Gruber [EMAIL PROTECTED]:
 I did.  It's not a version thing.  I built
5.0.6-SNAPSHOT from trunk  
 (as of yesterday), and the pom file pulls in that
version.  (In fact,  
 m2eclipse plugin in eclipse shows the t5-core project
as the dep).  I  
 have tried each combination of old and new template
location, and  
 filename.  I understand the nature of the exception,
just not what I  
 am specifically not doing.
 
 I should file a JIRA to clarify the exception for
cases where there is  
 no template, and have the locations searched listed
in the log.  The  
 problem might be that no root node is defined, but
the cause is no  
 template, and that can probably be trapped where that
is discovered.
 
 Christian.
 
 On 6-Oct-07, at 6:48 AM, Nick Westgate wrote:
 
  The exception means your Java class was found, but
not the template.
 
  Carefully check your project details against
Marcus's notes below.
  Check your pom.xml for the tapestry version etc.
 
  Cheers,
  Nick.
 
 
  Christian Gruber wrote:
  Actually, I'm getting it from the tutorial as
well.  That is, I'm  
  getting
  [ERROR] Tapestry 5 Tutorial #1 /:
  java.lang.IllegalStateException: No root element
has been defined.
at
org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
at  
  org 
  .apache 
  .tapestry 
 
.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:

  51) at  
  org 
  .apache 
  .tapestry 
  .internal 
  .services 
  .PageResponseRendererImpl 
 
.renderPageResponse(PageResponseRendererImpl.java:75) 
   at  
  $ 
  PageResponseRenderer_11571e00308 
 
.renderPageResponse($PageResponseRenderer_11571e00308.java)
...
from the trunk/ version of the tutorial project.
  Christian.
  On 5-Oct-07, at 3:43 PM, Marcus wrote:
  Hi Bob,
 
  T505 - templates   .htmlin  
src/main/webapp/WEB-INF/   or
  src/main/resources/your package/pages/
  T506 - templates   .tmlin   src/main/webapp/
   or
  src/main/resources/your package/pages/
 
 

http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469
 
  Marcus
 
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 

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


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



T4.1: DropdownTimePicker minutes interval = 5

2007-10-06 Thread Malin Ljungh
Hi all,

Is it possible to let the user enter times like for example
23:59
using the DropdownTimePicker?
(and keyboard of course, I know the dropdown has 5 minute intervals to
select only)
Seems like it will change that value to 23:55 before submit.

Cheers,
Malin


Re: t5: no root element has been defined

2007-10-06 Thread Christian Gruber
Ok.  Thanks, Imants.  Several people have offered a similar answer,  
and I appreciate it, but I have tried this.  I have tried *.tml in / 
src/main/resources/.../pages I have tried *.html in the same.  I have  
tried *.tml in /src/main/webapp, and *.html in /src/main/webapp/WEB- 
INF/ (per the old way).


I'm going to check out a fresh copy of trunk re-build, and retry.  The  
crazy thing is that I'm finding this problem with a basic project  
created with quickstart (modified slightly to move Start.html into  
Start.tml in the right place).  I have one page, and that's all.  It's  
not working even at that level.  The tutorial project isn't working  
either, per the trunk copy.


sigh

Christian.

On 6-Oct-07, at 3:32 PM, Imants Firsts wrote:


After the change from .html to .tml in the SVN, my page
templates in WEB-INF were not found any more. Moving
them to the corresponding package under main/resources
like component templates solved the problem.

Imants

Quoting Christian Gruber [EMAIL PROTECTED]:

I did.  It's not a version thing.  I built

5.0.6-SNAPSHOT from trunk

(as of yesterday), and the pom file pulls in that

version.  (In fact,

m2eclipse plugin in eclipse shows the t5-core project

as the dep).  I

have tried each combination of old and new template

location, and

filename.  I understand the nature of the exception,

just not what I

am specifically not doing.

I should file a JIRA to clarify the exception for

cases where there is

no template, and have the locations searched listed

in the log.  The

problem might be that no root node is defined, but

the cause is no

template, and that can probably be trapped where that

is discovered.


Christian.

On 6-Oct-07, at 6:48 AM, Nick Westgate wrote:


The exception means your Java class was found, but

not the template.


Carefully check your project details against

Marcus's notes below.

Check your pom.xml for the tapestry version etc.

Cheers,
Nick.


Christian Gruber wrote:

Actually, I'm getting it from the tutorial as

well.  That is, I'm

getting
[ERROR] Tapestry 5 Tutorial #1 /:
java.lang.IllegalStateException: No root element

has been defined.

 at

org.apache.tapestry.dom.Document.toMarkup(Document.java:89)

 at
org
.apache
.tapestry


.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:


51) at
org
.apache
.tapestry
.internal
.services
.PageResponseRendererImpl


.renderPageResponse(PageResponseRendererImpl.java:75)
  at

$
PageResponseRenderer_11571e00308


.renderPageResponse($PageResponseRenderer_11571e00308.java)
   ...

 from the trunk/ version of the tutorial project.
Christian.
On 5-Oct-07, at 3:43 PM, Marcus wrote:

Hi Bob,

T505 - templates   .htmlin

src/main/webapp/WEB-INF/   or

src/main/resources/your package/pages/
T506 - templates   .tmlin   src/main/webapp/

  or

src/main/resources/your package/pages/





http://www.nabble.com/T5%3A-Upgrade-to-5.0.6-SNAPSHOT-tf4515211.html#a12878469


Marcus



-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]




-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]







-

To unsubscribe, e-mail:

[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]


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




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



Re: T5: A simple Ajax need(JQuery)

2007-10-06 Thread Donyee
Try this!
a t:type=pageLink page=getcomment context=blogId
onclick=loadMoreComment(this.href); return false; span
LoadMore/span /a

2007/10/6, Angelo Chen [EMAIL PROTECTED]:

 Hi,

 I have a very simple Ajax need, here is the situation:

 My page will display a blog, when user click 'more comments', I'd like to
 load a T5 page into a DIV provided, so basically, the page is like this:

 pmy blog's text goes here/p
 div id=comments/div

 the js will be like this:

 $('#more_comments').click(function() {
$('#comments').load('/getcomment');

 got some questions: 1. simply passing the url '/getcomment' to load is
 enough? how to pass blog ID as parameters? 2. if above steps not correct,
 any other way to achive this? Thanks,
 A.C.



 --
 View this message in context: 
 http://www.nabble.com/T5%3A-A-simple-Ajax-need%28JQuery%29-tf4580040.html#a13074090
 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: Parameter(s) translate, value are required for org.apache.tapestry.corelib.components.TextField, but have not been bound.

2007-10-06 Thread Nick Westgate

If no value is supplied, T5 checks for a property name based on the id.
But the id is simply a string and not interpreted as a prop expression,
so . doesn't mean anything special there.

That might be an interesting enhancement though. I'll add a JIRA.

Cheers,
Nick.


Marc A. Donis wrote:

Aha...
I need to specify a TextField's value property, not its id.  But why 
does id work when the value is bound to an attribute of the component 
class?


Anyway, problem solved.

- Original Message - From: Marc A. Donis [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Saturday, October 06, 2007 16:08
Subject: T5: Parameter(s) translate, value are required for 
org.apache.tapestry.corelib.components.TextField, but have not been bound.



Hi again,

I have a form in EditAccount.html, which contains:

t:textfield t:id=user.username t:validate=required/

EditAccount.java has a refernce to a user, along with a get/set pair of 
accessors, and the User object has gettes and setters for its 
properties, as well.


Nonetheless, I am encountering:

Parameter(s) translate, value are required for 
org.apache.tapestry.corelib.components.TextField, but have not been bound.

 seeming to imply that it can't find the property named user.username.
Note that if I try this with a property which is actually in the 
EditAccount class, it works just fine.  It this sort of thing just not 
supported?  I must be missing something.  Thoughts?


Thanks,

Marc




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