You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by lesha <ui...@gorodok.net> on 2005/01/11 12:05:32 UTC

insert example with format

i try to realize example in insert component with date format.
and i have an error when try to pass formatter as static member
using "@" character.
and i have exception:

Unable to parse expression '@blah.blah.pages.Home.@DATE_FORMAT'.
Malformed OGNL expression: @blah.blah.pages.Home.@DATE_FORMAT
Encountered "@" at line 1, column 41. Was expecting: <IDENT> ...

here is my .page

<component id="insert2" type="Insert">
         <binding name="value" expression="date"/>
         <binding name="format"
             expression="@blah.blah.pages.Home.@DATE_FORMAT"/>
</component>

here is part from Home.java

public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat(
             "dd MMM yyyy");


any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: insert example with format

Posted by Alexey Romanchuk <ui...@gorodok.net>.
thanx!
it works fine now
> I think you have an extra dot after Home
> @blah.blah.pages.Home.@DATE_FORMAT
>
> Have you tried
>   @blah.blah.pages.Home@DATE_FORMAT
> ?
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: insert example with format

Posted by Shing Hing Man <ma...@yahoo.com>.
I think you have an extra dot after Home
@blah.blah.pages.Home.@DATE_FORMAT

Have you tried 
  @blah.blah.pages.Home@DATE_FORMAT
?

Shing 


 --- lesha <ui...@gorodok.net> wrote: 
> i try to realize example in insert component with
> date format.
> and i have an error when try to pass formatter as
> static member
> using "@" character.
> and i have exception:
> 
> Unable to parse expression
> '@blah.blah.pages.Home.@DAE_FORMAT'.
> Malformed OGNL expression:
> @blah.blah.pages.Home.@DATE_FORMAT
> Encountered "@" at line 1, column 41. Was expecting:
> <IDENT> ...
> 
> here is my .page
> 
> <component id="insert2" type="Insert">
>          <binding name="value" expression="date"/>
>          <binding name="format"
>             
> expression="@blah.blah.pages.Home.@DATE_FORMAT"/>
> </component>
> 
> here is part from Home.java
> 
> public static final SimpleDateFormat DATE_FORMAT =
> new SimpleDateFormat(
>              "dd MMM yyyy");
> 
> 
> any ideas?
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
>  

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


	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org