I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Josh Long

Hello all,

I'm trying to get the marvelous tapestry 4.1 component working with
tapestry 4.1.

It seems to sucessfully create the form, but when I submit the form it
errors out, saying:

...

[ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read OGNL expression 'parsed OGNL expression' of
[EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
binding:ExpressionBinding[search/Test/$BeanForm.rows properties]
location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33, column 52
28  /description
29  
30  parameter name=element default-value=literal:tr/
31  
32  component id=rows type=For
33  binding name=source value=properties/
34  binding name=value value=property/
35  binding name=index value=index/
36  /component
37  
38  component id=informal type=Any inherit-informal-parameters=yes

:: ahem:: anyway, before I attempt to get in there and figure this out
myself, has anyone cleared this path yet? Is there a reasonable/simple
update that just needs to be applied or, is it possible tapestry has
so changed from 4.0 (on which the samples are based) to 4.1 that the
component could have broke?

Thanks in advance for any help, and i hope your weekend is going well.

Josh

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



Re: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Jesse Kuhnert

Horrible weekend so far...I've spent it working on anything but what I want.
(which is tapestry obviously)..First client project, then fixing old wounds
in maven2...Then happily upgraded to edgy eft (sweet!) .

I think Daniel mentioned I broke his beanform at some point, but I don't
remember how I did it...I do remember not feeling very bad about it after
finding out why but that's as much of the details as I remember. I assumed
it was working again when I didn't hear anything back from him.

On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:


Hello all,

I'm trying to get the marvelous tapestry 4.1 component working with
tapestry 4.1.

It seems to sucessfully create the form, but when I submit the form it
errors out, saying:

...

[ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read OGNL expression 'parsed OGNL expression' of
[EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
binding:ExpressionBinding[search/Test/$BeanForm.rows properties]
location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33,
column 52
28  /description
29
30  parameter name=element default-value=literal:tr/
31
32  component id=rows type=For
33  binding name=source value=properties/
34  binding name=value value=property/
35  binding name=index value=index/
36  /component
37
38  component id=informal type=Any
inherit-informal-parameters=yes

:: ahem:: anyway, before I attempt to get in there and figure this out
myself, has anyone cleared this path yet? Is there a reasonable/simple
update that just needs to be applied or, is it possible tapestry has
so changed from 4.0 (on which the samples are based) to 4.1 that the
component could have broke?

Thanks in advance for any help, and i hope your weekend is going well.

Josh

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





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Josh Long

ROFL! that's the best response ever!!

I'm sorry about your awkward weekend though!

So you get to upgrade linux and I'm stuck on SuSe 9.2 or 3. Seems like
everyones updating without me. But I will not be jealous. It doesn't
suit me. I finally uninstalled Red Hat 9 at best a year ago.. thought
that was progress. OK, so I'm jealous. My coworker switched from kde
to gnome of late and they've got some twisted OS X expose-style
effects built in, now... I have alt+tab.

OK, anyway, I will follow up with (the simialarly sainted, generous,
and benevolent) Daniel and hopefully we'll resolve this. It'll be fun.
I'll have ajax-ready, one-liner forms. I could provide a full-page
editable form for an object with 20 properties using nothing more than
div jwcid=mPojo / that works with ajax and validation if I get
this working in 4.1! I can just imagine the hair that'll fall out when
the web designer sees it.. Imagine it...!

Thanks again,
Josh




On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

Horrible weekend so far...I've spent it working on anything but what I want.
(which is tapestry obviously)..First client project, then fixing old wounds
in maven2...Then happily upgraded to edgy eft (sweet!) .

I think Daniel mentioned I broke his beanform at some point, but I don't
remember how I did it...I do remember not feeling very bad about it after
finding out why but that's as much of the details as I remember. I assumed
it was working again when I didn't hear anything back from him.

On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:

 Hello all,

 I'm trying to get the marvelous tapestry 4.1 component working with
 tapestry 4.1.

 It seems to sucessfully create the form, but when I submit the form it
 errors out, saying:

 ...

 [ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
 expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
 properties
 org.apache.tapestry.BindingException
 Unable to read OGNL expression 'parsed OGNL expression' of
 [EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
 binding:ExpressionBinding[search/Test/$BeanForm.rows properties]
 location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33,
 column 52
 28  /description
 29
 30  parameter name=element default-value=literal:tr/
 31
 32  component id=rows type=For
 33  binding name=source value=properties/
 34  binding name=value value=property/
 35  binding name=index value=index/
 36  /component
 37
 38  component id=informal type=Any
 inherit-informal-parameters=yes

 :: ahem:: anyway, before I attempt to get in there and figure this out
 myself, has anyone cleared this path yet? Is there a reasonable/simple
 update that just needs to be applied or, is it possible tapestry has
 so changed from 4.0 (on which the samples are based) to 4.1 that the
 component could have broke?

 Thanks in advance for any help, and i hope your weekend is going well.

 Josh

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




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




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



Re: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Josh Long

Ow.. that was a depressing run at nabble. Gotta stop nabbl'ing after
midnight. Nothing good comes of it..

So it was an ognl issue, eh?

http://www.nabble.com/BeanForm-Move-tf1921926.html#a5262830

I'm not scared of ognl... much...

Josh


On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:

ROFL! that's the best response ever!!

I'm sorry about your awkward weekend though!

So you get to upgrade linux and I'm stuck on SuSe 9.2 or 3. Seems like
everyones updating without me. But I will not be jealous. It doesn't
suit me. I finally uninstalled Red Hat 9 at best a year ago.. thought
that was progress. OK, so I'm jealous. My coworker switched from kde
to gnome of late and they've got some twisted OS X expose-style
effects built in, now... I have alt+tab.

OK, anyway, I will follow up with (the simialarly sainted, generous,
and benevolent) Daniel and hopefully we'll resolve this. It'll be fun.
I'll have ajax-ready, one-liner forms. I could provide a full-page
editable form for an object with 20 properties using nothing more than
div jwcid=mPojo / that works with ajax and validation if I get
this working in 4.1! I can just imagine the hair that'll fall out when
the web designer sees it.. Imagine it...!

Thanks again,
Josh




On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 Horrible weekend so far...I've spent it working on anything but what I want.
 (which is tapestry obviously)..First client project, then fixing old wounds
 in maven2...Then happily upgraded to edgy eft (sweet!) .

 I think Daniel mentioned I broke his beanform at some point, but I don't
 remember how I did it...I do remember not feeling very bad about it after
 finding out why but that's as much of the details as I remember. I assumed
 it was working again when I didn't hear anything back from him.

 On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:
 
  Hello all,
 
  I'm trying to get the marvelous tapestry 4.1 component working with
  tapestry 4.1.
 
  It seems to sucessfully create the form, but when I submit the form it
  errors out, saying:
 
  ...
 
  [ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
  expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
  properties
  org.apache.tapestry.BindingException
  Unable to read OGNL expression 'parsed OGNL expression' of
  [EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
  binding:ExpressionBinding[search/Test/$BeanForm.rows properties]
  location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33,
  column 52
  28  /description
  29
  30  parameter name=element default-value=literal:tr/
  31
  32  component id=rows type=For
  33  binding name=source value=properties/
  34  binding name=value value=property/
  35  binding name=index value=index/
  36  /component
  37
  38  component id=informal type=Any
  inherit-informal-parameters=yes
 
  :: ahem:: anyway, before I attempt to get in there and figure this out
  myself, has anyone cleared this path yet? Is there a reasonable/simple
  update that just needs to be applied or, is it possible tapestry has
  so changed from 4.0 (on which the samples are based) to 4.1 that the
  component could have broke?
 
  Thanks in advance for any help, and i hope your weekend is going well.
 
  Josh
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo/(and a dash of TestNG), team member/developer

 Open source based consulting work centered around
 dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com





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



Re: Anyone ever use StringEscapeUtils.unescapeHtml

2006-09-03 Thread Sven Homburg

dont use StringEscapeUtils.unescapeHtml.
use the insert component like this

component id = threadBody type=Insert
binding name=value value=literal:strongtest/strong/
binding name=raw value=ognl:true/
/component

Mit freundlichem Gruss

homburg Softwaretechnik
S.Homburg
21220 Seevetal / GERMANY
Fon: +49-4105-669746
Fax: +49-4105-668947




Teofilus Maximillian schrieb:
Hi guys, I tried to use StringEscapeUtils.unescapeHtml, from hardcoded  
in the java class, until I put in the .page file. I show my example...  
probably you can help me to figure out



import org.apache.commons.lang.StringEscapeUtils;

public String getThreadBody(){

dCon=strongtest/strong;

String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon);

return strUnEscapeHTML;
}


and also in the .page file I put :

component id = threadBody type=Insert
binding name=value  
value=ognl:@[EMAIL PROTECTED](threadBody)/

/component


but it is not working, the display still like strongtest/strong  
not test in bold


Thanks

Teo
  


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



Re: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread DJ Gredler

You didn't feel bad for breaking my BeanForm?!? Shame on you! ;-)

On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Horrible weekend so far...I've spent it working on anything but what I
want.
(which is tapestry obviously)..First client project, then fixing old
wounds
in maven2...Then happily upgraded to edgy eft (sweet!) .

I think Daniel mentioned I broke his beanform at some point, but I don't
remember how I did it...I do remember not feeling very bad about it after
finding out why but that's as much of the details as I remember. I assumed
it was working again when I didn't hear anything back from him.

On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:

 Hello all,

 I'm trying to get the marvelous tapestry 4.1 component working with
 tapestry 4.1.

 It seems to sucessfully create the form, but when I submit the form it
 errors out, saying:

 ...

 [ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
 expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
 properties
 org.apache.tapestry.BindingException
 Unable to read OGNL expression 'parsed OGNL expression' of
 [EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
 binding:ExpressionBinding[search/Test/$BeanForm.rows properties]
 location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33,
 column 52
 28  /description
 29
 30  parameter name=element default-value=literal:tr/
 31
 32  component id=rows type=For
 33  binding name=source value=properties/
 34  binding name=value value=property/
 35  binding name=index value=index/
 36  /component
 37
 38  component id=informal type=Any
 inherit-informal-parameters=yes

 :: ahem:: anyway, before I attempt to get in there and figure this out
 myself, has anyone cleared this path yet? Is there a reasonable/simple
 update that just needs to be applied or, is it possible tapestry has
 so changed from 4.0 (on which the samples are based) to 4.1 that the
 component could have broke?

 Thanks in advance for any help, and i hope your weekend is going well.

 Josh

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




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




Re: Tapernate: session per conversation support ?

2006-09-03 Thread karthik.nar

Hi,

I'm sorry for the repost.  I'm just hoping this catches someone's eye and
I'll be second-time lucky!! :-)

We're really eager to adopt Tapernate for our Tap + Spring + Hibernate
application.  I have a few questions, that would help me understand
Tapernate better:

1) any idea when the session-per-conversation support may be wired in?  I
remember seeing a thread where James had mentioned that it would be done the
clean way.

2) the objects that get stored in the user's HTTP Session - will they keep
incrementally growing, or is there a way to periodically clean them up?

3) We have the need for an OSIV pattern where we want the view - facade
layer NOT to be in a transaction, but only the facade/dao layer to be in the
transaction.  Would this be achievable with tapernate?

Thanks, Karthik

-- 
View this message in context: 
http://www.nabble.com/Tapernate%3A-session-per-conversation-support---tf2194089.html#a6123400
Sent from the Tapestry - User forum at Nabble.com.


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



Localizing the DropdownDatePicker

2006-09-03 Thread Erik Johansson

Im having a bit of trouble localizing the DropdownDatePicker.
The default lanugage of my browser is Swedish.
I choose a date where the abbreviation differs between English and 
Swedish * *e.g. Oct/Okt.

I get the following in the input field
11 Oct 2006
When I submit the form Tapestry complains about the date format since I 
guess Tapestry is configured for Swedish.

When I change the inputfield to
11 Okt 2006
and submit Tapestry accepts the input but the DropdownDatePicker does 
not (DEBUG: invalid date string: NaN-NaN-NaN).


How do I make the DropdownDatePicker render and accept Swedish abbreviation?

-erik







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



Re: Localizing the DropdownDatePicker

2006-09-03 Thread Jesse Kuhnert

Sorry about this...The current version of js for this component isn't
exactly in line with the localization abilities of the server...

Luckily IBM has been doing a ~lot~ of work on adding better localization
support in a java friendly manner to dojo lately...When I upgrade dojo (any
day now) I will make this change more permanent.

On 9/3/06, Erik Johansson [EMAIL PROTECTED] wrote:


Im having a bit of trouble localizing the DropdownDatePicker.
The default lanugage of my browser is Swedish.
I choose a date where the abbreviation differs between English and
Swedish * *e.g. Oct/Okt.
I get the following in the input field
11 Oct 2006
When I submit the form Tapestry complains about the date format since I
guess Tapestry is configured for Swedish.
When I change the inputfield to
11 Okt 2006
and submit Tapestry accepts the input but the DropdownDatePicker does
not (DEBUG: invalid date string: NaN-NaN-NaN).

How do I make the DropdownDatePicker render and accept Swedish
abbreviation?

-erik







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





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Jesse Kuhnert

Hehe...I have to admit - as much as I love programming with the
exceptionally good Qt toolkit - I like using the gnome desktop much more
than KDE :)

On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:


ROFL! that's the best response ever!!

I'm sorry about your awkward weekend though!

So you get to upgrade linux and I'm stuck on SuSe 9.2 or 3. Seems like
everyones updating without me. But I will not be jealous. It doesn't
suit me. I finally uninstalled Red Hat 9 at best a year ago.. thought
that was progress. OK, so I'm jealous. My coworker switched from kde
to gnome of late and they've got some twisted OS X expose-style
effects built in, now... I have alt+tab.

OK, anyway, I will follow up with (the simialarly sainted, generous,
and benevolent) Daniel and hopefully we'll resolve this. It'll be fun.
I'll have ajax-ready, one-liner forms. I could provide a full-page
editable form for an object with 20 properties using nothing more than
div jwcid=mPojo / that works with ajax and validation if I get
this working in 4.1! I can just imagine the hair that'll fall out when
the web designer sees it.. Imagine it...!

Thanks again,
Josh




On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 Horrible weekend so far...I've spent it working on anything but what I
want.
 (which is tapestry obviously)..First client project, then fixing old
wounds
 in maven2...Then happily upgraded to edgy eft (sweet!) .

 I think Daniel mentioned I broke his beanform at some point, but I don't
 remember how I did it...I do remember not feeling very bad about it
after
 finding out why but that's as much of the details as I remember. I
assumed
 it was working again when I didn't hear anything back from him.

 On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:
 
  Hello all,
 
  I'm trying to get the marvelous tapestry 4.1 component working with
  tapestry 4.1.
 
  It seems to sucessfully create the form, but when I submit the form it
  errors out, saying:
 
  ...
 
  [ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
  expression' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
  properties
  org.apache.tapestry.BindingException
  Unable to read OGNL expression 'parsed OGNL expression' of
  [EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
  binding:ExpressionBinding[search/Test/$BeanForm.rows
properties]
  location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line 33,
  column 52
  28  /description
  29
  30  parameter name=element default-value=literal:tr/
  31
  32  component id=rows type=For
  33  binding name=source value=properties/
  34  binding name=value value=property/
  35  binding name=index value=index/
  36  /component
  37
  38  component id=informal type=Any
  inherit-informal-parameters=yes
 
  :: ahem:: anyway, before I attempt to get in there and figure this out
  myself, has anyone cleared this path yet? Is there a reasonable/simple
  update that just needs to be applied or, is it possible tapestry has
  so changed from 4.0 (on which the samples are based) to 4.1 that the
  component could have broke?
 
  Thanks in advance for any help, and i hope your weekend is going well.
 
  Josh
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Jesse Kuhnert
 Tapestry/Dojo/(and a dash of TestNG), team member/developer

 Open source based consulting work centered around
 dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



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





--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


How to implement polling with @EventListener

2006-09-03 Thread livelock

Hi,
Dojo got a polling mode
(http://archive.dojotoolkit.org/nightly/tests/io/test_ScriptSrcIO.html#CommonArgs).
How do I use that properly with Tapestry 4.1? The EventListener seems not
have anything that ge

I want a component that reads a property from a server all 4 seconds. For
example for stock quotes or even a chat.

Regards,
André
-- 
View this message in context: 
http://www.nabble.com/How-to-implement-polling-with-%40EventListener-tf2212501.html#a6127728
Sent from the Tapestry - User forum at Nabble.com.


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



Re: How to implement polling with @EventListener

2006-09-03 Thread Josh Long

The following is contrived, but works. Mainly, I would create a proper
dojo widget and have the event listener bind to that, but this works
because of expando properties...

In your body of a file called Test.html, I have


   div id =test/div

script type=text/javascript 
 dojo.require('dojo.lang.*');
 dojo.require('dojo.event.*')
   var tst =dojo.byId('test');

   tst.update=function()
 {
 dojo.debug ('running')
 dojo.lang.setTimeout( tst.update , 4000) ;
// im sure ther animation package had
//a proper way of scheduling something for repeating, but...
 };

   dojo.addOnLoad(function(){
  dojo.byId('test').update() ; // get the ball rolling
   });
/script

   div jwcid=[EMAIL PROTECTED]
 span jwcid=@Insert value = ognl: now
 the current time is
 /span
   /div


then in Test.java,


   abstract public Date getNow() ;
   abstract public void setNow(Date now) ;

   @EventListener( elements =test, async = true ,
   events =update)
   public void update (IRequestCycle cycle )
   {
   setNow(new Date()) ;
   cycle.getResponseBuilder().updateComponent(status);
  }


and boom!

As you load hte page in javascript, test.update gets called which in
turn causes the server side event listener to run. The event listener
updates the clock (every 4 seconds because I was running this in devel
mode and, and I mean nothing, pisses tapestry off more than running in
devel mode) and the page reflects it without any refresh.

Hope this helps, sort of...

Josh

On 9/3/06, livelock [EMAIL PROTECTED] wrote:


Hi,
Dojo got a polling mode
(http://archive.dojotoolkit.org/nightly/tests/io/test_ScriptSrcIO.html#CommonArgs).
How do I use that properly with Tapestry 4.1? The EventListener seems not
have anything that ge

I want a component that reads a property from a server all 4 seconds. For
example for stock quotes or even a chat.

Regards,
André
--
View this message in context: 
http://www.nabble.com/How-to-implement-polling-with-%40EventListener-tf2212501.html#a6127728
Sent from the Tapestry - User forum at Nabble.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: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread DJ Gredler

Good deal.

I've seen a couple of garden gnome ads on gmail when I've been viewing
emails on this list about trolling and trolls :-)

On 9/4/06, Josh Long [EMAIL PROTECTED] wrote:


It worked like a charm, Daniel!

I would have responded earlier but I was too busy playing with my
shiny new component..

The code below is magic, nothing less. It works with ajax, exposes all
the properties to edit that I want, has validation, and supports all
the intrinsically tapestry 4.1 features like the updateComponents
param. Very, very cool. Now, to start offering to build more
update/edit pages!

In related news: google ads isn't completely sure what we're smoking,
so it's offering me 'Garden Gnomes and more' on the right of my gmail
window... right on top of Free Red Hat 9.0 offers...

Thanks again one and all!

Josh



div jwcid=@Border

form jwcid=@Form async= ognl:true  updateComponents =
ognl:{'bform'}
  delegate=bean:delegate clientValidationEnabled=ognl: false 

div jwcid=[EMAIL PROTECTED]
div jwcid=@bf:BeanForm
   properties =

literal:firstName{required},lastName{required},company{required},dateCreated{required}
bean = ognl: restaurant  save=listener:save /
  /div
/form

/div

On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 Hehe...I have to admit - as much as I love programming with the
 exceptionally good Qt toolkit - I like using the gnome desktop much more
 than KDE :)

 On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:
 
  ROFL! that's the best response ever!!
 
  I'm sorry about your awkward weekend though!
 
  So you get to upgrade linux and I'm stuck on SuSe 9.2 or 3. Seems like
  everyones updating without me. But I will not be jealous. It doesn't
  suit me. I finally uninstalled Red Hat 9 at best a year ago.. thought
  that was progress. OK, so I'm jealous. My coworker switched from kde
  to gnome of late and they've got some twisted OS X expose-style
  effects built in, now... I have alt+tab.
 
  OK, anyway, I will follow up with (the simialarly sainted, generous,
  and benevolent) Daniel and hopefully we'll resolve this. It'll be fun.
  I'll have ajax-ready, one-liner forms. I could provide a full-page
  editable form for an object with 20 properties using nothing more than
  div jwcid=mPojo / that works with ajax and validation if I get
  this working in 4.1! I can just imagine the hair that'll fall out when
  the web designer sees it.. Imagine it...!
 
  Thanks again,
  Josh
 
 
 
 
  On 9/3/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:
   Horrible weekend so far...I've spent it working on anything but what
I
  want.
   (which is tapestry obviously)..First client project, then fixing old
  wounds
   in maven2...Then happily upgraded to edgy eft (sweet!) .
  
   I think Daniel mentioned I broke his beanform at some point, but I
don't
   remember how I did it...I do remember not feeling very bad about it
  after
   finding out why but that's as much of the details as I remember. I
  assumed
   it was working again when I didn't hear anything back from him.
  
   On 9/3/06, Josh Long [EMAIL PROTECTED] wrote:
   
Hello all,
   
I'm trying to get the marvelous tapestry 4.1 component working
with
tapestry 4.1.
   
It seems to sucessfully create the form, but when I submit the
form it
errors out, saying:
   
...
   
[ +/- ] Exception: Unable to read OGNL expression 'parsed OGNL
expression' of
[EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read OGNL expression 'parsed OGNL expression' of
[EMAIL PROTECTED]/Test/$BeanForm.rows]: properties
binding:ExpressionBinding[search/Test/$BeanForm.rows
  properties]
location:   classpath:/net/sf/beanform/BeanFormRows.jwc, line
33,
column 52
28  /description
29
30  parameter name=element default-value=literal:tr/
31
32  component id=rows type=For
33  binding name=source value=properties/
34  binding name=value value=property/
35  binding name=index value=index/
36  /component
37
38  component id=informal type=Any
inherit-informal-parameters=yes
   
:: ahem:: anyway, before I attempt to get in there and figure this
out
myself, has anyone cleared this path yet? Is there a
reasonable/simple
update that just needs to be applied or, is it possible tapestry
has
so changed from 4.0 (on which the samples are based) to 4.1 that
the
component could have broke?
   
Thanks in advance for any help, and i hope your weekend is going
well.
   
Josh
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Jesse Kuhnert
   Tapestry/Dojo/(and a dash of TestNG), team member/developer
  
   Open source based consulting work centered around
   dojo/tapestry/tacos/hivemind. 

Tapestry3 + PostgreSQL temp table problem

2006-09-03 Thread Peter Dawn

guys,

i have a tap3 and postgres issue. sorry for posting it here, but i was
hoping to get some help from people who actually use tapestry and have
run into this problem.

now my problem is that i am generating a temp table for some
calculations. a temp table is generated when the user accesses a
function within my web app. if the user closes the web app, restarts
it and accesses the same content. it generates an error. so my debug
messages tell me that tap can find the table, but cant access it.

so when the user closes the web app and restarts it, the second
session cannot access the first sessions table. now is there a work
around this. has anybody else run into this problem. i have tried to
read some documentation on it but cant find a solution. the reason i
am using temp tables in the first place was coz i needed to perform
some calculations based on other tables and need to store this
information somewhere. hence the idea of a temp table.

thanks.

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



Checking when application closes

2006-09-03 Thread Peter Dawn

guys,

i am using tap3. how can i check when the user closes my web app. i
mean if they hit ALT+F4 or just click on the X on the browser. there
has to be a way for me to know when the web app is closed.

any ideas.

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