Re: Tapestry3 + PostgreSQL temp table problem

2006-09-03 Thread Patrick Moore
In general a bad idea... you are much better off usually to simply rerun the
query rather than hold some sort of information (esp in a temp table) across
requests.

I would suggest you rethink this...

--- Peter Dawn <[EMAIL PROTECTED]> wrote:

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


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



Re: Checking when application closes

2006-09-03 Thread Patrick Moore
Nope 

You are relying on the web page sending some sort of message when the browser
gets killed. No matter what fancy mechanism you can think of this will be
defeated with something as simple as the internet connection being broken.

This is why you use session time out.

-Pat

--- Peter Dawn <[EMAIL PROTECTED]> wrote:

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


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



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]



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

2006-09-03 Thread D&J 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









  




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
> >  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 ' > > > expression>' of
[EMAIL PROTECTED]/Test/$BeanForm.rows]:
> > > > properties
> > > > org.apache.tapestry.BindingException
> > > > Unable to read 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  
> > > > 29
> > > > 30  
> > > > 31
> > > > 32  
> > > > 33  
> > > > 34  
> > > > 35  
> > > > 36  
> > > > 37
> > > > 38   > > > 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 ba

3rd party component requirements

2006-09-03 Thread D&J Gredler

Hi,

I have a question for anyone and everyone about their preferences regarding
third party components:

When you download a Tapestry component, would you rather it:
- Require you to also download tapestry-prop [1] AND be twice as fast.
- Not require you to download anything else BUT be twice as slow as it
could otherwise be (but still pretty fast).

Specifically, I'm trying to balance ease-of-use and performance with the
BeanForm component.

This brings up a whole other question of moving away from OGNL or optimizing
it somehow, but that's tomorrow, and this is today ;-)

Daniel


[1] http://howardlewisship.com/tapestry-javaforge/tapestry-prop/


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


   


 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
   });


   
 
 the current time is
 
   


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]



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: I'm trying to get the marvelous BeanForm component working with tap 4.1

2006-09-03 Thread Josh Long

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





   

   
   
 
   



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
>  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 ' > > expression>' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
> > > properties
> > > org.apache.tapestry.BindingException
> > > Unable to read 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  
> > > 29
> > > 30  
> > > 31
> > > 32  
> > > 33  
> > > 34  
> > > 35  
> > > 36  
> > > 37
> > > 38   > > 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




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



RE: tapernate anonymous svn access?

2006-09-03 Thread karthik.nar

Hi, 

Any updates on how the SVN can be accessed?

Thanks, Karthik
-- 
View this message in context: 
http://www.nabble.com/tapernate-anonymous-svn-access--tf2086340.html#a6124142
Sent from the Tapestry - User forum at Nabble.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 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
 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 ' > expression>' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
> > properties
> > org.apache.tapestry.BindingException
> > Unable to read 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  
> > 29
> > 30  
> > 31
> > 32  
> > 33  
> > 34  
> > 35  
> > 36  
> > 37
> > 38   > 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


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


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



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

2006-09-03 Thread D&J 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 ' expression>' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
> properties
> org.apache.tapestry.BindingException
> Unable to read 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  
> 29
> 30  
> 31
> 32  
> 33  
> 34  
> 35  
> 36  
> 37
> 38   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 D&J Gredler

Hi Josh,

Unless I'm mistaken, I think the problem you're having is that Form's
"direct" parameter was removed in 4.1. In case you didn't know, in Tapestry
4.0, if you had direct=false, the whole page was submitted and rewound when
the form was submitted. If you had direct=true, only the Form component was
submitted and rewound. The BeanForm's inner Form needs direct=false so that
on rewind, the components inside the Form have access to the BeanForm
outside the Form.

All of that to say that right now BeanForm only works on Tapestry 4.0 (not
4.1) because of this change to the Form component. There are a couple of
options I've been mulling, but all of them sacrifice a little bit of
usability, so I've been hesitant to implement any of them yet. I'll try to
speed my contemplation up and get 0.4 version out with a fix :-)

In the meantime, if this *is* actually the error you're running up against,
a temporary workaround might be to wrap your BeanForm in a Form and move all
the Form-specific parameters to the new Form. Then, the BeanForm will be
inside the Form and will therefore get submitted and rewound.

Let me know if that fixes your problem. If it doesn't, we can work through
the issues.

Take care,

Daniel


PS- Make sure you're running the 0.3 version, too.

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 '' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read 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  
29
30  
31
32  
33  
34  
35  
36  
37
38  

:: 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: Anyone ever use StringEscapeUtils.unescapeHtml

2006-09-03 Thread Sven Homburg

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






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="test";

String strUnEscapeHTML = StringEscapeUtils.unescapeHtml(dCon);

return strUnEscapeHTML;
}


and also in the .page file I put :


value="ognl:@[EMAIL PROTECTED](threadBody)"/>




but it is not working, the display still like "test"  
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 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
 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 ' > expression>' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
> > properties
> > org.apache.tapestry.BindingException
> > Unable to read 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  
> > 29
> > 30  
> > 31
> > 32  
> > 33  
> > 34  
> > 35  
> > 36  
> > 37
> > 38   > 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

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
 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 ' expression>' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
> properties
> org.apache.tapestry.BindingException
> Unable to read 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  
> 29
> 30  
> 31
> 32  
> 33  
> 34  
> 35  
> 36  
> 37
> 38   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 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 '' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read 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  
29
30  
31
32  
33  
34  
35  
36  
37
38  

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


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 '' of [EMAIL PROTECTED]/Test/$BeanForm.rows]:
properties
org.apache.tapestry.BindingException
Unable to read 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  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  

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