T5: Grid component / Date columns are not displayed

2007-07-09 Thread CarstenM

Hey guys,

I am new to tapestry and I know T5 is still alpha.
But anyway, I have a class with a few Date attributes.
This class should be displayed with a grid component but all the Date
attributes are missing.
Is there already a solution for Date columns in a Grid component?

Additionally, how can I change the column width?

Cheers
Carsten
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Grid-component---Date-columns-are-not-displayed-tf4050255.html#a11504520
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: page redirect

2007-07-23 Thread CarstenM

Hey guys,

already any solution for this "behaviour"?

Bye
Carsten


Sven Homburg wrote:
> 
> wow, and i think i must be crazy and nobody believes me !!
> 
> Mit freundlichem Gruss
> 
> homburg Softwaretechnik
> S.Homburg
> 21220 Seevetal / GERMANY
> Fon: +49-4105-669746
> Fax: +49-4105-668947
> 
> 
> 
> 
> Bill Holloway schrieb:
>> I'm having the same trouble.  My Start page inherits from ProtectedPage:
>>
>> public abstract class ProtectedPage
>> {
>> @InjectPage
>> private Login _loginPage;
>> 
>> @ApplicationState
>> private AppState _state;
>> 
>> Object onActivate ()
>> {
>> if (! _state.isLoggedIn())
>> {
>> _loginPage.setCallback (this);
>> return _loginPage;
>> }
>> return null;
>> }
>> }
>>
>> Start has an "empty" class, no members, just a template.  The Login
>> works fine.  Everything is OK under Jetty (logged in or logged out) as
>> long as I call localhost:8080/start, but if I'm not "logged in," a
>> call to localhost:8080 gets me a blank page.  Introducing "Login tmp =
>> _loginPage" at the beginning of onActivate and watching that in a
>> debug session shows a good _loginPage variable.  But BOOM.
>>
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-page-redirect-tf3486878.html#a11751934
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5.0.6 - How to use GridRows

2007-11-03 Thread CarstenM

Hello!

Still quite new to Tapestry. After my first steps I had a break because of
job load.
So still not really familiar with it.
I used a grid already for an overview table but now I would like to create a
form.
Looking for a way to create a form which contains a table/grid. 
The table row (GridRows?) should be a bit complex like
1. column=checkbox, 2. col=dateField, a textfield and maybe a button.

And of course the number of rows is not fixed.

Or in generell, how do I use the GridRows component?

Cheers,
Carsten
-- 
View this message in context: 
http://www.nabble.com/T5.0.6---How-to-use-GridRows-tf4744539.html#a13567356
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.0.6 - How to use GridRows

2007-11-06 Thread CarstenM

Hi again,

anyone who can give me an example how to use the GridRows component?

Thanks,
Carsten


-- 
View this message in context: 
http://www.nabble.com/T5.0.6---How-to-use-GridRows-tf4744539.html#a13606753
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5.0.6 - GirdModelProvider for GridRows - example?

2007-11-09 Thread CarstenM

Hello,

still trying to use the GridRows component.
Can someone give an example for a GridModelProvider or the GridRows
component?
Well, the Grid is an implementation of GridModelProvider but I would like to
customize my rows.

Thanks,
Carsten


(Thread relates to T5.0.6 - How to use GridRows)

-- 
View this message in context: 
http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13663230
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: onchange event from a select

2007-11-13 Thread CarstenM

Hello,

well, I dont know if its a nice solution but I realized it with
several forms. Then you can handle the form event and
update your second select box.



Cheers,
Carsten



martin boulanger wrote:
> 
> Hello,
> I have the same need, but I don't know how to make it.
> Does any one has an idea?
> 
> Thanks,
> 
> Martin
> 
> Leon Derks wrote:
>> 
>> 
>> I want to be able to update a second select, based on the value in the
>> first select box.
>> 
>> So I want to process it on the server-side, or with AJAX.
>> 
>> Is there a way to catch the onchange event in my java page?
>> 
>> JP
>> 
>>> Date: Sun, 23 Sep 2007 23:37:52 -0700
>>> From: [EMAIL PROTECTED]
>>> To: users@tapestry.apache.org
>>> Subject: Re: T5: onchange event from a select
>>> 
>>> Do you want it to be processed on the server side, or on the client
>>> side?
>>> For javascript, you should be able to just add an onchange attribute. If
>>> you
>>> want to add AJAX support, I'm not sure how to do that yet.
>>> 
>>> Josh
>>> 
>>> 
>>> On 9/23/07, Josh Penza <[EMAIL PROTECTED]> wrote:
>>> >
>>> > How can I catch the onchange event from a select in T5?
>>> >
>>> > are there examples?
>>> >
>>> 
>>> 
>>> 
>>> -- 
>>> --
>>> TheDailyTube.com. Sign up and get the best new videos on the internet
>>> delivered fresh to your inbox.
>> 
>> _
>> De leukste video's en de beste concerten vind je op MSN Video
>> http://video.nl.msn.com/v/nl-nl/v.htm
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-onchange-event-from-a-select-tf4504142.html#a13723904
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.0.6 - GirdModelProvider for GridRows - example?

2007-11-13 Thread CarstenM

Hi again,

no example for this or what's wrong?

Cheers
Carsten



CarstenM wrote:
> 
> Hello,
> 
> still trying to use the GridRows component.
> Can someone give an example for a GridModelProvider or the GridRows
> component?
> Well, the Grid is an implementation of GridModelProvider but I would like
> to
> customize my rows.
> 
> Thanks,
> Carsten
> 
> 
> (Thread relates to T5.0.6 - How to use GridRows)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13723905
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.0.6 - GirdModelProvider for GridRows - example?

2007-11-13 Thread CarstenM

Hi,

ok, I tried this but I get a NullPointerException (line 4 of .tml).

1http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
2
3
4
5
6
7

#
org.apache.tapestry.corelib.base.AbstractPropertyOutput.readPropertyForObject(AbstractPropertyOutput.java:134)
#
org.apache.tapestry.corelib.base.AbstractPropertyOutput.renderPropertyValue(AbstractPropertyOutput.java:117)
#
org.apache.tapestry.corelib.components.GridCell.beginRender(GridCell.java:28)
# org.apache.tapestry.corelib.components.GridCell.beginRender(GridCell.java)

Do I forget something?

Thanks.


Vashon-Ez wrote:
> 
> It's a two step process.
> 
> 1.  Define a model in your Java class.  It's easy to just use the standard
> definition and extend it like so:
> 
> @Inject
> private BeanModelSource _beanModelSource;
> 
> @Inject
> private ComponentResources _resources;
> 
> @Retain
> private BeanModel _model;
> 
> void pageLoaded() {
> _model = _beanModelSource.create(VideoClip.class, true,
> _resources);
> 
> _model.remove("id");
> 
> _model.add("action", null);
> }
> 
> public BeanModel getModel() {
> return _model;
> }
> 
> Note the _model.add("action", null);  that sets a null conduit meaning the
> grid will not try to pull values for that column from the underlying bean. 
> In other words, its a utility column where you can put whatever you like. 
> Note the name of the model is just model as its accessed via the
> getModel() method.
> 
> 2.  Add a model="name-of-your-model-in-your-Java-class" to your grid in
> your .tml file.  In this case it is model="model" e.g.:
> 
>  rowsPerPage="5" pagerPosition="both">
> 
>  context="video.id">${video.title}
> 
> 
>  context="video.id">Edit
> 
> 
> 
> I've added a bunch of other stuff, but you should get the idea. 
> 
> HTH
> 
> CarstenM <[EMAIL PROTECTED]> wrote: 
> Hi again,
> 
> no example for this or what's wrong?
> 
> Cheers
> Carsten
> 
> 
> 
> CarstenM wrote:
>> 
>> Hello,
>> 
>> still trying to use the GridRows component.
>> Can someone give an example for a GridModelProvider or the GridRows
>> component?
>> Well, the Grid is an implementation of GridModelProvider but I would like
>> to
>> customize my rows.
>> 
>> Thanks,
>> Carsten
>> 
>> 
>> (Thread relates to T5.0.6 - How to use GridRows)
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13723905
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13729112
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.0.6 - GirdModelProvider for GridRows - example?

2007-11-14 Thread CarstenM

Hi,

the line
model.add("action", null );
caused the NullPointer.
I am not sure if your suggestion is what I ma looking for.
I am looking for a grid inside a form. A grid row (GridRow component?)
should contain
a textfield and a checkbox for example.

Cheers.


Vashon-Ez wrote:
> 
> Maybe you could show more of your .tml (and .java) file(s).  I'm new to
> Tap5 and all I've discovered so far in the realm of models is how to
> supply a one to a BeanEditor and to a Grid.  I've never gone to the level
> of t:gridcell and from what I've learned one generally does not need to --
> you can configure a lot at the t:grid level and via nested t:parameter
> elements.
> 
> Ezra
> 
> CarstenM <[EMAIL PROTECTED]> wrote: 
> Hi,
> 
> ok, I tried this but I get a NullPointerException (line 4 of .tml).
> 
> 1
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 2
> volatile="inherit:volatile">
> 3
> 4
> overrides="componentResources.containerResources"/>
> 5
> 6
> 7
> 
> #
> org.apache.tapestry.corelib.base.AbstractPropertyOutput.readPropertyForObject(AbstractPropertyOutput.java:134)
> #
> org.apache.tapestry.corelib.base.AbstractPropertyOutput.renderPropertyValue(AbstractPropertyOutput.java:117)
> #
> org.apache.tapestry.corelib.components.GridCell.beginRender(GridCell.java:28)
> #
> org.apache.tapestry.corelib.components.GridCell.beginRender(GridCell.java)
> 
> Do I forget something?
> 
> Thanks.
> 
> 
> Vashon-Ez wrote:
>> 
>> It's a two step process.
>> 
>> 1.  Define a model in your Java class.  It's easy to just use the
>> standard
>> definition and extend it like so:
>> 
>> @Inject
>> private BeanModelSource _beanModelSource;
>> 
>> @Inject
>> private ComponentResources _resources;
>> 
>> @Retain
>> private BeanModel _model;
>> 
>> void pageLoaded() {
>> _model = _beanModelSource.create(VideoClip.class, true,
>> _resources);
>> 
>> _model.remove("id");
>> 
>> _model.add("action", null);
>> }
>> 
>> public BeanModel getModel() {
>> return _model;
>> }
>> 
>> Note the _model.add("action", null);  that sets a null conduit meaning
>> the
>> grid will not try to pull values for that column from the underlying
>> bean. 
>> In other words, its a utility column where you can put whatever you like. 
>> Note the name of the model is just model as its accessed via the
>> getModel() method.
>> 
>> 2.  Add a model="name-of-your-model-in-your-Java-class" to your grid in
>> your .tml file.  In this case it is model="model" e.g.:
>> 
>> 
>> rowsPerPage="5" pagerPosition="both">
>> 
>> 
>> context="video.id">${video.title}
>> 
>> 
>> 
>> context="video.id">Edit
>> 
>> 
>> 
>> I've added a bunch of other stuff, but you should get the idea. 
>> 
>> HTH
>> 
>> CarstenM  wrote: 
>> Hi again,
>> 
>> no example for this or what's wrong?
>> 
>> Cheers
>> Carsten
>> 
>> 
>> 
>> CarstenM wrote:
>>> 
>>> Hello,
>>> 
>>> still trying to use the GridRows component.
>>> Can someone give an example for a GridModelProvider or the GridRows
>>> component?
>>> Well, the Grid is an implementation of GridModelProvider but I would
>>> like
>>> to
>>> customize my rows.
>>> 
>>> Thanks,
>>> Carsten
>>> 
>>> 
>>> (Thread relates to T5.0.6 - How to use GridRows)
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13723905
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13729112
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.6---GirdModelProvider-for-GridRows---example--tf4776423.html#a13743083
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: onchange event from a select

2007-11-14 Thread CarstenM

Hi,

well, of course this will submit the form (lets say form A) but if your
first select (select A) is
the only component inside form A you can handle it as needed in your page
class like

onSubmitFromFormA(){
   
   setValueToSelectB();
}

In my case I have a .tml file with two forms (A and B). Form A has a select
and form B has 
a select as well. When I change the value of select A then the value of
select B will be changed.
Thats what you are looking for, or?

Bye.




martin boulanger wrote:
> 
> Hello,
> 
> this solution will submit the form, but 'onchange', I need to modify the
> value of the other select instead of submitting the form
> 
> Martin
> 
> 
> CarstenM wrote:
>> 
>> Hello,
>> 
>> well, I dont know if its a nice solution but I realized it with
>> several forms. Then you can handle the form event and
>> update your second select box.
>> 
>> 
>> 
>> Cheers,
>> Carsten
>> 
>> 
>> 
>> martin boulanger wrote:
>>> 
>>> Hello,
>>> I have the same need, but I don't know how to make it.
>>> Does any one has an idea?
>>> 
>>> Thanks,
>>> 
>>> Martin
>>> 
>>> Leon Derks wrote:
>>>> 
>>>> 
>>>> I want to be able to update a second select, based on the value in the
>>>> first select box.
>>>> 
>>>> So I want to process it on the server-side, or with AJAX.
>>>> 
>>>> Is there a way to catch the onchange event in my java page?
>>>> 
>>>> JP
>>>> 
>>>>> Date: Sun, 23 Sep 2007 23:37:52 -0700
>>>>> From: [EMAIL PROTECTED]
>>>>> To: users@tapestry.apache.org
>>>>> Subject: Re: T5: onchange event from a select
>>>>> 
>>>>> Do you want it to be processed on the server side, or on the client
>>>>> side?
>>>>> For javascript, you should be able to just add an onchange attribute.
>>>>> If you
>>>>> want to add AJAX support, I'm not sure how to do that yet.
>>>>> 
>>>>> Josh
>>>>> 
>>>>> 
>>>>> On 9/23/07, Josh Penza <[EMAIL PROTECTED]> wrote:
>>>>> >
>>>>> > How can I catch the onchange event from a select in T5?
>>>>> >
>>>>> > are there examples?
>>>>> >
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> --
>>>>> TheDailyTube.com. Sign up and get the best new videos on the internet
>>>>> delivered fresh to your inbox.
>>>> 
>>>> _
>>>> De leukste video's en de beste concerten vind je op MSN Video
>>>> http://video.nl.msn.com/v/nl-nl/v.htm
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-onchange-event-from-a-select-tf4504142.html#a13743747
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 Newbie : populate the value of a form in a bean

2007-11-14 Thread CarstenM

Hi,

have you tried it with

@ApplicationState
private User user;

in your page class ?


Michael Courcy wrote:
> 
> Hi
> 
> In my Page  I have a property User, and I want to directly populate the 
> value of the form to the bean User
> 
> User.java
> class User{
>   private String name;
>   private String surName;
>    getters ans setters .
> }
> 
> Start.java
> class Start{
>private User user;
> getters and setters 
> }
> 
> 
> Start.html :
> 
> <||input|| ||t||:||type||=||"||TextField||"|| 
> ||t||:||id||=||"||user.name||"|| ||t||:||value||=||"||user.name||"/>
> <||input|| ||t||:||type||=||"||TextField||"|| 
> ||t||:||id||=||"||user.surName||"|| 
> ||t||:||value||=||"||user.surName||"/>
> <||input|| ||t||:||id||=||"||submitform||"|| 
> ||t||:||type||=||"||Submit||"|| ||t||:||value||=||"||submit||" />
> 
> 
> But It seems that it does not work this way and I get an error message : 
> User is not an embedded component...
> 
> Do you think I'll have to build my own component :
> 
> 
> 
> Or is there another way to do this without using the beanEditForm ?
> ||
> 
> -- 
> Michael Courcy
> http://courcy.blogspot.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-Newbie-%3A-populate-the-value-of-a-form-in-a-bean-tf4805095.html#a13747048
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5.0.6: Table with input fields inside a form?

2007-11-19 Thread CarstenM

Hello,

I'd like to create a table with input fields (checkbox, textfield) inside a
form.
Does someone have an example?

Help would be very nice. Need a solution for it to finish first version of
my application.

(Asked for that in other threads already, but nobody answered..
probably more important things to do.)

Thanks a lot
Carsten
-- 
View this message in context: 
http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13838044
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.0.6: Table with input fields inside a form?

2007-11-19 Thread CarstenM

Alright, found a possibilty even without using Grid component.
Using a table and a loop.should be ok for this task.



CarstenM wrote:
> 
> Hello,
> 
> I'd like to create a table with input fields (checkbox, textfield) inside
> a form.
> Does someone have an example?
> 
> Help would be very nice. Need a solution for it to finish first version of
> my application.
> 
> (Asked for that in other threads already, but nobody answered..
> probably more important things to do.)
> 
> Thanks a lot
> Carsten
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13840414
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.0.6: Table with input fields inside a form?

2007-11-19 Thread CarstenM

Hi Jeffrey,

thanks for your help. Found a quite similar solution at the same time of
your suggestion. :-)

Carsten



jeffrey ai wrote:
> 
> I wouldn't suggest you to use Grid component. The easiest way is to use
>  directly with some tapestry components. Your template will be like
> below:
> ==
> 
>  
>   ...
>  
> 
>  
>   ...
>  
> 
>  
>   
> 
>  
> 
> 
> ${your_value.label}
> 
> 
> 
> 
>
>  
> 
> 
> 
> 
> The posted data in your action request will be automatically populated to
> .
> 
> cheers,
> Jeffrey Ai
> 
> 
> 
> CarstenM wrote:
>> 
>> Hello,
>> 
>> I'd like to create a table with input fields (checkbox, textfield) inside
>> a form.
>> Does someone have an example?
>> 
>> Help would be very nice. Need a solution for it to finish first version
>> of my application.
>> 
>> (Asked for that in other threads already, but nobody answered..
>> probably more important things to do.)
>> 
>> Thanks a lot
>> Carsten
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5.0.6%3A-Table-with-input-fields-inside-a-form--tf4837005.html#a13840739
Sent from the Tapestry - User mailing list archive at Nabble.com.


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