Re: Table and carriage return

2009-01-21 Thread Olivier Jacquet


The second issue can be solved with css and the white-space property:
http://www.w3.org/TR/CSS21/text.html#propdef-white-space

The first issue is probably because you are escaping the br elements. 
I don't know how you turn that off for a property in Tapestry by heart 
but it should be quite easy to find in the reference.





Cathy_123 wrote, On 21/01/2009 11:40:

Hello everybody,

I would like to do a table and in one column, I have several lines that I
would like to show on several lines. Something like that:
--
| header 1  | header 2 | header 3 |
--
| hello 1 | first line  | test 1 |
|   | second line |  |
--
| hello 2 | first linee| test 2|
|   | second line |  |
|   | third line|  |
--

  I set these values on the java code and I try to add ' \n\r' or '\r\n' or
'br' on the string but tapestry
doesn't understand this carracters. Do you know how to do it ?

And I would like that the table doesn't add automatically the carriage
return when my string is too long like too.

| header 1  | header 2 | header 3 |
--
| hello 1 | first line  | test 1 |
|   | second line |  |
--
| hello 2 | first linee |  |--- NOT OK
|   |  | test 2 |
|   | second line |  |
|   | third line|  |
--


thank you for your help

Cathy


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Table and carriage return

2009-01-21 Thread Olivier Jacquet


Here is a possible answer to your first issue:
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html


Olivier Jacquet wrote, On 21/01/2009 11:50:


The second issue can be solved with css and the white-space property:
http://www.w3.org/TR/CSS21/text.html#propdef-white-space

The first issue is probably because you are escaping the br elements.
I don't know how you turn that off for a property in Tapestry by heart
but it should be quite easy to find in the reference.




Cathy_123 wrote, On 21/01/2009 11:40:

Hello everybody,

I would like to do a table and in one column, I have several lines that I
would like to show on several lines. Something like that:
--
| header 1 | header 2 | header 3 |
--
| hello 1 | first line | test 1 |
| | second line | |
--
| hello 2 | first linee| test 2 |
| | second line | |
| | third line | |
--

I set these values on the java code and I try to add ' \n\r' or '\r\n' or
'br' on the string but tapestry
doesn't understand this carracters. Do you know how to do it ?

And I would like that the table doesn't add automatically the carriage
return when my string is too long like too.

| header 1 | header 2 | header 3 |
--
| hello 1 | first line | test 1 |
| | second line | |
--
| hello 2 | first linee | |--- NOT OK
| | | test 2 |
| | second line | |
| | third line | |
--


thank you for your help

Cathy


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Javascript frameworks

2008-10-30 Thread Olivier Jacquet

This has come up before:

http://mail-archives.apache.org/mod_mbox/tapestry-users/200710.mbox/[EMAIL 
PROTECTED]

and

http://www.google.be/search?hl=nlq=jquery+T5+site%3Amail-archives.apache.org%2Fmod_mbox%2Ftapestry-users%2FbtnG=Zoekenmeta=

So it seems it would be possible but a whole lot of work and I don't 
think someone embarked on that adventure yet.




Toby Hobson wrote, On 30/10/2008 17:04:

I agree that it would be nice to be able to swap out the JS implementation
because I am not a great fan of Prototype. Personally I would go with YUI or
GWT. However I believe Prototype is pretty much ingrained into T5 :(

Just my 2c worth!

Toby

2008/10/30 Onno Scheffers[EMAIL PROTECTED]


I just stumbled upon this link that lets you test the performance of
selectors in different Javascript libraries:

http://jamesdonaghue.com/static/peppy/profile/slickspeed/

Prototype doesn't look very good from that tests and that's pretty much in
line with my own feeling after having used JQuery for a while before being
introduced to Prototype through Tapestry 5. This made me wonder if it would
be possible to write a plugin for Tapestry that overrides the default
Javascript library or wether Prototype is hardwired into the Tapestry
internals?

I haven't researched it in any way yet, but I'm aware that some mixins,
client side validation and maybe even some core components would stop
working since they depend on Prototype. Is there anything else that depends
on it? Anything that cannot be overridden in a plugin?
Could the client-side behaviors be abstracted away so that multiple
implementations can be used?

Just wondering if this would be possible and what it would entail, since
tapestry 5 already allows so many other things to be configured, overridden
or replaced.


regards,

Onno





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



Re: [T5]How to make indentical validation on the client side.

2008-08-18 Thread Olivier Jacquet


Client side checking is just a convenience. Everything should be checked 
on the server side as well for people without javascript or just 
malicious people sending their own data to the server.


Having said that, I'm not advanced enough to explain how you add a 
custom javascript validator.



luna_guo wrote, On 18/08/2008 9:39:

Confirm password checking is so common.
It should happen on the client side,right?
So,what should i do ?


/luna


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



Re: T5: Official Tutorial still Incomplete

2008-03-19 Thread Olivier Jacquet

Hi,


You can always have a look at the wiki:
http://wiki.apache.org/tapestry/Tapestry5HowTos

And if you're as new as me the book
http://tapestry.apache.org/articles.html actually helped quite a bit but it
might already be somewhat outdated (was written for 5.0.6 or something).

You can always ask your question on this list and if you get an answer you
can add it to the wiki for the next person!


Regards,
Olivier






On Wed, 19 Mar 2008 10:27:32 +0100, Martin Kersten
[EMAIL PROTECTED] wrote:
 I just needed a custom validator tutorial and found the 
 offical tutorial of Tapestry 5. Saidly it is still incomplete.
 Are there any plans to complete it? It doesn't look very promising
 if the official tutorial is out of order. (Also I would appreciate 
 the additional informations.)
 
 
 Cheers,
 
 Martin (Kersten)
 
 -
 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: OnValidate and OnSuccess

2008-03-19 Thread Olivier Jacquet

Hi,


I ran into this issue as well. onValidate() is actually called multiple
times. Try it with onValidateFromNewItem(). I can't check if that's how I
solved it here.


Regards,
Olivier




On Wed, 19 Mar 2008 11:39:55 +0100, Martin Kersten
[EMAIL PROTECTED] wrote:
 Having a simple form containing a simple field (TextField) I have
 problems validating
 its content.
 
 t:form id=newItemForm
input t:type=textarea t:id=newItem t:value=newItem/br/
 /t:form
 
 
 The validation is done using onValidate. The Form is 
 processed using onSuccess. The problem arises that onValidate is 
 invoked *before* the property is updated with the value to validate.
 
 Do I have to inject the textarea with the given id?
 
 
 Cheers,
 
 Martin (Kersten)
 
 -
 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: AW: OnValidate and OnSuccess

2008-03-19 Thread Olivier Jacquet


Yes, I know. And if you use onValidateFromNewItem (with newItem the id of
the field, not the form) you will see that the value of the property is
set. Or are you already using the id from the field?


Regards,
Olivier


On Wed, 19 Mar 2008 13:47:37 +0100, Martin Kersten
[EMAIL PROTECTED] wrote:
 Hi Oivier,
 
I actually use onValidateFromComponent. The problem is that the
 property
 in question was not set to the field value to check.
 
 
 Cheers,
 
 Martin (Kersten)
 
 -Ursprüngliche Nachricht-
 Von: Olivier Jacquet [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 19. März 2008 12:47
 An: Tapestry users
 Betreff: Re: OnValidate and OnSuccess
 
 
 Hi,
 
 
 I ran into this issue as well. onValidate() is actually called multiple
 times. Try it with onValidateFromNewItem(). I can't check if that's how I
 solved it here.
 
 
 Regards,
 Olivier
 
 
 
 
 On Wed, 19 Mar 2008 11:39:55 +0100, Martin Kersten
 [EMAIL PROTECTED] wrote:
 Having a simple form containing a simple field (TextField) I have 
 problems validating its content.
 
 t:form id=newItemForm
input t:type=textarea t:id=newItem t:value=newItem/br/ 
 /t:form
 
 
 The validation is done using onValidate. The Form is processed using 
 onSuccess. The problem arises that onValidate is invoked *before* the 
 property is updated with the value to validate.
 
 Do I have to inject the textarea with the given id?
 
 
 Cheers,
 
 Martin (Kersten)
 
 -
 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]



Fetching the rendered page result.

2008-03-01 Thread Olivier Jacquet

Hello,


Is it possible to access the rendered page result from within a page 
without calling the actual http:// address?


I would need this so that I can setup a page that generates xml (xsl-fo) 
to be processed by fop [1] to convert it to pdf. That is much more 
readable than generating the xml of pdf programmatically.


So, basically, what I want is the following unless someone knows a 
better way:


class MyPage {
  function onSubmit() {
 FOPPage xml = new FOPPage();
 String output = xml.render(); // or something like this
 ...save the output to disk...
 ...convert the output to pdf on disk...
 ...send the generated pdf to the user...
  }
}

MyPage.tml:
Click the button to get the pdf:
t:forminput type=submit/t:form

FOPPage.tml:
?xml version=1.0 encoding=iso-8859-1 ?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
...


Regards,
Olivier


[1] http://xmlgraphics.apache.org/fop/


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



T5: Fetching the rendered page result.

2008-02-16 Thread Olivier Jacquet

Hello,


Is it possible to access the rendered page result from within a page 
without calling the actual http:// address?


I would need this so that I can setup a page that generates xml (xsl-fo) 
to be processed by fop [1] to convert it to pdf. That is much more 
readable than generating the xml of pdf programmatically.


So, basically, what I want is the following unless someone knows a 
better way:


class MyPage {
  function onSubmit() {
 FOPPage xml = new FOPPage();
 String output = xml.render(); // or something like this
 ...save the output to disk...
 ...convert the output to pdf on disk...
 ...send the generated pdf to the user...
  }
}

MyPage.tml:
Click the button to get the pdf:
t:forminput type=submit/t:form

FOPPage.tml:
?xml version=1.0 encoding=iso-8859-1 ?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
...


Regards,
Olivier


[1] http://xmlgraphics.apache.org/fop/

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



T5: BeanEditForm not setting values for custom parameters

2008-02-10 Thread Olivier Jacquet

Say that I have

a bean Company.java:
class Company {
  private String name;
  private String city;
}

a page CreateCompany.java:
class CreateCompany {
  private Company company;
  void onValidate() {
System.out.println(name:  + company.getName() +  city:  + 
company.getCity());

  }

a template CreateCompany.tpl
html xmlns:t=
  t:beaneditform t:id=company
t:parameter name=city
  t:label for=city/
  t:textfield t:value=company.city t:id=city/
/t:parameter
  /t:beaneditform
/html


I fill in values for both fields and I submit. The println will print 
the value for the name but the city will be NULL. How come?



Best regards,
Olivier

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



Re: T5: BeanEditForm not setting values for custom parameters

2008-02-10 Thread Olivier Jacquet
I'm sorry to spam. Apparently there is separate validate loop voor the 
custom parameters.



Have a nice day,
Olivier



Olivier Jacquet wrote:

Say that I have

a bean Company.java:
class Company {
  private String name;
  private String city;
}

a page CreateCompany.java:
class CreateCompany {
  private Company company;
  void onValidate() {
System.out.println(name:  + company.getName() +  city:  + 
company.getCity());

  }

a template CreateCompany.tpl
html xmlns:t=
  t:beaneditform t:id=company
t:parameter name=city
  t:label for=city/
  t:textfield t:value=company.city t:id=city/
/t:parameter
  /t:beaneditform
/html


I fill in values for both fields and I submit. The println will print 
the value for the name but the city will be NULL. How come?



Best regards,
Olivier

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

2008-02-10 Thread Olivier Jacquet

Yes, I figured out that much by now (I'm not that experienced with Java).

Yet, I think it is a feasable use case that you would want access to a 
message catalog in an OptionModel, no?




Harald Geritzer wrote:

Now, when you @Inject the messages in the OptionModel it is null when
you try to access it in getLabel() and I was wondering if that is
intended? Now I have to pass the catalog from my wrapper component
(SelectCountry) with its own catalog to my SelectModel which passes it
down to the OptionModel. That doesn't feel right.


why don't you use java's Locale locale.getDisplayCountry(displayLocale) ?
so you would not need the message-catalog...

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

2008-02-10 Thread Olivier Jacquet

Hello,


I'm trying to build a select component which allows you to select a 
country. The labels would be the country names and the values the ISO 
codes for the country. The catch is that I want the country names 
displayed in the current locale.


Now, when you @Inject the messages in the OptionModel it is null when 
you try to access it in getLabel() and I was wondering if that is 
intended? Now I have to pass the catalog from my wrapper component 
(SelectCountry) with its own catalog to my SelectModel which passes it 
down to the OptionModel. That doesn't feel right.


Wouldn't it be nice to be able to access the Messages from within the 
OptionModel and get access to the resources from the wrapper component?



Best regards,
Olivier

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



Re: T5: ActionLink/Zone components inside a loop

2008-02-10 Thread Olivier Jacquet

Not sure if this helps but I think that what you want is actually:

t:actionlink t:zone=prop:zoneIdShot/t:actionlink

Regards,
Olivier


Adriaan Joubert wrote:

Hi,

anybody had any luck with this? I tried

t:actionlink zone=${zoneId}Show/t:actionlink
t:zone visible=false t:id=${zoneId} context=${id}
/t:zone

But get

Component id '${zoneId}' is not valid; component ids must be valid Java
identifiers: start with a letter, and consist of letters, numbers and
underscores.

So it looks as if only literal values are accepted here?

And how do I deal with the events? The zone ids are constructed dynamically,
so I do not know what they will be when writing the code. I was hoping that
I could deal with this in an

void onEvent()

but I cannot get any context passed into this, so I do not know which zone
I'm dealing with. If anybody had an example of zones in a loop that would be
great!

Thanks,

Adriaan




On Feb 9, 2008 10:18 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote:


Ajax constructs go outside of Tapestry's understanding of the page
construction.  It relies upon the developer to generate unique zone
ids.

In your situation, I would have the setItem() method generate a unique
zone id as a side effect and expose that as a proprty used by both the
ActionLink and the Zone.

On Feb 8, 2008 11:40 PM, Travis McLeskey [EMAIL PROTECTED] wrote:

When an ActionLink and Zone appear together in a loop like this:

t:loop source=items value=item
   t:actionlink zone=myzonego!/t:actionlink
   t:zone t:id=myzonein the zone?/t:zone
   br /
/t:loop

Clicking the go! link from any iteration only affects the Zone from
the first iteration. How do I connect each ActionLink to its
corresponding Zone? I tried injecting the Zone into the java class and
then using zone=${thezone.id} in the actionlink, but then each
ActionLink was connected to the Zone from the *previous* iteration.

Thanks!
Travis


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





--
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Layout Component

2007-03-30 Thread Olivier Jacquet

Hi,

I'm trying to implement a Layout component as described here: 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html


The thing is that I get a
org.apache.tapestry.ioc.internal.util.TapestryException
Failure parsing template context:WEB-INF/Start.html: Element t:layout 
is in the Tapestry namespace, but is not a recognized Tapestry template 
element.


I made an empty Layout class in org.example.hilo.components and provided 
a html page in the resources directory with the content from the web 
page. What am I doing wrong? Without this I would need to duplicate the 
html in all the pages which just seems silly. Next up would be a kind of 
'menu component'.


Thanks in advance,
Olivier Jacquet

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



Re: Layout Component

2007-03-30 Thread Olivier Jacquet


I changed the t:layout to div t:type=layout and that did the 
trick! You need to keep the xmnls parameter though.


Should this be changed in the doc or am I still doing something wrong?



Olivier Jacquet wrote:

Hi,

I'm trying to implement a Layout component as described here: 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html


The thing is that I get a
org.apache.tapestry.ioc.internal.util.TapestryException
Failure parsing template context:WEB-INF/Start.html: Element t:layout 
is in the Tapestry namespace, but is not a recognized Tapestry template 
element.


I made an empty Layout class in org.example.hilo.components and provided 
a html page in the resources directory with the content from the web 
page. What am I doing wrong? Without this I would need to duplicate the 
html in all the pages which just seems silly. Next up would be a kind of 
'menu component'.


Thanks in advance,
Olivier Jacquet

-
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: recordError on BeanEditForm

2007-03-04 Thread Olivier Jacquet


How can I record additional errors on BeanEditForm. I cannot get access 
to the form with:


@Component
private Form _form;


Does anyone have an example?

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



Re: T5: recordError on BeanEditForm

2007-03-04 Thread Olivier Jacquet

.html:
form t:type=beaneditform object=loginData/form

becomes:
form action=/hilo/login.beaneditform.form id=form method=post 
name=form



I've tried manually setting an id to form or something else but that 
doesn't seem to work either. I keep getting an Exception:


Component org.example.hilo.pages.Login does not contain an embedded 
component with id 'form'.



The documentation also doesn't specify a parameter id for the 
beaneditform component.




Massimo Lusetti wrote:

On 3/4/07, Olivier Jacquet [EMAIL PROTECTED] wrote:


How can I record additional errors on BeanEditForm. I cannot get access
to the form with:

@Component
private Form _form;


Does the BeanEditForm's form has form id of form or something else?



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



Re: [WARNING] T5: recordError on BeanEditForm

2007-03-04 Thread Olivier Jacquet


Yet even with this clue I cannot get it to work. How do I access the 
BeanEditForm with my page class?


With:
@Component
private BeanEditForm _form;


I'm sill getting the exception:
Component org.example.hilo.pages.Login does not contain an embedded 
component with id 'form'.



So now the question becomes: How do I get access to the BeanEditForm 
component from within my pages class?.





SergeEby wrote:

Hi,

You can access the form from the BeanEditForm component:
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/BeanEditForm.html

/Serge


Massimo Lusetti wrote:

On 3/4/07, Olivier Jacquet [EMAIL PROTECTED] wrote:


How can I record additional errors on BeanEditForm. I cannot get access
to the form with:

@Component
private Form _form;

Does the BeanEditForm's form has form id of form or something else?

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

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







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



Re: T5: recordError on BeanEditForm

2007-03-04 Thread Olivier Jacquet


Solved it. If I put t:id=foo it works. With t:id=form it throws the 
exception.


I'm quite a beginner at this tapestry thing. I'll try to put those 
problems I encounter and hopefully solve online to help other beginners 
like me.



Thanks for all the help,
Olivier



Olivier Jacquet wrote:


Hi Filip,


I was just putting id=form. I've changed it to t:id=form per your 
recommendation and am now getting a



java.lang.StackOverflowError

Stack trace

java.lang.String.equalsIgnoreCase(String.java:950)
o.a.t.internal.services.ComponentEventImpl.matchesByEventType(ComponentEventImpl.java:81) 

o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) 

o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) 

o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) 

o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) 

o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) 

o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) 

o.a.t.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893) 

o.a.t.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:1002) 

o.a.t.internal.structure.InternalComponentResourcesImpl.triggerEvent(InternalComponentResourcesImpl.java:141) 

o.a.t.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:196) 

o.a.t.corelib.components.BeanEditForm.handleComponentEvent(BeanEditForm.java) 


 the keeps on going 


o.a.t = org.apache.tapestry.


Thank




Filip S. Adamsen wrote:

Hi Olivier,

Try this in your page class:

@Component(id = form)
private BeanEditForm _form;

And this in your page template:

form t:type=beaneditform t:id=form object=loginData/form

Hope this helps.

-Filip

Olivier Jacquet skrev:


Yet even with this clue I cannot get it to work. How do I access the 
BeanEditForm with my page class?


With:
@Component
private BeanEditForm _form;


I'm sill getting the exception:
Component org.example.hilo.pages.Login does not contain an embedded 
component with id 'form'.



So now the question becomes: How do I get access to the BeanEditForm 
component from within my pages class?.


-
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: Newbie - Tapestry and Databases

2007-03-02 Thread Olivier Jacquet


For Tapestry 4 there is the excellent book by Tong Ka Iok which covers 
database access and hibernate in detail.


http://www.agileskills2.org/EWDT/



Damian Sobieralski wrote:

I am wondering if anyone could assist me in resources for working with
databases?

  As a newbie, I've went through book and tutorial examples covering
form submission and page rendering in Tapestry. YAY!  But now I am ready
(I think) to dive into database access.  But a quick search on this
topic frightens me a more than a bit. Or, rather, lack of step by step
instructions on how to get this to work. I hear hand waving about Spring
integration but I cannot find someone who has created a tutorial on how
to do this. 


 So, can anyone recommend a good starting point?  I've used iBATIS and
Hibernate in simple servlets. So I'm familiar with both of them.  It's
the Tapestry hooks to these persistence systems that confuse me to no
end. I know jack about Spring. I know about the same for Hivemind (other
than I know Tapestry uses it for version 4). Do I need to be a guru in
Spring and/or Hivemind to access a database within Tapestry?  Wowsers,
I'm willing to do that but that seems like a lot of work just to get to
the point of accessing a database from within Tapestry.

 I would greatly appreciate advice on where a newbie could start to
educate himself about accessing a database with Tapestry. I want to put
the work in. So I'm not asking for spoon fed help.  But I don't know
where to look for this information (or even what I should be searching
for). Web links, books, emails. I'll take any help that you can offer. I
also looked through the nabble archives of tapestry-user but didn't see
anything I could make heads or tails of.

 I did look on the Tapestry project website but I didn't see anything
titled using Hibernate with Tapestry' or using iBatis with Tapestry.
If suh links exist, I wouldn't be offended by a RTFM followed by a link
to this online resource :)

Thanks for any advice that you can share with me.

- Damian
  


-
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 + Jetty + Hibernate

2007-02-25 Thread Olivier Jacquet


Hi,


Does anyone has an example of how to get tapestry, jetty and hibernate 
running together?


The internet is lacking in documentation about this. I have a book with 
an example for T4 and Tomcat and that helped me in getting a normal 
DataSource functioning with JettyPlus but I am not able to get hibernate 
working.


The example in T4 also uses @InjectObject but that is not available in T5.

So what do I think I need?

- How to implement the service.
- How to define it in jettyplus.xml.
- How to access the service from within Tapestry.

Ah, and I'm using Jetty5 + JettyPlus. If one of you has some code that 
does this just sending the code without any explanation would already be 
a step forward for me!



Thanks in advance.
Olivier


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