RE: Tacos:Tree - Node opens after submit only

2007-01-17 Thread Manuel Thurn
No, I'm not using a form. Thanks nevertheless.

Manuel 


-Original Message-
From: Steve Shucker [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 17. Januar 2007 17:28
To: Tapestry users
Subject: Re: Tacos:Tree - Node opens after submit only

Are you using the tree in a form?  If so, it's bugged.
http://tacoscomponents.jot.com/BugReporter/Bug32

I posted a workaround a while ago, but it assumes that you don't have any
form controls in your tree nodes.
http://mail-archives.apache.org/mod_mbox/tapestry-users/200606.mbox/%3C018e0
[EMAIL PROTECTED]

If you're not in a form, ignore me.

-Steve


Manuel Thurn wrote:
> Hello everybody,
>
> I tried to implement a tree using the sources of the Tacos demo (I use 
> Tacos 4.0.0 with Tapestry 4.0.2) as a guide but the nodes won't open 
> in Ajax style (without page reload). When I click on a node the font 
> gets bold and the plus sign switches to minus but the node shows its 
> content only after a submit.
>
> HTML snippet:
> 
>   
>   
>   
>   
> 
>
> Excerpt of my page specification: 
>
>
>  value="ognl:components.tree.listeners.contentExpansion"/>
>   
>   
>
>value="template:{highlight:{'${component.id}':'[255,255,184], 500, 500',
>   '${component.id}':'[255,255,184], 500, 500'},
>  fadeshow:{'${component.id}':300, '${component.id}':500}}"/>
>
>
>
>
>   
>   
>
>
>
>
>
>
>
>  
>
>
>
>
>
>
>
>
> I would be very thankfully for any advice.
>
> Greetings,
> Manuel
>
>
>
>
> -
> 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]



Tacos:Tree - Node opens after submit only

2007-01-17 Thread Manuel Thurn
Hello everybody,

I tried to implement a tree using the sources of the Tacos demo (I use Tacos
4.0.0 with Tapestry 4.0.2) as a guide but the nodes won't open in Ajax style
(without page reload). When I click on a node the font gets bold and the
plus sign switches to minus but the node shows its content only after a
submit.

HTML snippet:







Excerpt of my page specification: 

   
  
  
  

  

   
   
   
  
  
   

   
   
   
   
   
 
   
   
   
   
   
   
   

I would be very thankfully for any advice.

Greetings,
Manuel




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



RE: DatePicker Localization

2006-06-29 Thread Manuel Thurn
Hi!

I found the answer myself:










That way I can use the message key. :-)

Manuel


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



DatePicker Localization

2006-06-28 Thread Manuel Thurn
Hello all,

I want to localize a DatePicker. Instead of

I would like Tapestry to get a key value of a message catalog (.properties
files): 


But the nice validator syntax with the % and the key enclosed in brackets
doesn't work for the date translator.

What would be the best way to output the date of a DatePicker with a
localized date pattern?

Thanks in advance,
Manuel


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



Global language setting for validation messages

2006-06-27 Thread Manuel Thurn
Hi!

I'm into localization now but I can't figure out how Tapestry knows which
language to display. I get german validation messages (I live in Germany)
even if I change the language in the browser options to English. Is there
any way to override this default behavior?

The localization of normal text with key attributes, properties files etc.
is working fine. The problem occurs only with the validation messages.

Thanks,
Manuel


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



RE: Null Date in a Contrib:Table

2006-06-26 Thread Manuel Thurn
Thanks for your help Shing Hing Man. The ognl hint didn't work out for me
but the following code did the job:





In the corresponding getMyCreationDate() I let the method do the checking
and formatting. It isn't perfect but it is ok for now.

Another question: I'm into localization now but I can't figure out how
Tapestry knows which language to display. I get german validation messages
(I live in Germany) even if I change the language in the browser options to
english. Is there any possibility to override this default behavior?

Manuel


-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 23. Juni 2006 08:55
To: Tapestry users
Subject: RE: Null Date in a Contrib:Table

You could give the following a try.




   



The documentation on the If component is at  
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/If.html

Shing

--- Manuel Thurn <[EMAIL PROTECTED]> wrote:

> Thank you very much for your answer. 
> 
> I realized that my attempt to format a null Date was
> the reason for the
> exception. Without the formatting component (with
> the id
> "creationDateFormat") an empty string is displayed. 
> 
> Despite the possible drawback I'd like to try your
> suggestion. I would be
> very happy if someone gave me a hint how to code the
> If component in
> combination with the ognl syntax to catch the null
> Date.
> 
> Here again the mentioned code snippet:
> 
>   
value="components.table.tableRow.creationDate.time"/>
>   
> 
> 
> Manuel   
> 
> -Original Message-
> From: Shing Hing Man [mailto:[EMAIL PROTECTED] 
> Sent: Freitag, 23. Juni 2006 06:53
> To: Tapestry users
> Subject: Re: Null Date in a Contrib:Table
> 
> Have you consider wrapping your component 
> 'creationDateFormat' with an If component - so that
> the date is only rendered if it is not null ?
> 
> There might be a drawback with the above approach.
> The
> default sorting on your date column might not work.
>  
> Shing
> 
> 
> --- Manuel Thurn <[EMAIL PROTECTED]> wrote:
> 
> > Hi!
> > 
> >  
> > 
> > For a project I want to display a list of objects
> in
> > an html table. I'm
> > using the Table component of the contrib library
> of
> > Tapestry. One column
> > should show a formatted Date (or Calendar) object.
> > It works fine as long as
> > the Date is not null. But if the database contains
> > objects with null values
> > I get the following Exception:
> > 
> >  
> > 
> > Unable to read OGNL expression.:  source is null
> for
> > getProperty(null,
> > "tableRow")
> > 
> >  
> > 
> > Here is a snippet of the .page file. creationDate
> is
> > a Calendar object. To
> > format it I get the Date with getTime() and use
> the
> > format parameter of the
> > Insert component.
> > 
> >  
> > 
> >  type="Contrib:Table">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> >  >
>
value="components.table.tableRow.creationDate.time"/>
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > I would be happy if you could help me find a way
> to
> > handle this exception.
> > 
> >  
> > 
> > Thanks,
> > 
> >  
> > 
> > Manuel
> > 
> >  
> > 
> > 
> 
> 
> Home page :
>   http://uk.geocities.com/matmsh/index.html
> 
> 
>   
>
___
> 
> Try the all-new Yahoo! Mail. "The New Version is
> radically easier to use" -
> The Wall Street Journal 
> http://uk.docs.yahoo.com/nowyoucan.html
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Copy addresses and emails from any email account to Yahoo! Mail - quick,
easy and free. http://uk.docs.yahoo.com/trueswitch2.html

-
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: Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
Thank you very much for your answer. 

I realized that my attempt to format a null Date was the reason for the
exception. Without the formatting component (with the id
"creationDateFormat") an empty string is displayed. 

Despite the possible drawback I'd like to try your suggestion. I would be
very happy if someone gave me a hint how to code the If component in
combination with the ognl syntax to catch the null Date.

Here again the mentioned code snippet:





Manuel   

-Original Message-
From: Shing Hing Man [mailto:[EMAIL PROTECTED] 
Sent: Freitag, 23. Juni 2006 06:53
To: Tapestry users
Subject: Re: Null Date in a Contrib:Table

Have you consider wrapping your component 
'creationDateFormat' with an If component - so that
the date is only rendered if it is not null ?

There might be a drawback with the above approach. The
default sorting on your date column might not work.
 
Shing


--- Manuel Thurn <[EMAIL PROTECTED]> wrote:

> Hi!
> 
>  
> 
> For a project I want to display a list of objects in
> an html table. I'm
> using the Table component of the contrib library of
> Tapestry. One column
> should show a formatted Date (or Calendar) object.
> It works fine as long as
> the Date is not null. But if the database contains
> objects with null values
> I get the following Exception:
> 
>  
> 
> Unable to read OGNL expression.:  source is null for
> getProperty(null,
> "tableRow")
> 
>  
> 
> Here is a snippet of the .page file. creationDate is
> a Calendar object. To
> format it I get the Date with getTime() and use the
> format parameter of the
> Insert component.
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
value="components.table.tableRow.creationDate.time"/>
> 
> 
> 
> 
> 
>  
> 
> I would be happy if you could help me find a way to
> handle this exception.
> 
>  
> 
> Thanks,
> 
>  
> 
> Manuel
> 
>  
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" -
The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

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



Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
Hi!

 

For a project I want to display a list of objects in an html table. I'm
using the Table component of the contrib library of Tapestry. One column
should show a formatted Date (or Calendar) object. It works fine as long as
the Date is not null. But if the database contains objects with null values
I get the following Exception:

 

Unable to read OGNL expression.:  source is null for getProperty(null,
"tableRow")

 

Here is a snippet of the .page file. creationDate is a Calendar object. To
format it I get the Date with getTime() and use the format parameter of the
Insert component.

 









 









 

I would be happy if you could help me find a way to handle this exception.

 

Thanks,

 

Manuel

 



Null Date in a Contrib:Table

2006-06-23 Thread Manuel Thurn
Hi!

For a project I want to display a list of objects in an html table. I'm
using the Table component of the contrib library of Tapestry. One column
should show a formatted Date (or Calendar) object. It works fine as long as
the Date is not null. But if the database contains objects with null values
I get the following Exception:

Unable to read OGNL expression.:  source is null for getProperty(null,
"tableRow")

Here is a snippet of the .page file. creationDate is a Calendar object. To
format it I get the Date with getTime() and use the format parameter of the
Insert component.



 



 

I would be happy if you could help me find a way to handle this exception.

Thanks,
Manuel


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