Re: JWCID changing the look & feel of the Static HTML mocks

2006-08-16 Thread Rahat

Working!! Thanks a lot Nick.

I told my component to ignore the informal-parameters.
And it is now working sweetly.

Cheers.
Rahat



Nick Westgate wrote:
> 
> Hi Rahat.
> 
> Thinking further, if you want to keep your components implicit
> you could pay the price of another (trivial) implicit component:
> 
> 
> < a jwcid="[EMAIL PROTECTED]" listener="ognl:listeners.dothis" ...>
>  My Link
> < /a>
> 
> 
> The Ghost component would render it's contents but omit itself
> and thus disappear at runtime, revealing its enclosed tags etc.
> (Another technique would be to just omit informal parameters.)
> Here's some source, but I haven't tested it on Tapestry 4.
> 
> Cheers,
> Nick.
> 
> 
> Ghost.jwc:
> 
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> 
>  
>  Disappears at runtime! (Only enclosed tags and components are
> rendered.)
>  
> 
> 
> Ghost.java:
> package jp.co.key_planning.tapestry;
> 
> import org.apache.tapestry.AbstractComponent;
> import org.apache.tapestry.IMarkupWriter;
> import org.apache.tapestry.IRequestCycle;
> 
> public abstract class Ghost extends AbstractComponent
> {
>  protected void renderComponent(IMarkupWriter writer, IRequestCycle
> cycle)
>  {
>  renderBody(writer, cycle);
>  }
> }
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JWCID-changing-the-look---feel-of-the-Static-HTML-mocks.-tf2102960.html#a5846065
Sent from the Tapestry - User forum at Nabble.com.


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



Search Text

2006-08-16 Thread Peter Dawn

guys,
is there a component which allows text search. its sort of similar to
what the tassel site has, but i want the user to search through text,
as in general paragraphs. this info is not stored in the db but
locally within that page. so the ability to search within the content
of a page.
any ideas.

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



Re: Help with Tapestry application [Kinda urgent, please read]

2006-08-16 Thread Jan Vissers
To me, the problem appears to be around a classloading issue, possibly
the default shared libraries in Oracle OC4J are messing things up for you.
Have you tried (remotely) debugging the application?

Vinicius Carvalho wrote:
> Well, it was not the XML parser :( I've changed the xml parser on
> oracle, for the chat application (using xerces instead of oracle XML)
> but the error persists, any ideas please?
>
> Best regards
>
> On 8/14/06, Jan Vissers <[EMAIL PROTECTED]> wrote:
>> If it is the Oracle XML Parser that is giving you trouble,
>> you could check out the Oracle documentation to override
>> their prepackaged XML stuff and plugin your own:
>>
>> This is for 10.1.3 (which your are using)
>>
>> **Removing and/or Replacing an Oracle Shared Library Imported by
>> Default**
>> http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#sthref74
>>
>>
>> **Example: Replacing the Oracle XML Parser with the Xerces Parser**
>> http://download-east.oracle.com/docs/cd/B25221_04/web.1013/b14433/classload.htm#CIHFJEEF
>>
>>
>>
>>
>> Vinicius Carvalho wrote:
>> > Hello there! I got stuck in a dead corner. Allow me to put some
>> > background info here:
>> > I work in a mid-size company (70-80 developers) and we are moving
>> > towards a new framework as standard for our applications.
>> > We used to be Oracle partners (thanks God, we just moved to IBM
>> > solutions) but we still have a lot of costumers running OC4J
>> > (10.1.2/10.1.3 mostly).
>> > We had a small app, that took 4 months for 2 junior developers to
>> > build (using JSF), but the app had so many problems, that last week, I
>> > challenged my manager: "I'll rewrite this entire app in Tapestry in
>> > less than 2 weeks", in exchange I asked the change to present tapestry
>> > as our default framework for our applications, and I'd even provide
>> > some training for our developers.
>> > Ok have said that, I was developing the app on a tomcat 5.5.17 server
>> > and everything was ok. When I first tried to deploy it on AS 10.1.2 I
>> > got a hivemind error (Issue 166), I have post it on the hivemind list
>> > and folks there gave me some hints. But reading through I had seen
>> > that the problem was gone with AS 10.1.3. So we contacted our customer
>> > and he said that they had a 10.1.3 installation running. I thought all
>> > my problems were solved. But when I deployed it, I got the exception
>> > shown below.
>> > I'm tapestry 4.0 downloaded using maven at ibiblio's repository. I
>> > believe that Hivemind version bundled is 1.1.
>> >
>> > I really would like some help here, I might even pay for it (It's
>> > gonna come from my own pocket but we may find a way to pay the
>> > interested through western-union, paypal, a book as gift, dunno)
>> >
>> > What I really don't want to see is people do not believing in Tapestry
>> > (which gave me a HUGE productivity) and now, just because Oracle (damn
>> > you all) can't produce quality products, risk the chance of having
>> > Tapestry as our default framework for web apps.
>> >
>> > Thanks all
>> >
>> > Regards
>> >
>> > [The Stack]
>> > org.apache.hivemind.ApplicationRuntimeException: Unable to construct
>> > service tapestry.init.ApplicationSpecificationInitializer: Error
>> > building service tapestry.init.ApplicationSpecificationInitializer:
>> > Error at
>> >
>> code-source:/java/servers/oc4j-10.1.3/j2ee/home/applications/chat/chat/WEB-INF/lib/tapestry-4.0.jar!META-INF/tapestry.init.xml,
>>
>> >
>> > line 46, column 89: Service interceptor factory
>> > hivemind.LoggingInterceptor failed to create
>> > org.apache.tapestry.parse.ISpecificationParser interceptor for service
>> > tapestry.parse.SpecificationParser as class
>> > $ISpecificationParser_10cfdcf2043: argument type mismatch
>> >
>> [code-source:/java/servers/oc4j-10.1.3/j2ee/home/applications/chat/chat/WEB-INF/lib/tapestry-4.0.jar!META-INF/tapestry.init.xml,
>>
>> >
>> > line 42, column 21]
>> >   at
>> >
>> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:165)
>>
>> >
>> >   at
>> >
>> org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:139)
>>
>> >
>> >   at
>> >
>> org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:68)
>>
>> >
>> >   at
>> >
>> $ApplicationInitializer_10cfdcf2036._service($ApplicationInitializer_10cfdcf2036.java)
>>
>> >
>> >   at
>> >
>> $ApplicationInitializer_10cfdcf2036.initialize($ApplicationInitializer_10cfdcf2036.java)
>>
>> >
>> >   at
>> >
>> $ApplicationInitializer_10cfdcf2035.initialize($ApplicationInitializer_10cfdcf2035.java)
>>
>> >
>> >   at
>> >
>> $ApplicationInitializer_10cfdcf2039.initialize($ApplicationInitializer_10cfdcf2039.java)
>>
>> >
>> >   at
>> >
>> $ApplicationInitializer_10cfdcf202c.initialize($ApplicationInitializer_10cfdcf202c.

RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang
Andrew,
Yes, it is supposed to be twice, bad naming on my part.  However, you were spot 
on about the "entrySet()" method!

Thanks,

Mark


-Original Message-
From: Andrew Ofisher [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 7:27 PM
To: Tapestry users
Subject: Re: Tapestry 3 Iterating over a map.
 
First, is there a reason you have appAuthMap twice, or just a typo?

Second,
Try:

ognl:appAuthMap.entrySet()

ognl is trying to get the object with the key "entrySet" instead of calling
the method entrySet.

Hope this helps.

On 8/16/06, Mark Stang <[EMAIL PROTECTED]> wrote:
>
> OK, I am spinning my wheels, what am I missing here?
>
> Nothing prints out and no errors:
>
>  value="ognl:currentItem">
> 
> 
> 
>  style="background:#EFEFEF;">  
>  style="background:#EFEFEF;">  
>
> Help...
>
> thanks,
>
> Mark
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 2:25 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> It should because a java.util.Set (the entrySet() method returns a Set) is
> a
> java.util.Collection.
>
> -Original Message-
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:57 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
> This will work with a "Foreach"?
>
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:53 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> Well, you'd have to call map.entrySet() and for each entry in there, you'd
> call entry.getKey() or entry.getValue() (they're of type Map.Entry).
>
> -Original Message-
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:48 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
> That sounds great, do you have any syntax?
>
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:45 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> You can iterate over the entries and they have key/value properties.
>
> -Original Message-
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:43 PM
> To: Tapestry users; Tapestry users
> Subject: RE: Tapestry 3 Iterating over a map.
>
>
> Keys.  And I want to print the values.
>
> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED]
> Sent: Wed 8/16/2006 1:39 PM
> To: 'Tapestry users'
> Subject: RE: Tapestry 3 Iterating over a map.
>
> Do you want to iterate the keys or the values?
>
> -Original Message-
> From: Mark Stang [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 3:36 PM
> To: Tapestry users; Tapestry users
> Subject: Tapestry 3 Iterating over a map.
>
> Can I treat it like a list?  Anyone know what the syntax is?  I don't want
> to convert it back and forth...
>
> thanks,
>
> Mark
>
>
>
> -
> 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]
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Also, latest version of the flash plugin on linux fixes it.  I just
downloaded it from adobe/macromedia and no more crash.

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


Fedora Core 5, 1.5.0.6.  Just ran ff in gdb and its the flash plugin that
is seg faulting.  Im not sure why it gets through one or two pages before it
decides to seg fault, but I would figure I could put the blame on flash.
The exact crash was in PolicyFileManager::DoPolicyFileRequests(), in case
you were really wondering.

No problem with the grunt work, I like understand why things break.  Guess
that's why I'm a programmer.  I was hoping to start getting more involved in
Tapestry since I use it so much for my web apps.

-Andrew Ofisher

On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
>
> Great! Thanks for doing so much grunt work Andrew.
>
> I'd still be interested in knowing what the problem is with your version
> of
> firefox though.
>
> I'm on ubuntu linux with ff 1.5.0.5, what about you?
>
> On 8/17/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
> >
> > Ok. I found the culprit.  Not sure if this needs to be submitted to
> dojo
> > as
> > well.  It seems that the embed tag is never ended properly, which
> places
> > the
> > contents of the whole page under the object tag for the flash
> file.  When
> > flash is not available, the rest of the page does not display
> properly.
> >
> > dojo.js line 8072  (also dojo.uncompressed.js line 11830)
> > or the original file flash.js line 717:
> > The line ends with escape(dojoPath);  and the next line continues
> > appending
> > to the string with a + 'pluginspage.
> >
> > The fix is to remove the semicolon; easy as that.  Firefox or any
> browser
> > without flash will now display the page correctly without needing
> > disableFlashStorage: true.
> > This is already fixed in the latest version of dojo so no need to
> submit a
> > patch/file bug there.  It still exists under the demo section of the
> > tacos-4.0 trunk
> >
> > This does not fix the crashing I am experiencing with Firefox i386 and
> the
> > macromedia flash plugin enabled, but that has to be a firefox or flash
> > bug,
> > not dojo.
> >
> >
> > -Andrew Ofisher
> >
> > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > >
> > > Ok, after some debugging (I love firefox), I am starting to see what
> is
> > > going on.  Apparently dojo is adding, right under the body node, two
> > nodes.
> > > An iframe with the id djhistory and a div called
> > flashObjectContainer.  It
> > > is under this div that real site is placed.  The div is set with
> > absolute
> > > positioning with top: -1000px and left: -1000px.  When I remove the
> > > positioning (again, I love FireBug), I can see the site again.  This
> is
> > on
> > > Firefox 64bit with no flash plugin.
> > >
> > >
> > >
> > >
> > > On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED] > wrote:
> > > >
> > > > With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6i386
> > > > on fedora core 5 and it crashes on the second page of my
> site...loads
> > the
> > > > first for some reason (not doing any ajax requests, just following
> a
> > > > DirectLink which then redirects to another page).  In 64bit(no
> flash
> > plugin,
> > > > before adding disableFlashStorage: true, in both firefox and
> > konqueror, I
> > > > get a blank page.
> > > >
> > > >
> > > > On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > That IS weird. The 32 bit version of firefox is working fine for
> me
> > on
> > > > > linux.
> > > > >
> > > > > The 64bit firefox browser also never had any problems loading
> dojo
> > > > > stuff for
> > > > > me. (when I used a 64 bit box for dev).
> > > > >
> > > > > Are you using the macromedia flash plugin or one of the generic
> > > > > (crappy)
> > > > > free ones provided with some distros?
> > > > >
> > > > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Yea, it is really annoying to have to surf the net without a
> flash
> > > > > plugin,
> > > > > > but not much I can do about it from within linux.  The 32bit
> > version
> > > > > of
> > > > > > Firefox crashes with flash enabled viewing my site for some
> > > > > reasonnot
> > > > > > sure if its a flash bug (which I'm betting on) or a Firefox
> bug.
> > > > > >
> > > > > > But yea, my main concern was that Firefox and Konqueror
> refused to
> > > > > render
> > > > > > the page at all when the flash plugin was required (even
> though it
> > > > > > received
> > > > > > the page, and javascript console gave no errors).
> > > > > >
> > > > > >
> > > > > > On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Yep...And once you figure out how to look at your local
> flash
> > > > > settings
> > > > > > > you'd
> > > > > > > be surprised at how many large corporations are already
> using
> > it.
> > > > > BoA
> > > > > > > definitely does, and I know ebay just had Brad over for a
> talk
> > of
> > > > > s

Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Fedora Core 5, 1.5.0.6.  Just ran ff in gdb and its the flash plugin that is
seg faulting.  Im not sure why it gets through one or two pages before it
decides to seg fault, but I would figure I could put the blame on flash.
The exact crash was in PolicyFileManager::DoPolicyFileRequests(), in case
you were really wondering.

No problem with the grunt work, I like understand why things break.  Guess
that's why I'm a programmer.  I was hoping to start getting more involved in
Tapestry since I use it so much for my web apps.

-Andrew Ofisher

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Great! Thanks for doing so much grunt work Andrew.

I'd still be interested in knowing what the problem is with your version
of
firefox though.

I'm on ubuntu linux with ff 1.5.0.5, what about you?

On 8/17/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>
> Ok. I found the culprit.  Not sure if this needs to be submitted to dojo
> as
> well.  It seems that the embed tag is never ended properly, which places
> the
> contents of the whole page under the object tag for the flash
file.  When
> flash is not available, the rest of the page does not display properly.
>
> dojo.js line 8072  (also dojo.uncompressed.js line 11830)
> or the original file flash.js line 717:
> The line ends with escape(dojoPath);  and the next line continues
> appending
> to the string with a + 'pluginspage.
>
> The fix is to remove the semicolon; easy as that.  Firefox or any
browser
> without flash will now display the page correctly without needing
> disableFlashStorage: true.
> This is already fixed in the latest version of dojo so no need to submit
a
> patch/file bug there.  It still exists under the demo section of the
> tacos-4.0 trunk
>
> This does not fix the crashing I am experiencing with Firefox i386 and
the
> macromedia flash plugin enabled, but that has to be a firefox or flash
> bug,
> not dojo.
>
>
> -Andrew Ofisher
>
> On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> >
> > Ok, after some debugging (I love firefox), I am starting to see what
is
> > going on.  Apparently dojo is adding, right under the body node, two
> nodes.
> > An iframe with the id djhistory and a div called
> flashObjectContainer.  It
> > is under this div that real site is placed.  The div is set with
> absolute
> > positioning with top: -1000px and left: -1000px.  When I remove the
> > positioning (again, I love FireBug), I can see the site again.  This
is
> on
> > Firefox 64bit with no flash plugin.
> >
> >
> >
> >
> > On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
> > >
> > > With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6i386
> > > on fedora core 5 and it crashes on the second page of my
site...loads
> the
> > > first for some reason (not doing any ajax requests, just following a

> > > DirectLink which then redirects to another page).  In 64bit(no flash
> plugin,
> > > before adding disableFlashStorage: true, in both firefox and
> konqueror, I
> > > get a blank page.
> > >
> > >
> > > On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > > >
> > > > That IS weird. The 32 bit version of firefox is working fine for
me
> on
> > > > linux.
> > > >
> > > > The 64bit firefox browser also never had any problems loading dojo
> > > > stuff for
> > > > me. (when I used a 64 bit box for dev).
> > > >
> > > > Are you using the macromedia flash plugin or one of the generic
> > > > (crappy)
> > > > free ones provided with some distros?
> > > >
> > > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Yea, it is really annoying to have to surf the net without a
flash
> > > > plugin,
> > > > > but not much I can do about it from within linux.  The 32bit
> version
> > > > of
> > > > > Firefox crashes with flash enabled viewing my site for some
> > > > reasonnot
> > > > > sure if its a flash bug (which I'm betting on) or a Firefox bug.
> > > > >
> > > > > But yea, my main concern was that Firefox and Konqueror refused
to
> > > > render
> > > > > the page at all when the flash plugin was required (even though
it
> > > > > received
> > > > > the page, and javascript console gave no errors).
> > > > >
> > > > >
> > > > > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Yep...And once you figure out how to look at your local flash
> > > > settings
> > > > > > you'd
> > > > > > be surprised at how many large corporations are already using
> it.
> > > > BoA
> > > > > > definitely does, and I know ebay just had Brad over for a talk
> of
> > > > some
> > > > > > kind.
> > > > > >
> > > > > >
> > > > > > Very handy stuff. Shouldn't render apps useless when the
plugin
> > > > isn't
> > > > > > installed though, I'll look into it...
> > > > > >
> > > > > > On 8/16/06, andyhot < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > It's for persisting data in browser - similar to cookies but

> > > > allow
> > > > > much
> > > > > > > more data
> > > > > > > From 100kb to whatever the u

Re: Flash and Tacos?

2006-08-16 Thread Jesse Kuhnert

Great! Thanks for doing so much grunt work Andrew.

I'd still be interested in knowing what the problem is with your version of
firefox though.

I'm on ubuntu linux with ff 1.5.0.5, what about you?

On 8/17/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


Ok. I found the culprit.  Not sure if this needs to be submitted to dojo
as
well.  It seems that the embed tag is never ended properly, which places
the
contents of the whole page under the object tag for the flash file.  When
flash is not available, the rest of the page does not display properly.

dojo.js line 8072  (also dojo.uncompressed.js line 11830)
or the original file flash.js line 717:
The line ends with escape(dojoPath);  and the next line continues
appending
to the string with a + 'pluginspage.

The fix is to remove the semicolon; easy as that.  Firefox or any browser
without flash will now display the page correctly without needing
disableFlashStorage: true.
This is already fixed in the latest version of dojo so no need to submit a
patch/file bug there.  It still exists under the demo section of the
tacos-4.0 trunk

This does not fix the crashing I am experiencing with Firefox i386 and the
macromedia flash plugin enabled, but that has to be a firefox or flash
bug,
not dojo.


-Andrew Ofisher

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>
> Ok, after some debugging (I love firefox), I am starting to see what is
> going on.  Apparently dojo is adding, right under the body node, two
nodes.
> An iframe with the id djhistory and a div called
flashObjectContainer.  It
> is under this div that real site is placed.  The div is set with
absolute
> positioning with top: -1000px and left: -1000px.  When I remove the
> positioning (again, I love FireBug), I can see the site again.  This is
on
> Firefox 64bit with no flash plugin.
>
>
>
>
> On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
> >
> > With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6 i386
> > on fedora core 5 and it crashes on the second page of my site...loads
the
> > first for some reason (not doing any ajax requests, just following a
> > DirectLink which then redirects to another page).  In 64bit(no flash
plugin,
> > before adding disableFlashStorage: true, in both firefox and
konqueror, I
> > get a blank page.
> >
> >
> > On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > >
> > > That IS weird. The 32 bit version of firefox is working fine for me
on
> > > linux.
> > >
> > > The 64bit firefox browser also never had any problems loading dojo
> > > stuff for
> > > me. (when I used a 64 bit box for dev).
> > >
> > > Are you using the macromedia flash plugin or one of the generic
> > > (crappy)
> > > free ones provided with some distros?
> > >
> > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yea, it is really annoying to have to surf the net without a flash
> > > plugin,
> > > > but not much I can do about it from within linux.  The 32bit
version
> > > of
> > > > Firefox crashes with flash enabled viewing my site for some
> > > reasonnot
> > > > sure if its a flash bug (which I'm betting on) or a Firefox bug.
> > > >
> > > > But yea, my main concern was that Firefox and Konqueror refused to
> > > render
> > > > the page at all when the flash plugin was required (even though it
> > > > received
> > > > the page, and javascript console gave no errors).
> > > >
> > > >
> > > > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Yep...And once you figure out how to look at your local flash
> > > settings
> > > > > you'd
> > > > > be surprised at how many large corporations are already using
it.
> > > BoA
> > > > > definitely does, and I know ebay just had Brad over for a talk
of
> > > some
> > > > > kind.
> > > > >
> > > > >
> > > > > Very handy stuff. Shouldn't render apps useless when the plugin
> > > isn't
> > > > > installed though, I'll look into it...
> > > > >
> > > > > On 8/16/06, andyhot < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > It's for persisting data in browser - similar to cookies but
> > > allow
> > > > much
> > > > > > more data
> > > > > > From 100kb to whatever the user can allow...
> > > > > >
> > > > > > For the moment, no tacos and no tapestry component uses this.
> > > > > >
> > > > > > But i can imagine a new cool persistance strategy making use
of
> > > > this...
> > > > > >
> > > > > > Regarding disableFlashStorage: true, i've mentioned this on
the
> > > tacos
> > > > > > list that
> > > > > > one can safely use it...
> > > > > >
> > > > > > Jesse Kuhnert wrote:
> > > > > > > I remember seeing a bunch of different messages on the dojo
> > > users
> > > > list
> > > > > > > about
> > > > > > > this. I don't currently provide a config option for
disabling
> > > flash
> > > > > > > storage
> > > > > > > but I can add one.
> > > > > > >
> > > > > > > I'll ask Brad about the flash storage stuff in general to
see
> > > what's
> > > > > up.
> > > > > > >
> > > > > > > On 8/16

Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Ok. I found the culprit.  Not sure if this needs to be submitted to dojo as
well.  It seems that the embed tag is never ended properly, which places the
contents of the whole page under the object tag for the flash file.  When
flash is not available, the rest of the page does not display properly.

dojo.js line 8072  (also dojo.uncompressed.js line 11830)
or the original file flash.js line 717:
The line ends with escape(dojoPath);  and the next line continues appending
to the string with a + 'pluginspage.

The fix is to remove the semicolon; easy as that.  Firefox or any browser
without flash will now display the page correctly without needing
disableFlashStorage: true.
This is already fixed in the latest version of dojo so no need to submit a
patch/file bug there.  It still exists under the demo section of the
tacos-4.0 trunk

This does not fix the crashing I am experiencing with Firefox i386 and the
macromedia flash plugin enabled, but that has to be a firefox or flash bug,
not dojo.


-Andrew Ofisher

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


Ok, after some debugging (I love firefox), I am starting to see what is
going on.  Apparently dojo is adding, right under the body node, two nodes.
An iframe with the id djhistory and a div called flashObjectContainer.  It
is under this div that real site is placed.  The div is set with absolute
positioning with top: -1000px and left: -1000px.  When I remove the
positioning (again, I love FireBug), I can see the site again.  This is on
Firefox 64bit with no flash plugin.




On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
>
> With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6 i386
> on fedora core 5 and it crashes on the second page of my site...loads the
> first for some reason (not doing any ajax requests, just following a
> DirectLink which then redirects to another page).  In 64bit(no flash plugin,
> before adding disableFlashStorage: true, in both firefox and konqueror, I
> get a blank page.
>
>
> On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> >
> > That IS weird. The 32 bit version of firefox is working fine for me on
> > linux.
> >
> > The 64bit firefox browser also never had any problems loading dojo
> > stuff for
> > me. (when I used a 64 bit box for dev).
> >
> > Are you using the macromedia flash plugin or one of the generic
> > (crappy)
> > free ones provided with some distros?
> >
> > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > >
> > > Yea, it is really annoying to have to surf the net without a flash
> > plugin,
> > > but not much I can do about it from within linux.  The 32bit version
> > of
> > > Firefox crashes with flash enabled viewing my site for some
> > reasonnot
> > > sure if its a flash bug (which I'm betting on) or a Firefox bug.
> > >
> > > But yea, my main concern was that Firefox and Konqueror refused to
> > render
> > > the page at all when the flash plugin was required (even though it
> > > received
> > > the page, and javascript console gave no errors).
> > >
> > >
> > > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yep...And once you figure out how to look at your local flash
> > settings
> > > > you'd
> > > > be surprised at how many large corporations are already using it.
> > BoA
> > > > definitely does, and I know ebay just had Brad over for a talk of
> > some
> > > > kind.
> > > >
> > > >
> > > > Very handy stuff. Shouldn't render apps useless when the plugin
> > isn't
> > > > installed though, I'll look into it...
> > > >
> > > > On 8/16/06, andyhot < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > It's for persisting data in browser - similar to cookies but
> > allow
> > > much
> > > > > more data
> > > > > From 100kb to whatever the user can allow...
> > > > >
> > > > > For the moment, no tacos and no tapestry component uses this.
> > > > >
> > > > > But i can imagine a new cool persistance strategy making use of
> > > this...
> > > > >
> > > > > Regarding disableFlashStorage: true, i've mentioned this on the
> > tacos
> > > > > list that
> > > > > one can safely use it...
> > > > >
> > > > > Jesse Kuhnert wrote:
> > > > > > I remember seeing a bunch of different messages on the dojo
> > users
> > > list
> > > > > > about
> > > > > > this. I don't currently provide a config option for disabling
> > flash
> > > > > > storage
> > > > > > but I can add one.
> > > > > >
> > > > > > I'll ask Brad about the flash storage stuff in general to see
> > what's
> > > > up.
> > > > > >
> > > > > > On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
> > > > > >>
> > > > > >> Not sure if anyone else experiences this...I'm using Tapestry
> > 4.0.2
> > > ,
> > > > > >> Tacos
> > > > > >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on
> > Fedora Core
> > > 5
> > > > > >> x86_64.
> > > > > >>
> > > > > >> It seems that by default, dojo requires Flash and on a
> > browser that
> > > > > >> doesn't
> > > > > >> have flash (Anything on 64-bit l

Re: Unable to construct service tapestry.multipart.ServletMultipartDecoder

2006-08-16 Thread Ryan Holmes

All your jar versions are fine. Try replacing this:





with this:

	id="tapestry.multipart.ServletMultipartDecoder">





The service-id changed a few months ago (at 4.0.1 I think). There is  
now a "tapestry.multipart.ServletMultipartDecoder" and  a  
"tapestry.portlet.multipart.PortletMultipartDecoder" service.


-Ryan

On Aug 16, 2006, at 3:06 PM, Andrés Nates wrote:


Hello Jesse, I'm have put this version of jars

tapestry-portlet-4.0.2.jar
tapestry-4.0.2.jar
tapestry-annotations-4.0.2.jar
tapestry-contrib-4.0.2.jar
commons-codec-1.3.jar
commons-logging-1.0.4.jar
commons-fileupload-1.1.jar
commons-io-1.2-jar
ognl-2.6.7.jar
oro-2.0.8.jar
hivemind-1.1.1.jar
hivemind-lib-1.1.1.jar


But the error still appear


-Mensaje original-
De: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 16 de Agosto de 2006 04:37 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder

You need fileupload-1.1..

http://tapestry.apache.org/tapestry4/dependencies.html

On 8/16/06, Andrés Nates <[EMAIL PROTECTED]> wrote:


I'm have this version of jar

tapestry-4.0.2
hivemind-1.1
hivemind-lib-1.1
commons-fileupload-1.0

and the file Hivemind.xml look this:





class="com.ttdev.album.ImageService">








id="tapestry.url.ServiceEncoders">




id="tapestry.multipart.MultipartDecoder">






-Mensaje original-
De: Ryan Holmes [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 16 de Agosto de 2006 03:57 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder

IIRC, the name of that service changed between Tapestry 4.0 and
4.0.1, but your stacktrace looks correct (well, as correct as a
stacktrace can be).

What versions of the following jars do you have:  tapestry, hivemind,
hivemind-lib and commons-fileupload?

Also, are you specifying a maximum upload size in your hivemodule.xml
file? It will look something like this:

   
 class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=500 
000

"
   model="threaded" />
   

If so, copy and paste that into your response.

-Ryan

On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:


When I'm run de example of the component upload, this example has a
basic
upload component for images (jpeg).  This is the error message









org.apache.hivemind.ApplicationRuntimeException: Unable to
construct service
tapestry.multipart.ServletMultipartDecoder: Could not load class
org.apache.tapestry.multipart.MultipartDecoderImpl from
WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]
: org/apache/commons/fileupload/servlet/ServletFileUpload

org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.construct 
Se

rviceF
orCurrentThread(ThreadedServiceModel.java:186)

org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServic 
eI

mpleme
ntationForCurrentThread(ThreadedServiceModel.java:157)

$ServletMultipartDecoder_10d0ea93c7e._service
($ServletMultipartDecoder_10d0e
a93c7e.java)

$ServletMultipartDecoder_10d0ea93c7e.cleanup
($ServletMultipartDecoder_10d0ea
93c7e.java)

$ServletMultipartDecoder_10d0ea93c7f.cleanup
($ServletMultipartDecoder_10d0ea
93c7f.java)

org.apache.tapestry.multipart.MultipartDecoderFilter.service
(MultipartDecode
rFilter.java:57)

$ServletRequestServicerFilter_10d0ea93cbe.service
($ServletRequestServicerFil
ter_10d0ea93cbe.java)

$ServletRequestServicer_10d0ea93cc6.service
($ServletRequestServicer_10d0ea93
cc6.java)

org.apache.tapestry.services.impl.SetupRequestEncoding.service
(SetupRequestE
ncoding.java:53)

$ServletRequestServicerFilter_10d0ea93cc2.service
($ServletRequestServicerFil
ter_10d0ea93cc2.java)

$ServletRequestServicer_10d0ea93cc6.service
($ServletRequestServicer_10d0ea93
cc6.java)

$ServletRequestServicer_10d0ea93cb8.service
($ServletRequestServicer_10d0ea93
cb8.java)

org.apache.tapestry.ApplicationServlet.doService
(ApplicationServlet.java:123
)

org.apache.tapestry.ApplicationServlet.doPost
(ApplicationServlet.java:168)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





Anybody know how to fix this error ?







Cordialmente,
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email:  
[EMAIL PROTECTED]
Cali   - Colombia
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramient

Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Ok, after some debugging (I love firefox), I am starting to see what is
going on.  Apparently dojo is adding, right under the body node, two nodes.
An iframe with the id djhistory and a div called flashObjectContainer.  It
is under this div that real site is placed.  The div is set with absolute
positioning with top: -1000px and left: -1000px.  When I remove the
positioning (again, I love FireBug), I can see the site again.  This is on
Firefox 64bit with no flash plugin.



On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6 i386 on
fedora core 5 and it crashes on the second page of my site...loads the first
for some reason (not doing any ajax requests, just following a DirectLink
which then redirects to another page).  In 64bit(no flash plugin, before
adding disableFlashStorage: true, in both firefox and konqueror, I get a
blank page.


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> That IS weird. The 32 bit version of firefox is working fine for me on
> linux.
>
> The 64bit firefox browser also never had any problems loading dojo stuff
> for
> me. (when I used a 64 bit box for dev).
>
> Are you using the macromedia flash plugin or one of the generic (crappy)
>
> free ones provided with some distros?
>
> On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> >
> > Yea, it is really annoying to have to surf the net without a flash
> plugin,
> > but not much I can do about it from within linux.  The 32bit version
> of
> > Firefox crashes with flash enabled viewing my site for some
> reasonnot
> > sure if its a flash bug (which I'm betting on) or a Firefox bug.
> >
> > But yea, my main concern was that Firefox and Konqueror refused to
> render
> > the page at all when the flash plugin was required (even though it
> > received
> > the page, and javascript console gave no errors).
> >
> >
> > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > >
> > > Yep...And once you figure out how to look at your local flash
> settings
> > > you'd
> > > be surprised at how many large corporations are already using it.
> BoA
> > > definitely does, and I know ebay just had Brad over for a talk of
> some
> > > kind.
> > >
> > >
> > > Very handy stuff. Shouldn't render apps useless when the plugin
> isn't
> > > installed though, I'll look into it...
> > >
> > > On 8/16/06, andyhot < [EMAIL PROTECTED]> wrote:
> > > >
> > > > It's for persisting data in browser - similar to cookies but allow
> > much
> > > > more data
> > > > From 100kb to whatever the user can allow...
> > > >
> > > > For the moment, no tacos and no tapestry component uses this.
> > > >
> > > > But i can imagine a new cool persistance strategy making use of
> > this...
> > > >
> > > > Regarding disableFlashStorage: true, i've mentioned this on the
> tacos
> > > > list that
> > > > one can safely use it...
> > > >
> > > > Jesse Kuhnert wrote:
> > > > > I remember seeing a bunch of different messages on the dojo
> users
> > list
> > > > > about
> > > > > this. I don't currently provide a config option for disabling
> flash
> > > > > storage
> > > > > but I can add one.
> > > > >
> > > > > I'll ask Brad about the flash storage stuff in general to see
> what's
> > > up.
> > > > >
> > > > > On 8/16/06, Andrew Ofisher < [EMAIL PROTECTED]> wrote:
> > > > >>
> > > > >> Not sure if anyone else experiences this...I'm using Tapestry
> 4.0.2
> > ,
> > > > >> Tacos
> > > > >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora
> Core
> > 5
> > > > >> x86_64.
> > > > >>
> > > > >> It seems that by default, dojo requires Flash and on a browser
> that
> > > > >> doesn't
> > > > >> have flash (Anything on 64-bit linux, thanks a lot
> > adobe/macromedia),
> > > > my
> > > > >> site refuses to render at all.  Only after I added
> > > disableFlashStorage:
> > > > >> true
> > > > >> to djconfig did it  render the page properly and allow me to
> use my
> > > > >> site.
> > > > >>
> > > > >> Is this how the default behavior should be?  And if so, can we
> put
> > > > >> this in
> > > > >> the Wiki or FAQ for others like me so they don't have to search
> > > > >> endlessly
> > > > >> for an answer...I found one obscure reference on the dev list
> that
> > > > >> led me
> > > > >> to
> > > > >> this solution.
> > > > >>
> > > > >> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
> > > > >>
> > > > >>
> > > > >> Thanks,
> > > > >> Andrew Ofisher
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> > > > Tapestry / Tacos developer
> > > > Open Source / J2EE Consulting
> > > >
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/devel

Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

With 32bit Firefox i'm using the macromedia one.  Firefox 1.5.0.6 i386 on
fedora core 5 and it crashes on the second page of my site...loads the first
for some reason (not doing any ajax requests, just following a DirectLink
which then redirects to another page).  In 64bit(no flash plugin, before
adding disableFlashStorage: true, in both firefox and konqueror, I get a
blank page.

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


That IS weird. The 32 bit version of firefox is working fine for me on
linux.

The 64bit firefox browser also never had any problems loading dojo stuff
for
me. (when I used a 64 bit box for dev).

Are you using the macromedia flash plugin or one of the generic (crappy)
free ones provided with some distros?

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>
> Yea, it is really annoying to have to surf the net without a flash
plugin,
> but not much I can do about it from within linux.  The 32bit version of
> Firefox crashes with flash enabled viewing my site for some
reasonnot
> sure if its a flash bug (which I'm betting on) or a Firefox bug.
>
> But yea, my main concern was that Firefox and Konqueror refused to
render
> the page at all when the flash plugin was required (even though it
> received
> the page, and javascript console gave no errors).
>
>
> On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> >
> > Yep...And once you figure out how to look at your local flash settings
> > you'd
> > be surprised at how many large corporations are already using it. BoA
> > definitely does, and I know ebay just had Brad over for a talk of some
> > kind.
> >
> >
> > Very handy stuff. Shouldn't render apps useless when the plugin isn't
> > installed though, I'll look into it...
> >
> > On 8/16/06, andyhot <[EMAIL PROTECTED]> wrote:
> > >
> > > It's for persisting data in browser - similar to cookies but allow
> much
> > > more data
> > > From 100kb to whatever the user can allow...
> > >
> > > For the moment, no tacos and no tapestry component uses this.
> > >
> > > But i can imagine a new cool persistance strategy making use of
> this...
> > >
> > > Regarding disableFlashStorage: true, i've mentioned this on the
tacos
> > > list that
> > > one can safely use it...
> > >
> > > Jesse Kuhnert wrote:
> > > > I remember seeing a bunch of different messages on the dojo users
> list
> > > > about
> > > > this. I don't currently provide a config option for disabling
flash
> > > > storage
> > > > but I can add one.
> > > >
> > > > I'll ask Brad about the flash storage stuff in general to see
what's
> > up.
> > > >
> > > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > > >>
> > > >> Not sure if anyone else experiences this...I'm using Tapestry
4.0.2
> ,
> > > >> Tacos
> > > >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora
Core
> 5
> > > >> x86_64.
> > > >>
> > > >> It seems that by default, dojo requires Flash and on a browser
that
> > > >> doesn't
> > > >> have flash (Anything on 64-bit linux, thanks a lot
> adobe/macromedia),
> > > my
> > > >> site refuses to render at all.  Only after I added
> > disableFlashStorage:
> > > >> true
> > > >> to djconfig did it  render the page properly and allow me to use
my
> > > >> site.
> > > >>
> > > >> Is this how the default behavior should be?  And if so, can we
put
> > > >> this in
> > > >> the Wiki or FAQ for others like me so they don't have to search
> > > >> endlessly
> > > >> for an answer...I found one obscure reference on the dev list
that
> > > >> led me
> > > >> to
> > > >> this solution.
> > > >>
> > > >> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
> > > >>
> > > >>
> > > >> Thanks,
> > > >> Andrew Ofisher
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> > > --
> > > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> > > Tapestry / Tacos developer
> > > Open Source / J2EE Consulting
> > >
> > >
> > >
-
> > > 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.
> >
> >
>
>


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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.




Re: Flash and Tacos?

2006-08-16 Thread andyhot
Jesse, i also had the same issue (page rendered blank) in
Windows 2003 Server + IE6
when flash plugin was missing and (perhaps) security was set high

Jesse Kuhnert wrote:
> That IS weird. The 32 bit version of firefox is working fine for me on
> linux.
>
> The 64bit firefox browser also never had any problems loading dojo
> stuff for
> me. (when I used a 64 bit box for dev).
>
> Are you using the macromedia flash plugin or one of the generic (crappy)
> free ones provided with some distros?
>
> On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>>
>> Yea, it is really annoying to have to surf the net without a flash
>> plugin,
>> but not much I can do about it from within linux.  The 32bit version of
>> Firefox crashes with flash enabled viewing my site for some
>> reasonnot
>> sure if its a flash bug (which I'm betting on) or a Firefox bug.
>>
>> But yea, my main concern was that Firefox and Konqueror refused to
>> render
>> the page at all when the flash plugin was required (even though it
>> received
>> the page, and javascript console gave no errors).
>>
>>
>> On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>> >
>> > Yep...And once you figure out how to look at your local flash settings
>> > you'd
>> > be surprised at how many large corporations are already using it. BoA
>> > definitely does, and I know ebay just had Brad over for a talk of some
>> > kind.
>> >
>> >
>> > Very handy stuff. Shouldn't render apps useless when the plugin isn't
>> > installed though, I'll look into it...
>> >
>> > On 8/16/06, andyhot <[EMAIL PROTECTED]> wrote:
>> > >
>> > > It's for persisting data in browser - similar to cookies but allow
>> much
>> > > more data
>> > > From 100kb to whatever the user can allow...
>> > >
>> > > For the moment, no tacos and no tapestry component uses this.
>> > >
>> > > But i can imagine a new cool persistance strategy making use of
>> this...
>> > >
>> > > Regarding disableFlashStorage: true, i've mentioned this on the
>> tacos
>> > > list that
>> > > one can safely use it...
>> > >
>> > > Jesse Kuhnert wrote:
>> > > > I remember seeing a bunch of different messages on the dojo users
>> list
>> > > > about
>> > > > this. I don't currently provide a config option for disabling
>> flash
>> > > > storage
>> > > > but I can add one.
>> > > >
>> > > > I'll ask Brad about the flash storage stuff in general to see
>> what's
>> > up.
>> > > >
>> > > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>> > > >>
>> > > >> Not sure if anyone else experiences this...I'm using Tapestry
>> 4.0.2
>> ,
>> > > >> Tacos
>> > > >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora
>> Core
>> 5
>> > > >> x86_64.
>> > > >>
>> > > >> It seems that by default, dojo requires Flash and on a browser
>> that
>> > > >> doesn't
>> > > >> have flash (Anything on 64-bit linux, thanks a lot
>> adobe/macromedia),
>> > > my
>> > > >> site refuses to render at all.  Only after I added
>> > disableFlashStorage:
>> > > >> true
>> > > >> to djconfig did it  render the page properly and allow me to
>> use my
>> > > >> site.
>> > > >>
>> > > >> Is this how the default behavior should be?  And if so, can we
>> put
>> > > >> this in
>> > > >> the Wiki or FAQ for others like me so they don't have to search
>> > > >> endlessly
>> > > >> for an answer...I found one obscure reference on the dev list
>> that
>> > > >> led me
>> > > >> to
>> > > >> this solution.
>> > > >>
>> > > >> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
>> > > >>
>> > > >>
>> > > >> Thanks,
>> > > >> Andrew Ofisher
>> > > >>
>> > > >>
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
>> > > Tapestry / Tacos developer
>> > > Open Source / J2EE Consulting
>> > >
>> > >
>> > >
>> -
>> > > 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.
>> >
>> >
>>
>>
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



Re: toggle form display

2006-08-16 Thread Karthik N

you could also try using the disable informal parameter for some HTML input
elements.


something like this in the .html



and this in the .page
  
   

   

the isViewPage evaluates to true or false and makes the input  element
disabled.

of course this makes for a server roundtrip.

On 8/17/06, Matt Brock <[EMAIL PROTECTED]> wrote:




Will Norris wrote:
>
> I remember seeing a component in some other framework
> that would allow you to have a form that could be toggled to a read-
> only state.  This is not just making the input boxes disabled, but
> rather converting them to be normal text output (so you don't have to
> make an entirely separate page to have someone review their form
> inputs).

If you want the toggle to be performed without refreshing the client,
you'll
have to do it in Javascript.  If, on the other hand, you want a
conditional
render on some criteria, there are a couple of ways to do this.  The
first,
easiest, but most cumbersome way would be to wrap each form value in an
@If
component, where condition=true would render a @TextField, while a
condition=false would render an Insert.  For example:


   


   


This would require you to wrap each and every field with an if/else, which
could be cumbersome on a page with a lot of different fields.  The second
way to do this would be to create your own TextField component that takes
whatever condition you're testing for and renders either a form field, or
just the form value.  It would look something like this:

ToggleField.java:
---
public abstract class ToggleField extends BaseComponent {

/*
* Note, you can define your parameters here using the @Parameter
annotation,
or in the JWC file.
* I prefer the JWC file.

   @Parameter
   public abstract Boolean getCondition();

   @Parameter
   public abstract String getValue();
*/

}

ToggleField.jwc:
---

http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>


   
   


ToggleField.html:
---

   


   



Usage (inline in an HTML file)
---


Please forgive any syntactical errors, but that's the basic jist.
--
View this message in context:
http://www.nabble.com/toggle-form-display-tf2088143.html#a5843782
Sent from the Tapestry - User forum at Nabble.com.


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





--
Thanks, Karthik


Re: Flash and Tacos?

2006-08-16 Thread Jesse Kuhnert

That IS weird. The 32 bit version of firefox is working fine for me on
linux.

The 64bit firefox browser also never had any problems loading dojo stuff for
me. (when I used a 64 bit box for dev).

Are you using the macromedia flash plugin or one of the generic (crappy)
free ones provided with some distros?

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


Yea, it is really annoying to have to surf the net without a flash plugin,
but not much I can do about it from within linux.  The 32bit version of
Firefox crashes with flash enabled viewing my site for some reasonnot
sure if its a flash bug (which I'm betting on) or a Firefox bug.

But yea, my main concern was that Firefox and Konqueror refused to render
the page at all when the flash plugin was required (even though it
received
the page, and javascript console gave no errors).


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> Yep...And once you figure out how to look at your local flash settings
> you'd
> be surprised at how many large corporations are already using it. BoA
> definitely does, and I know ebay just had Brad over for a talk of some
> kind.
>
>
> Very handy stuff. Shouldn't render apps useless when the plugin isn't
> installed though, I'll look into it...
>
> On 8/16/06, andyhot <[EMAIL PROTECTED]> wrote:
> >
> > It's for persisting data in browser - similar to cookies but allow
much
> > more data
> > From 100kb to whatever the user can allow...
> >
> > For the moment, no tacos and no tapestry component uses this.
> >
> > But i can imagine a new cool persistance strategy making use of
this...
> >
> > Regarding disableFlashStorage: true, i've mentioned this on the tacos
> > list that
> > one can safely use it...
> >
> > Jesse Kuhnert wrote:
> > > I remember seeing a bunch of different messages on the dojo users
list
> > > about
> > > this. I don't currently provide a config option for disabling flash
> > > storage
> > > but I can add one.
> > >
> > > I'll ask Brad about the flash storage stuff in general to see what's
> up.
> > >
> > > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Not sure if anyone else experiences this...I'm using Tapestry 4.0.2
,
> > >> Tacos
> > >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core
5
> > >> x86_64.
> > >>
> > >> It seems that by default, dojo requires Flash and on a browser that
> > >> doesn't
> > >> have flash (Anything on 64-bit linux, thanks a lot
adobe/macromedia),
> > my
> > >> site refuses to render at all.  Only after I added
> disableFlashStorage:
> > >> true
> > >> to djconfig did it  render the page properly and allow me to use my
> > >> site.
> > >>
> > >> Is this how the default behavior should be?  And if so, can we put
> > >> this in
> > >> the Wiki or FAQ for others like me so they don't have to search
> > >> endlessly
> > >> for an answer...I found one obscure reference on the dev list that
> > >> led me
> > >> to
> > >> this solution.
> > >>
> > >> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
> > >>
> > >>
> > >> Thanks,
> > >> Andrew Ofisher
> > >>
> > >>
> > >
> > >
> >
> >
> > --
> > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> > -
> > 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.
>
>





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Yea, it is really annoying to have to surf the net without a flash plugin,
but not much I can do about it from within linux.  The 32bit version of
Firefox crashes with flash enabled viewing my site for some reasonnot
sure if its a flash bug (which I'm betting on) or a Firefox bug.

But yea, my main concern was that Firefox and Konqueror refused to render
the page at all when the flash plugin was required (even though it received
the page, and javascript console gave no errors).


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Yep...And once you figure out how to look at your local flash settings
you'd
be surprised at how many large corporations are already using it. BoA
definitely does, and I know ebay just had Brad over for a talk of some
kind.


Very handy stuff. Shouldn't render apps useless when the plugin isn't
installed though, I'll look into it...

On 8/16/06, andyhot <[EMAIL PROTECTED]> wrote:
>
> It's for persisting data in browser - similar to cookies but allow much
> more data
> From 100kb to whatever the user can allow...
>
> For the moment, no tacos and no tapestry component uses this.
>
> But i can imagine a new cool persistance strategy making use of this...
>
> Regarding disableFlashStorage: true, i've mentioned this on the tacos
> list that
> one can safely use it...
>
> Jesse Kuhnert wrote:
> > I remember seeing a bunch of different messages on the dojo users list
> > about
> > this. I don't currently provide a config option for disabling flash
> > storage
> > but I can add one.
> >
> > I'll ask Brad about the flash storage stuff in general to see what's
up.
> >
> > On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
> >>
> >> Not sure if anyone else experiences this...I'm using Tapestry 4.0.2,
> >> Tacos
> >> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core 5
> >> x86_64.
> >>
> >> It seems that by default, dojo requires Flash and on a browser that
> >> doesn't
> >> have flash (Anything on 64-bit linux, thanks a lot adobe/macromedia),
> my
> >> site refuses to render at all.  Only after I added
disableFlashStorage:
> >> true
> >> to djconfig did it  render the page properly and allow me to use my
> >> site.
> >>
> >> Is this how the default behavior should be?  And if so, can we put
> >> this in
> >> the Wiki or FAQ for others like me so they don't have to search
> >> endlessly
> >> for an answer...I found one obscure reference on the dev list that
> >> led me
> >> to
> >> this solution.
> >>
> >> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
> >>
> >>
> >> Thanks,
> >> Andrew Ofisher
> >>
> >>
> >
> >
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> -
> 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.




Re: XTile over SSL

2006-08-16 Thread Jesse Kuhnert

Yeah...Dojo is all over IO via iframes...(when you need it)

I'm still not too keen on using them since the mozilla js garbage collector
doesn't get run on iframe contents, but it's a nice way to do certain things
when you know you're going to throw the iframe node away soon-ish.

On 8/16/06, Matt Brock <[EMAIL PROTECTED]> wrote:




Jessek wrote:
>
> I actually ran into the same exact problem recently with a client which
is
> the only reason I was so quick with the iframe answer.  I don't see any
> references to iframes in XTile though, maybe Ralph was using them but
> decided to not update us on his solution?

The XTile listener doesn't use IFRAMES.  We're using it on our T4 app, and
I've become intimately familiar with the beast.  :)  Actually, IFRAMES
would
be a potential work-around, though I haven't used them in years (and
years...) since it seems like such a proprietary hack.  A lot of people
are
fearful of ActiveX controls and inadvertantly throw the AJAX-baby out with
the ActiveX bathwater when they disable AX objects in their security
settings: the IFRAMES hack can actually sidestep this.  The SAJAX library
uses this technique
(http://verens.com/archives/2005/08/14/sajax-without-activex/)

--
View this message in context:
http://www.nabble.com/XTile-over-SSL-tf2080949.html#a5844230
Sent from the Tapestry - User forum at Nabble.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.


Re: XTile over SSL

2006-08-16 Thread Matt Brock


Jessek wrote:
> 
> I actually ran into the same exact problem recently with a client which is
> the only reason I was so quick with the iframe answer.  I don't see any
> references to iframes in XTile though, maybe Ralph was using them but
> decided to not update us on his solution?

The XTile listener doesn't use IFRAMES.  We're using it on our T4 app, and
I've become intimately familiar with the beast.  :)  Actually, IFRAMES would
be a potential work-around, though I haven't used them in years (and
years...) since it seems like such a proprietary hack.  A lot of people are
fearful of ActiveX controls and inadvertantly throw the AJAX-baby out with
the ActiveX bathwater when they disable AX objects in their security
settings: the IFRAMES hack can actually sidestep this.  The SAJAX library
uses this technique
(http://verens.com/archives/2005/08/14/sajax-without-activex/)

-- 
View this message in context: 
http://www.nabble.com/XTile-over-SSL-tf2080949.html#a5844230
Sent from the Tapestry - User forum at Nabble.com.


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



Re: Flash and Tacos?

2006-08-16 Thread Jesse Kuhnert

Yep...And once you figure out how to look at your local flash settings you'd
be surprised at how many large corporations are already using it. BoA
definitely does, and I know ebay just had Brad over for a talk of some kind.


Very handy stuff. Shouldn't render apps useless when the plugin isn't
installed though, I'll look into it...

On 8/16/06, andyhot <[EMAIL PROTECTED]> wrote:


It's for persisting data in browser - similar to cookies but allow much
more data
From 100kb to whatever the user can allow...

For the moment, no tacos and no tapestry component uses this.

But i can imagine a new cool persistance strategy making use of this...

Regarding disableFlashStorage: true, i've mentioned this on the tacos
list that
one can safely use it...

Jesse Kuhnert wrote:
> I remember seeing a bunch of different messages on the dojo users list
> about
> this. I don't currently provide a config option for disabling flash
> storage
> but I can add one.
>
> I'll ask Brad about the flash storage stuff in general to see what's up.
>
> On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>>
>> Not sure if anyone else experiences this...I'm using Tapestry 4.0.2,
>> Tacos
>> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core 5
>> x86_64.
>>
>> It seems that by default, dojo requires Flash and on a browser that
>> doesn't
>> have flash (Anything on 64-bit linux, thanks a lot adobe/macromedia),
my
>> site refuses to render at all.  Only after I added disableFlashStorage:
>> true
>> to djconfig did it  render the page properly and allow me to use my
>> site.
>>
>> Is this how the default behavior should be?  And if so, can we put
>> this in
>> the Wiki or FAQ for others like me so they don't have to search
>> endlessly
>> for an answer...I found one obscure reference on the dev list that
>> led me
>> to
>> this solution.
>>
>> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
>>
>>
>> Thanks,
>> Andrew Ofisher
>>
>>
>
>


--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


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


Re: Flash and Tacos?

2006-08-16 Thread andyhot
It's for persisting data in browser - similar to cookies but allow much
more data
>From 100kb to whatever the user can allow...

For the moment, no tacos and no tapestry component uses this.

But i can imagine a new cool persistance strategy making use of this...

Regarding disableFlashStorage: true, i've mentioned this on the tacos
list that
one can safely use it...

Jesse Kuhnert wrote:
> I remember seeing a bunch of different messages on the dojo users list
> about
> this. I don't currently provide a config option for disabling flash
> storage
> but I can add one.
>
> I'll ask Brad about the flash storage stuff in general to see what's up.
>
> On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:
>>
>> Not sure if anyone else experiences this...I'm using Tapestry 4.0.2,
>> Tacos
>> (latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core 5
>> x86_64.
>>
>> It seems that by default, dojo requires Flash and on a browser that
>> doesn't
>> have flash (Anything on 64-bit linux, thanks a lot adobe/macromedia), my
>> site refuses to render at all.  Only after I added disableFlashStorage:
>> true
>> to djconfig did it  render the page properly and allow me to use my
>> site.
>>
>> Is this how the default behavior should be?  And if so, can we put
>> this in
>> the Wiki or FAQ for others like me so they don't have to search
>> endlessly
>> for an answer...I found one obscure reference on the dev list that
>> led me
>> to
>> this solution.
>>
>> Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...
>>
>>
>> Thanks,
>> Andrew Ofisher
>>
>>
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



Re: XTile over SSL

2006-08-16 Thread Jesse Kuhnert

I actually ran into the same exact problem recently with a client which is
the only reason I was so quick with the iframe answer.

I don't see any references to iframes in XTile though, maybe Ralph was using
them but decided to not update us on his solution?

On 8/16/06, Matt Brock <[EMAIL PROTECTED]> wrote:




Ralph Johnston wrote:
>
> However, we are having a problem with IE popping up a message about
secure
> and non-
> secure items on the page when we load the page using https. We are
> wondering how to stop this pop-up from showing but don't know where to
> start.

Is the webapp intra- or internet?  I only ask because it's very easy to
remove this annoying behavior by adding the webapp's domain to the trusted
sites in IE's security zone.
--
View this message in context:
http://www.nabble.com/XTile-over-SSL-tf2080949.html#a5843919
Sent from the Tapestry - User forum at Nabble.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.


Re: Flash and Tacos?

2006-08-16 Thread Jesse Kuhnert

I remember seeing a bunch of different messages on the dojo users list about
this. I don't currently provide a config option for disabling flash storage
but I can add one.

I'll ask Brad about the flash storage stuff in general to see what's up.

On 8/16/06, Andrew Ofisher <[EMAIL PROTECTED]> wrote:


Not sure if anyone else experiences this...I'm using Tapestry 4.0.2, Tacos
(latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core 5
x86_64.

It seems that by default, dojo requires Flash and on a browser that
doesn't
have flash (Anything on 64-bit linux, thanks a lot adobe/macromedia), my
site refuses to render at all.  Only after I added disableFlashStorage:
true
to djconfig did it  render the page properly and allow me to use my site.

Is this how the default behavior should be?  And if so, can we put this in
the Wiki or FAQ for others like me so they don't have to search endlessly
for an answer...I found one obscure reference on the dev list that led me
to
this solution.

Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...


Thanks,
Andrew Ofisher





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Tapestry 3 Iterating over a map.

2006-08-16 Thread Andrew Ofisher

First, is there a reason you have appAuthMap twice, or just a typo?

Second,
Try:

ognl:appAuthMap.entrySet()

ognl is trying to get the object with the key "entrySet" instead of calling
the method entrySet.

Hope this helps.

On 8/16/06, Mark Stang <[EMAIL PROTECTED]> wrote:


OK, I am spinning my wheels, what am I missing here?

Nothing prints out and no errors:





  
  

Help...

thanks,

Mark

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 2:25 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.

It should because a java.util.Set (the entrySet() method returns a Set) is
a
java.util.Collection.

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 3:57 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

This will work with a "Foreach"?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:53 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.

Well, you'd have to call map.entrySet() and for each entry in there, you'd
call entry.getKey() or entry.getValue() (they're of type Map.Entry).

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 3:48 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.

You can iterate over the entries and they have key/value properties.

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.

Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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





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






Re: popup LinkSubmit

2006-08-16 Thread Jesse Kuhnert

You'll probably have to change the forms target back to what it was
previously - after opening the popup..(I think it's called _self ? )

There's probably a more elegant way to do it in javascript but I'm just
reciting what I saw recently on another tap3 based project that did exactly
what you describe wanting. (using the target stuff, it didn't look pretty to
me but they weren't paying me to fix that ;) )

On 8/16/06, Mael Caldas <[EMAIL PROTECTED]> wrote:


The problem is that there are another links that submits the same form,
but
I don't want to pop up in these  another links. Just in one.

The case is, I have some Entities, listed by name, with links to edit,
remove e show details (Using AjaxDirectLink, like the flags on Tacos), and
a
link called "print", of course, to print, but, when the user click on
print
button, I need to present the information in another page, without
decorations, to make the details printable, and perform a kind of print
Preview, removing the Browsers features, (location bar, status, menu and
so
on).

With the DirectLink, is perfect, popup the window without the features,
but
I can't select the entity, and pass to the page to present the
information... I thought about one solution, by using the entity id on the
link parameter, and use the parameter to retrieve the entity from database
on the listener, and setup the page. But is not a good thing, once I
already
have all the entities on the memory...

Thanks for the suggestion

Mael


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> You can change the target of the form temporarilySomething like:
>
> 
>
> Something like that, you'll have to google the details...Just make sure
> you
> call IRequestCycle.activate() on the other page to be sure it gets
> rendered
> out to the popup.
>
> On 8/16/06, Mael Caldas <[EMAIL PROTECTED]> wrote:
> >
> > Hi!
> >
> > I need to submit a form clicking on a link on the selected entity,
pass
> > the
> > selected entity to a page, and present this page in a popup. So I want
> to
> > use a kind of popup LinkSubmit, but I only know how to do a popup link
> > with
> > DirectLink, using the PopupLinkRenderer...
> >
> > Any idea?
> >
> > Thanks!
> >
> > Mael
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Flash and Tacos?

2006-08-16 Thread Andrew Ofisher

Not sure if anyone else experiences this...I'm using Tapestry 4.0.2, Tacos
(latest from svn), and Firefox 1.5.0.6 and Konqueror on Fedora Core 5
x86_64.

It seems that by default, dojo requires Flash and on a browser that doesn't
have flash (Anything on 64-bit linux, thanks a lot adobe/macromedia), my
site refuses to render at all.  Only after I added disableFlashStorage: true
to djconfig did it  render the page properly and allow me to use my site.

Is this how the default behavior should be?  And if so, can we put this in
the Wiki or FAQ for others like me so they don't have to search endlessly
for an answer...I found one obscure reference on the dev list that led me to
this solution.

Also, is this how 4.1 acts too?  I haven't tried 4.1 out yet...


Thanks,
Andrew Ofisher


Re: XTile over SSL

2006-08-16 Thread Matt Brock


Ralph Johnston wrote:
> 
> However, we are having a problem with IE popping up a message about secure
> and non-
> secure items on the page when we load the page using https. We are
> wondering how to stop this pop-up from showing but don't know where to
> start.

Is the webapp intra- or internet?  I only ask because it's very easy to
remove this annoying behavior by adding the webapp's domain to the trusted
sites in IE's security zone.
-- 
View this message in context: 
http://www.nabble.com/XTile-over-SSL-tf2080949.html#a5843919
Sent from the Tapestry - User forum at Nabble.com.


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



Re: toggle form display

2006-08-16 Thread Matt Brock


Will Norris wrote:
> 
> I remember seeing a component in some other framework  
> that would allow you to have a form that could be toggled to a read- 
> only state.  This is not just making the input boxes disabled, but  
> rather converting them to be normal text output (so you don't have to  
> make an entirely separate page to have someone review their form  
> inputs).

If you want the toggle to be performed without refreshing the client, you'll
have to do it in Javascript.  If, on the other hand, you want a conditional
render on some criteria, there are a couple of ways to do this.  The first,
easiest, but most cumbersome way would be to wrap each form value in an @If
component, where condition=true would render a @TextField, while a
condition=false would render an Insert.  For example:


   


   


This would require you to wrap each and every field with an if/else, which
could be cumbersome on a page with a lot of different fields.  The second
way to do this would be to create your own TextField component that takes
whatever condition you're testing for and renders either a form field, or
just the form value.  It would look something like this:

ToggleField.java:
---
public abstract class ToggleField extends BaseComponent {

/*
* Note, you can define your parameters here using the @Parameter annotation,
or in the JWC file.
* I prefer the JWC file.

   @Parameter
   public abstract Boolean getCondition();

   @Parameter
   public abstract String getValue();
*/

}

ToggleField.jwc:
---

http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>


   
   


ToggleField.html:
---

   


   



Usage (inline in an HTML file)
---


Please forgive any syntactical errors, but that's the basic jist.
-- 
View this message in context: 
http://www.nabble.com/toggle-form-display-tf2088143.html#a5843782
Sent from the Tapestry - User forum at Nabble.com.


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



Re: Properties file export

2006-08-16 Thread Peter Dawn

sorry guys i wanna correct my statement. they will be able to re-start
tomcat manually from outside the web app. i provide a link which will
be a link to a batch file, which will perform the operation. so thats
taken care of.
the bit where i am stuck is, how to allow the user to modify the
properties file content. any ideas.

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



Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread andyhot
Looks like it can't find the pom.xml file in the current directory...
errr... i'm out of ideas...

Pedro Viegas wrote:
> Thanks Andy for your response.
> But unfortunatly I still get the same error of this MOJO dependency! :-(
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> 
>
> [INFO] Building Maven Default Project
> [INFO]task-segment: [compile]
> [INFO]
> 
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Cannot execute mojo: resources. It requires a project with an
> existing pom.xml, but the build is not using one.
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute
> mojo:
> resources. It requires a project with an existing pom.xml, but the
> build is
> not using one.
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:559)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
>
> (DefaultLifecycleExecutor.java:475)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:454)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
>
> (DefaultLifecycleExecutor.java:306)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
> :430)
>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute
> mojo: resources. It requires a project with an existing pom.xml, but the
> build is not using one.
>at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:339)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
>... 16 more
> [INFO]
> 
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Aug 17 01:06:01 BST 2006
> [INFO] Final Memory: 2M/3M
> [INFO]
> 
>
>
> Do you know how to solve this?
>
> Regards,
>
>>
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

Thanks Andy for your response.
But unfortunatly I still get the same error of this MOJO dependency! :-(

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [compile]
[INFO]

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo:
resources. It requires a project with an existing pom.xml, but the build is
not using one.
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute
mojo: resources. It requires a project with an existing pom.xml, but the
build is not using one.
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:339)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
   ... 16 more
[INFO]

[INFO] Total time: < 1 second
[INFO] Finished at: Thu Aug 17 01:06:01 BST 2006
[INFO] Final Memory: 2M/3M
[INFO]



Do you know how to solve this?

Regards,


On 8/17/06, andyhot <[EMAIL PROTECTED]> wrote:


- create a folder for your app
- copy there (and make changes) the attached pom.xml
- create subfolders src/main/java, src/main/webapp (and if you want
src/test/java )
- mvn compile, it will download all deps
- mvn eclipse:eclipse will create eclipse files


4.0.0
my.group
my-project
war
0.1.1-SNAPSHOT
My description
My project name



org.apache.tapestry
tapestry-framework
4.1.1-SNAPSHOT
issue

org.apache.tapestry
tapestry-contrib
4.1.1-SNAPSHOT


org.apache.tapestry
tapestry-annotations
4.1.1-SNAPSHOT





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository



tapestry.javaforge
http://howardlewisship.com/repository





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository



tapestry.javaforge
http://howardlewisship.com/repository






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





--
Pedro Viegas


RE: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Mark Stang
There is a free maven book.  It start you out with installing maven and then 
building a simple app.

Better Builds with Maven. It is available as a free download (.pdf).

However, is he trying to build tapestry with maven or his own app?

Which problem are we trying to solve :-)?

regards,

Mark


-Original Message-
From: andyhot [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 5:54 PM
To: Tapestry users
Subject: Re: How to setup 4.1 MAVEN2 snapshot
 
- create a folder for your app
- copy there (and make changes) the attached pom.xml
- create subfolders src/main/java, src/main/webapp (and if you want
src/test/java )
- mvn compile, it will download all deps
- mvn eclipse:eclipse will create eclipse files


4.0.0
my.group
my-project
war
0.1.1-SNAPSHOT
My description
My project name



org.apache.tapestry
tapestry-framework
4.1.1-SNAPSHOT
issue

org.apache.tapestry
tapestry-contrib
4.1.1-SNAPSHOT


org.apache.tapestry
tapestry-annotations
4.1.1-SNAPSHOT





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository


tapestry.javaforge
http://howardlewisship.com/repository





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository


tapestry.javaforge
http://howardlewisship.com/repository






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




dojoContainerId not being read by shell component

2006-08-16 Thread Pedro Viegas

Giving a test drive at the Tap 4.1 I found that the shell component always
uses the default value for the dojoContainerId.
Even if we supply another as in...



The code that gets generated is:

djConfig = { isDebug: true,
debugContainerId:'debug',
baseRelativePath:"http://localhost/delegateIt/app?service=asset&path=%2Fdojo%2F";,
preventBackButtonFix: false, parseWidgets: false }; 
http://localhost/delegateIt/app?service=asset&path=%2Fdojo%2Fdojo.js";>http://localhost/delegateIt/app?service=asset&path=%2Ftapestry%2Fcore.js";>
dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("DEBUG"));

Am I missing something?


--
Pedro Viegas


Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread andyhot
- create a folder for your app
- copy there (and make changes) the attached pom.xml
- create subfolders src/main/java, src/main/webapp (and if you want
src/test/java )
- mvn compile, it will download all deps
- mvn eclipse:eclipse will create eclipse files


4.0.0
my.group
my-project
war
0.1.1-SNAPSHOT
My description
My project name



org.apache.tapestry
tapestry-framework
4.1.1-SNAPSHOT
issue

org.apache.tapestry
tapestry-contrib
4.1.1-SNAPSHOT


org.apache.tapestry
tapestry-annotations
4.1.1-SNAPSHOT





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository


tapestry.javaforge
http://howardlewisship.com/repository





apache.snapshots
http://people.apache.org/repo/m2-snapshot-repository


tapestry.javaforge
http://howardlewisship.com/repository






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



Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Konstantin Ignatyev
Rant:

Unfortunately Maven archichitecture and practices are
not allow repeatable builds because there are ranges
in the version specifications. And that makes build to
depend on current repository content and makes it
unrepeatable.

IMO it would be much nicer if Ant + Ivy was used as
build system.

--- Pedro Viegas <[EMAIL PROTECTED]> wrote:

> Can anybody give the proper steps to get this
> running?
> 
> Thanks,
> 
> On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
> >
> > http://mojo.codehaus.org/
> >
> > OK, I think this is it, what do I have to do?
> There's a bunch of plugins
> > out there.
> > This looks like a trail of breadcrumbs... :-S
> >
> >
> > On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]>
> wrote:
> > >
> > > OK, I think I get it, I use the most recent pom
> I find here right.
> > > OK, tried the:
> > >
> > > tapestry-project-4.1.1-20060815.022306-17.pom
> > >
> > > and issued a "mvn package -e"
> > >
> > > The error was...
> > >
> > > "+ Error stacktraces are turned on.
> > > [INFO] Scanning for projects...
> > > [INFO]
> > >
>

> > > [INFO] Building Maven Default Project
> > > [INFO]task-segment: [package]
> > > [INFO]
> > >
>

> > >
> > > [INFO]
> > >
>

> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
>

> > > [INFO] Cannot execute mojo: resources. It
> requires a project with an
> > > existing pom.xml, but the build is not using
> one.
> > > [INFO]
> > >
>

> > > [INFO] Trace
> > >
>
org.apache.maven.lifecycle.LifecycleExecutionException:
> Cannot execute
> > > mojo: resources. It requires a project with an
> existing pom.xml, but the
> > > build is not using one.
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:559)
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
> > > DefaultLifecycleExecutor.java:475)
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> > > DefaultLifecycleExecutor.java:454)
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
> > > DefaultLifecycleExecutor.java:306)
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > > DefaultLifecycleExecutor.java:273)
> > > at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (
> > > DefaultLifecycleExecutor.java:140)
> > > at
>
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> > > :322)
> > > at
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> > > at org.apache.maven.cli.MavenCli.main
> (MavenCli.java:256)
> > > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > > at
> sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke (
> > > DelegatingMethodAccessorImpl.java:25)
> > > at
> java.lang.reflect.Method.invoke(Method.java:585)
> > > at
> org.codehaus.classworlds.Launcher.launchEnhanced(
> > > Launcher.java:315)
> > > at
> org.codehaus.classworlds.Launcher.launch
> (Launcher.java:255)
> > > at
> org.codehaus.classworlds.Launcher.mainWithExitCode(
> > > Launcher.java:430)
> > > at
>
org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > Caused by:
> org.apache.maven.plugin.MojoExecutionException :
> Cannot
> > > execute mojo: resources. It requires a project
> with an existing pom.xml,
> > > but the build is not using one.
> > > at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> > > DefaultPluginManager.java:339)
> > > at
> > >
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> > > DefaultLifecycleExecutor.java:534)
> > > ... 16 more
> > > [INFO]
> > >
>

> > > [INFO] Total time: 1 second
> > > [INFO] Finished at: Wed Aug 16 23:02:27 BST 2006
> > > [INFO] Final Memory: 2M/4M
> > > [INFO]
> > >
>
"
> > >
> > > mojo:resources? A Missing lib?
> > >
> > >
> > >
> > > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED] >
> wrote:
> > > >
> > > > No, you don't ~have~ to use maven. (And
> certainly don't need to
> > > > compile
> > > > tapestry even if you do).
> > > >
> > > >
>
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/
> > > >
> > > >
> > > > On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]>
> wrote:
> > > > >
> > > > > Sorry Jesse, i'm re

Re: popup LinkSubmit

2006-08-16 Thread Mael Caldas

The problem is that there are another links that submits the same form, but
I don't want to pop up in these  another links. Just in one.

The case is, I have some Entities, listed by name, with links to edit,
remove e show details (Using AjaxDirectLink, like the flags on Tacos), and a
link called "print", of course, to print, but, when the user click on print
button, I need to present the information in another page, without
decorations, to make the details printable, and perform a kind of print
Preview, removing the Browsers features, (location bar, status, menu and so
on).

With the DirectLink, is perfect, popup the window without the features, but
I can't select the entity, and pass to the page to present the
information... I thought about one solution, by using the entity id on the
link parameter, and use the parameter to retrieve the entity from database
on the listener, and setup the page. But is not a good thing, once I already
have all the entities on the memory...

Thanks for the suggestion

Mael


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


You can change the target of the form temporarilySomething like:



Something like that, you'll have to google the details...Just make sure
you
call IRequestCycle.activate() on the other page to be sure it gets
rendered
out to the popup.

On 8/16/06, Mael Caldas <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I need to submit a form clicking on a link on the selected entity, pass
> the
> selected entity to a page, and present this page in a popup. So I want
to
> use a kind of popup LinkSubmit, but I only know how to do a popup link
> with
> DirectLink, using the PopupLinkRenderer...
>
> Any idea?
>
> Thanks!
>
> Mael
>
>


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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.




Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

Can anybody give the proper steps to get this running?

Thanks,

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:


http://mojo.codehaus.org/

OK, I think this is it, what do I have to do? There's a bunch of plugins
out there.
This looks like a trail of breadcrumbs... :-S


On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>
> OK, I think I get it, I use the most recent pom I find here right.
> OK, tried the:
>
> tapestry-project-4.1.1-20060815.022306-17.pom
>
> and issued a "mvn package -e"
>
> The error was...
>
> "+ Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] Building Maven Default Project
> [INFO]task-segment: [package]
> [INFO]
> 
>
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Cannot execute mojo: resources. It requires a project with an
> existing pom.xml, but the build is not using one.
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute
> mojo: resources. It requires a project with an existing pom.xml, but the
> build is not using one.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:559)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
> DefaultLifecycleExecutor.java:475)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:454)
> at
> 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
> DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (
> DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke (
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(
> Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException : Cannot
> execute mojo: resources. It requires a project with an existing pom.xml,
> but the build is not using one.
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:339)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
> ... 16 more
> [INFO]
> 
> [INFO] Total time: 1 second
> [INFO] Finished at: Wed Aug 16 23:02:27 BST 2006
> [INFO] Final Memory: 2M/4M
> [INFO]
> "
>
> mojo:resources? A Missing lib?
>
>
>
> On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED] > wrote:
> >
> > No, you don't ~have~ to use maven. (And certainly don't need to
> > compile
> > tapestry even if you do).
> >
> > http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/
> >
> >
> > On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
> > >
> > > Sorry Jesse, i'm really a newbie in Maven.
> > > I had checked out the maven site and get Maven installed and
> > working.
> > > I checked the getting started section and saw how to start creating
> > a
> > > project, but do a really have to maven enable my project just to get
> > the
> > > 4.1.1-SNAPSHOT and compile it to get the most recent JAR files?
> > >
> > > The pom file in the "
> > > http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/ "
> > > doesn't work since maven doesn't know witch repository to search
> > for.
> > > Accordingly to http://tapestry.apache.org/tapestry4.1/download.htmlit's
> > > the
> > > " http://people.apache.org/repo/m2-snapshot-repository/";, and
> > currently i'm
> > > searching where to put this reference in.
> > > Isn't there a ready to go configuration for this? Sorry if i'm just
> > being
> > > an
> > > anoying maven newbie with silly

RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang
OK, I am spinning my wheels, what am I missing here?

Nothing prints out and no errors:





  
  

Help...

thanks,

Mark

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 2:25 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
It should because a java.util.Set (the entrySet() method returns a Set) is a
java.util.Collection.

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:57 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

This will work with a "Foreach"?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:53 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Well, you'd have to call map.entrySet() and for each entry in there, you'd
call entry.getKey() or entry.getValue() (they're of type Map.Entry).

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:48 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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





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




Re: Properties file export

2006-08-16 Thread andyhot
Peter Dawn wrote:
There are other ways. For instance, see
http://wiki.apache.org/tapestry/UsingCustomResourceSource

> ok. all i want to do is, i want to provide the user to be able to
> modify the text displayed on my web page. so in order to do that they
> would need to modify the info within the properties file and re-start
> the web app. now the question is how do we do this. any ideas. and i
> want to do everything from within the web app and nothing external to
> it (to the least possible extent)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



Re: Properties file export

2006-08-16 Thread Mael Caldas

Hi Peter,

I think this kind of solution, the user restarting the app, is, at least, a
little weird, but if you really want to do this, I thought this:

Using tomcat as a container example:

- Make the server manager app to be accessed by the users.
- Give the permission to the user access the manager application. (For
example, if you use LDAP as your user database, configure the realm on
server.xml to use your LDAP database, and put the user on manager group. Or
another group that can use the manager application)
- Make a link on your application pointing to the restart URL of your
container manager application. Like
http://www.yourhost.com/manager/html/reload?path=/yourapp

The problem is that the user will be redirected to the container manager
restart confirmation page... you can find a way to bring him back to your
application, sending a request to the restart URL, and then redirecting to
your app, using javascript, or something like that, but this I don't know
how to do..

I can't think another solution because the container is the one who manage
the applications, deploying, restarting and so on...

[]'s

Mael




On 8/16/06, Peter Dawn <[EMAIL PROTECTED]> wrote:


ok. all i want to do is, i want to provide the user to be able to
modify the text displayed on my web page. so in order to do that they
would need to modify the info within the properties file and re-start
the web app. now the question is how do we do this. any ideas. and i
want to do everything from within the web app and nothing external to
it (to the least possible extent)

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




Re: need annotation enhancement help

2006-08-16 Thread Jesse Kuhnert

There's also the secondary enhancement workers ...Maybe in there?

Sounds like one of the existing annotations is going to get in your way
either way, but maybe...

On 8/16/06, Dan Adams <[EMAIL PROTECTED]> wrote:


Okay, so the problem I've got is that my worker is run before the other
workers that add the persistent property. so when the enhancement is
run, i get javassist compile errors because the functions i need don't
exist yet (even though they will later). anyone have any suggestions on
how I can add a persistent property in my annotation worker? is there
some way of having my enhancement actually compiled after or at the same
time as the other enhancement?

one possible solution i thought might work would be to register 2
annotation workers for the same annotation and split up the work but i
don't think that will work.

On Wed, 2006-08-16 at 17:00 -0400, Dan Adams wrote:
> I have an annotation i'm working on (this isn't my first one and i'm
> almost done with this one) where I need to add a persistent property and
> use it in my enhanced code. What's the best way of doing this? I've been
> digging around the T4 sources but haven't been able to find an answer to
> this. So far I have:
>
>   String idField = propertyName + "Id";
>   IPropertySpecification pspec = new
PropertySpecification();
>   pspec.setName(idField);
>   pspec.setPersistence("session");
>   pspec.setLocation(location);
>   pspec.setInitialValue(null);
>   spec.addPropertySpecification(pspec);
>
> then i get the getter method name with:
>   String idGetter = op.getAccessorMethodName(idField);
>
> but at runtime i get the javassist exception "[source error] Method
> setWidgetId not found in ..." Any ideas?
>
--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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


Re: need annotation enhancement help

2006-08-16 Thread Dan Adams
Okay, so the problem I've got is that my worker is run before the other
workers that add the persistent property. so when the enhancement is
run, i get javassist compile errors because the functions i need don't
exist yet (even though they will later). anyone have any suggestions on
how I can add a persistent property in my annotation worker? is there
some way of having my enhancement actually compiled after or at the same
time as the other enhancement?

one possible solution i thought might work would be to register 2
annotation workers for the same annotation and split up the work but i
don't think that will work.

On Wed, 2006-08-16 at 17:00 -0400, Dan Adams wrote:
> I have an annotation i'm working on (this isn't my first one and i'm
> almost done with this one) where I need to add a persistent property and
> use it in my enhanced code. What's the best way of doing this? I've been
> digging around the T4 sources but haven't been able to find an answer to
> this. So far I have:
> 
>   String idField = propertyName + "Id";
>   IPropertySpecification pspec = new PropertySpecification();
>   pspec.setName(idField);
>   pspec.setPersistence("session");
>   pspec.setLocation(location);
>   pspec.setInitialValue(null);
>   spec.addPropertySpecification(pspec);
> 
> then i get the getter method name with:
>   String idGetter = op.getAccessorMethodName(idField);
> 
> but at runtime i get the javassist exception "[source error] Method
> setWidgetId not found in ..." Any ideas?
> 
-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: popup LinkSubmit

2006-08-16 Thread Jesse Kuhnert

You can change the target of the form temporarilySomething like:



Something like that, you'll have to google the details...Just make sure you
call IRequestCycle.activate() on the other page to be sure it gets rendered
out to the popup.

On 8/16/06, Mael Caldas <[EMAIL PROTECTED]> wrote:


Hi!

I need to submit a form clicking on a link on the selected entity, pass
the
selected entity to a page, and present this page in a popup. So I want to
use a kind of popup LinkSubmit, but I only know how to do a popup link
with
DirectLink, using the PopupLinkRenderer...

Any idea?

Thanks!

Mael





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Javascript enabling/disabling validated fields

2006-08-16 Thread Jesse Kuhnert

Look at the "Dojo validation profiles" section of this page:

http://tapestry.apache.org/tapestry4.1/javascript/form.html

I haven't added direct support for it (~yet~..it's a JIRA issue though), but
having it check for something like what you described would be covered by
the "dependencies" property.

You can also either add your own custom javascript validation profile to the
client side form (in addition to the profile tapestry sets up for you.)

You can also implement ValidatableFieldExtension in your component directly
(
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/form/ValidatableFieldExtension.html)
if you would like to override how an existing validator is configured...

There are many many  possibilities, but quickly adding in to your client
side profile via the client side api call "tapestry.form.registerProfile(form,
profile)" is probably the easiest thing to do. (also covered at
http://tapestry.apache.org/tapestry4.1/javascript/form.html)


On 8/16/06, Wes Bramhall <[EMAIL PROTECTED]> wrote:



I've spent the better part of two days attempting to have fields with
validators enabled and disabled through javascript and having it work.

Here's the situation:

I have a form with several fields on it. They are always visible and
required. There is a checkbox that, when clicked, uses javascript to
show another textfield. I want this textfield to be required, using the
required validator. The problem is that I only want it to be validated
or even submitted if the user clicks the checkbox. By default, the field
is disabled. Even if javascript enables the field, it never gets
validated and is always null in my listener. If the field is enabled by
default and I use javascript to disable the field, it always gets
validated, even though it is disabled.

Show Field




The fieldCheckedJavascript toggles the display value of the fieldDiv to
show/hide the field. It also toggles the disabled property of the
textfield so that it is disabled when hidden and enabled when in view.
The required validator never validates the field, regardless of the
state. If I remove the disabled by default, then the field is always
required, even if set to disabled with the javascript.

I could use some ideas, or let me know if this isn't possible in T4.

Thanks,
-Wes Bramhall

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


popup LinkSubmit

2006-08-16 Thread Mael Caldas

Hi!

I need to submit a form clicking on a link on the selected entity, pass the
selected entity to a page, and present this page in a popup. So I want to
use a kind of popup LinkSubmit, but I only know how to do a popup link with
DirectLink, using the PopupLinkRenderer...

Any idea?

Thanks!

Mael


Re: Properties file export

2006-08-16 Thread Peter Dawn

ok. all i want to do is, i want to provide the user to be able to
modify the text displayed on my web page. so in order to do that they
would need to modify the info within the properties file and re-start
the web app. now the question is how do we do this. any ideas. and i
want to do everything from within the web app and nothing external to
it (to the least possible extent)

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



Javascript enabling/disabling validated fields

2006-08-16 Thread Wes Bramhall

I've spent the better part of two days attempting to have fields with
validators enabled and disabled through javascript and having it work.

Here's the situation:

I have a form with several fields on it. They are always visible and
required. There is a checkbox that, when clicked, uses javascript to
show another textfield. I want this textfield to be required, using the
required validator. The problem is that I only want it to be validated
or even submitted if the user clicks the checkbox. By default, the field
is disabled. Even if javascript enables the field, it never gets
validated and is always null in my listener. If the field is enabled by
default and I use javascript to disable the field, it always gets
validated, even though it is disabled.

Show Field




The fieldCheckedJavascript toggles the display value of the fieldDiv to
show/hide the field. It also toggles the disabled property of the
textfield so that it is disabled when hidden and enabled when in view.
The required validator never validates the field, regardless of the
state. If I remove the disabled by default, then the field is always
required, even if set to disabled with the javascript.

I could use some ideas, or let me know if this isn't possible in T4.

Thanks,
-Wes Bramhall

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



Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

http://mojo.codehaus.org/

OK, I think this is it, what do I have to do? There's a bunch of plugins out
there.
This looks like a trail of breadcrumbs... :-S

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:


OK, I think I get it, I use the most recent pom I find here right.
OK, tried the:

tapestry-project-4.1.1-20060815.022306-17.pom

and issued a "mvn package -e"

The error was...

"+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [package]
[INFO]


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute
mojo: resources. It requires a project with an existing pom.xml, but the
build is not using one.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(
DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch (Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(
Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException : Cannot execute
mojo: resources. It requires a project with an existing pom.xml, but the
build is not using one.
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:339)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 16 more
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 16 23:02:27 BST 2006
[INFO] Final Memory: 2M/4M
[INFO]
"

mojo:resources? A Missing lib?



On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> No, you don't ~have~ to use maven. (And certainly don't need to compile
> tapestry even if you do).
>
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/
>
>
> On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
> >
> > Sorry Jesse, i'm really a newbie in Maven.
> > I had checked out the maven site and get Maven installed and working.
> > I checked the getting started section and saw how to start creating a
> > project, but do a really have to maven enable my project just to get
> the
> > 4.1.1-SNAPSHOT and compile it to get the most recent JAR files?
> >
> > The pom file in the "
> > http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/";
> > doesn't work since maven doesn't know witch repository to search for.
> > Accordingly to http://tapestry.apache.org/tapestry4.1/download.htmlit's
> > the
> > " http://people.apache.org/repo/m2-snapshot-repository/";, and
> currently i'm
> > searching where to put this reference in.
> > Isn't there a ready to go configuration for this? Sorry if i'm just
> being
> > an
> > anoying maven newbie with silly first day questions! :-S
> >
> > I'll keep searching but if someone can give a jumpstart in this it
> would
> > help...
> >
> > Thanks,
> >
> > On 8/16/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:
> > >
> > > This page provides some help,
> > > http://tapestry.apache.org/tapestry4.1/download.html .
> > >
> > > For anything else you'll probably have to ei

RE: Unable to construct service tapestry.multipart.ServletMultipartDecoder

2006-08-16 Thread Andrés Nates
Hello Jesse, I'm have put this version of jars

tapestry-portlet-4.0.2.jar
tapestry-4.0.2.jar
tapestry-annotations-4.0.2.jar
tapestry-contrib-4.0.2.jar
commons-codec-1.3.jar
commons-logging-1.0.4.jar
commons-fileupload-1.1.jar
commons-io-1.2-jar
ognl-2.6.7.jar
oro-2.0.8.jar
hivemind-1.1.1.jar
hivemind-lib-1.1.1.jar


But the error still appear


-Mensaje original-
De: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 16 de Agosto de 2006 04:37 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder

You need fileupload-1.1..

http://tapestry.apache.org/tapestry4/dependencies.html

On 8/16/06, Andrés Nates <[EMAIL PROTECTED]> wrote:
>
> I'm have this version of jar
>
> tapestry-4.0.2
> hivemind-1.1
> hivemind-lib-1.1
> commons-fileupload-1.0
>
> and the file Hivemind.xml look this:
>
> 
> 
>  interface="org.apache.tapestry.engine.IEngineService">
> 
> 
>  value="service:tapestry.url.LinkFactory"/>
> 
> 
> 
>  configuration-id="tapestry.services.ApplicationServices">
>  object="service:com.ttdev.album.ImageService"/>
> 
> 
>  service="page"/>
>  object="instance:com.ttdev.album.ImageServiceEncoder"/>
> 
> 
>  class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=-1"
> model="threaded" />
> 
> 
>
>
> -Mensaje original-
> De: Ryan Holmes [mailto:[EMAIL PROTECTED]
> Enviado el: Miércoles, 16 de Agosto de 2006 03:57 p.m.
> Para: Tapestry users
> Asunto: Re: Unable to construct service
> tapestry.multipart.ServletMultipartDecoder
>
> IIRC, the name of that service changed between Tapestry 4.0 and
> 4.0.1, but your stacktrace looks correct (well, as correct as a
> stacktrace can be).
>
> What versions of the following jars do you have:  tapestry, hivemind,
> hivemind-lib and commons-fileupload?
>
> Also, are you specifying a maximum upload size in your hivemodule.xml
> file? It will look something like this:
>
> id="tapestry.multipart.ServletMultipartDecoder">
>  
> class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=50
> "
>model="threaded" />
>
>
> If so, copy and paste that into your response.
>
> -Ryan
>
> On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:
>
> > When I'm run de example of the component upload, this example has a
> > basic
> > upload component for images (jpeg).  This is the error message
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > org.apache.hivemind.ApplicationRuntimeException: Unable to
> > construct service
> > tapestry.multipart.ServletMultipartDecoder: Could not load class
> > org.apache.tapestry.multipart.MultipartDecoderImpl from
> > WebappClassLoader
> >   delegate: false
> >   repositories:
> > /WEB-INF/classes/
> > --> Parent Classloader:
> > [EMAIL PROTECTED]
> > : org/apache/commons/fileupload/servlet/ServletFileUpload
> >
> > org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.constructSe
> > rviceF
> > orCurrentThread(ThreadedServiceModel.java:186)
> >
> > org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServiceI
> > mpleme
> > ntationForCurrentThread(ThreadedServiceModel.java:157)
> >
> > $ServletMultipartDecoder_10d0ea93c7e._service
> > ($ServletMultipartDecoder_10d0e
> > a93c7e.java)
> >
> > $ServletMultipartDecoder_10d0ea93c7e.cleanup
> > ($ServletMultipartDecoder_10d0ea
> > 93c7e.java)
> >
> > $ServletMultipartDecoder_10d0ea93c7f.cleanup
> > ($ServletMultipartDecoder_10d0ea
> > 93c7f.java)
> >
> > org.apache.tapestry.multipart.MultipartDecoderFilter.service
> > (MultipartDecode
> > rFilter.java:57)
> >
> > $ServletRequestServicerFilter_10d0ea93cbe.service
> > ($ServletRequestServicerFil
> > ter_10d0ea93cbe.java)
> >
> > $ServletRequestServicer_10d0ea93cc6.service
> > ($ServletRequestServicer_10d0ea93
> > cc6.java)
> >
> > org.apache.tapestry.services.impl.SetupRequestEncoding.service
> > (SetupRequestE
> > ncoding.java:53)
> >
> > $ServletRequestServicerFilter_10d0ea93cc2.service
> > ($ServletRequestServicerFil
> > ter_10d0ea93cc2.java)
> >
> > $ServletRequestServicer_10d0ea93cc6.service
> > ($ServletRequestServicer_10d0ea93
> > cc6.java)
> >
> > $ServletRequestServicer_10d0ea93cb8.service
> > ($ServletRequestServicer_10d0ea93
> > cb8.java)
> >
> > org.apache.tapestry.ApplicationServlet.doService
> > (ApplicationServlet.java:123
> > )
> >
> > org.apache.tapestry.ApplicationServlet.doPost
> > (ApplicationServlet.java:168)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
> >
> >
> >
> > Anybody know how to fix this error ?
> >
> >
> >
> >
> >
> >
> >
> > Cordialmente,
> > ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> > ANDRÉS NATES M.
> > Director de implantación e infraestructura.
> > Nuevos Med

Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

OK, I think I get it, I use the most recent pom I find here right.
OK, tried the:

tapestry-project-4.1.1-20060815.022306-17.pom

and issued a "mvn package -e"

The error was...

"+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [package]
[INFO]

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo:
resources. It requires a project with an existing pom.xml, but the build is
not using one.
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot execute
mojo: resources. It requires a project with an existing pom.xml, but the
build is not using one.
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:339)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
   ... 16 more
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Wed Aug 16 23:02:27 BST 2006
[INFO] Final Memory: 2M/4M
[INFO]
"

mojo:resources? A Missing lib?


On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


No, you don't ~have~ to use maven. (And certainly don't need to compile
tapestry even if you do).

http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>
> Sorry Jesse, i'm really a newbie in Maven.
> I had checked out the maven site and get Maven installed and working.
> I checked the getting started section and saw how to start creating a
> project, but do a really have to maven enable my project just to get the
> 4.1.1-SNAPSHOT and compile it to get the most recent JAR files?
>
> The pom file in the "
> http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/";
> doesn't work since maven doesn't know witch repository to search for.
> Accordingly to http://tapestry.apache.org/tapestry4.1/download.html it's
> the
> "http://people.apache.org/repo/m2-snapshot-repository/";, and currently
i'm
> searching where to put this reference in.
> Isn't there a ready to go configuration for this? Sorry if i'm just
being
> an
> anoying maven newbie with silly first day questions! :-S
>
> I'll keep searching but if someone can give a jumpstart in this it would
> help...
>
> Thanks,
>
> On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> >
> > This page provides some help,
> > http://tapestry.apache.org/tapestry4.1/download.html.
> >
> > For anything else you'll probably have to either go to
maven.apache.orgor
> > look at the pom.xml files setup in tapestry already. (
> > http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/)
> >
> > On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi there,
> > >
> > > Been hearing a lot about using MAVEN2 to get the 4.1-SNAPSHOT of
> > tapestr

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-16 Thread Jesse Kuhnert

Oh...I added the updateComponents/async/etc to the Form component the other
day. Documentation has been updated as well..

(Still haven't done it to the submit type components yet)

On 8/16/06, Denis Souza <[EMAIL PROTECTED]> wrote:


While, on the topic, I don't know if this might be related but I'm still
having trouble with ajax forms. Take the following example:



   
   



   


The page is still fully reloaded but the listener gets called as it
should.
Same thing with the listener/action parameter on the submit button.
It only happens with forms. DirecLink works great.

Am I forgetting something? Any ideas?

Thanks,
Denis

-Original Message-
From: Josh Long [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 16 de agosto de 2006 16:54
To: Tapestry users
Subject: Re: Submit doesnt tag or select when the form is submitted via
ajax

Yay JIRA and Jesse!

Um... the bug URL is https://issues.apache.org/jira/browse/TAPESTRY-1069

Thanks again,

Josh

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> HmmSounds like a JIRA worthy bug. (The fix is very easy though..I
think?
> ...will know later)
>
> On 8/16/06, Josh Long <[EMAIL PROTECTED]> wrote:
> >
> > Im noticing that the  @Submit doesnt tag or select anything when the
> > form is submitted via ajax (ie, async = true, updateComponents =
> > "foo", etc)..
> >
> > Anyone else have this problem?
> >
> > Any workarounds?
> >
> > Peace,
> > 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.
>
>

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





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


RE: Submit doesnt tag or select when the form is submitted via ajax

2006-08-16 Thread Denis Souza
While, on the topic, I don't know if this might be related but I'm still
having trouble with ajax forms. Take the following example:



   
   



   


The page is still fully reloaded but the listener gets called as it should.
Same thing with the listener/action parameter on the submit button.
It only happens with forms. DirecLink works great.

Am I forgetting something? Any ideas?

Thanks,
Denis

-Original Message-
From: Josh Long [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 16 de agosto de 2006 16:54
To: Tapestry users
Subject: Re: Submit doesnt tag or select when the form is submitted via ajax

Yay JIRA and Jesse!

Um... the bug URL is https://issues.apache.org/jira/browse/TAPESTRY-1069

Thanks again,

Josh

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> HmmSounds like a JIRA worthy bug. (The fix is very easy though..I
think?
> ...will know later)
>
> On 8/16/06, Josh Long <[EMAIL PROTECTED]> wrote:
> >
> > Im noticing that the  @Submit doesnt tag or select anything when the
> > form is submitted via ajax (ie, async = true, updateComponents =
> > "foo", etc)..
> >
> > Anyone else have this problem?
> >
> > Any workarounds?
> >
> > Peace,
> > 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.
>
>

-
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: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Jesse Kuhnert

No, you don't ~have~ to use maven. (And certainly don't need to compile
tapestry even if you do).

http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:


Sorry Jesse, i'm really a newbie in Maven.
I had checked out the maven site and get Maven installed and working.
I checked the getting started section and saw how to start creating a
project, but do a really have to maven enable my project just to get the
4.1.1-SNAPSHOT and compile it to get the most recent JAR files?

The pom file in the "
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/";
doesn't work since maven doesn't know witch repository to search for.
Accordingly to http://tapestry.apache.org/tapestry4.1/download.html it's
the
"http://people.apache.org/repo/m2-snapshot-repository/";, and currently i'm
searching where to put this reference in.
Isn't there a ready to go configuration for this? Sorry if i'm just being
an
anoying maven newbie with silly first day questions! :-S

I'll keep searching but if someone can give a jumpstart in this it would
help...

Thanks,

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> This page provides some help,
> http://tapestry.apache.org/tapestry4.1/download.html.
>
> For anything else you'll probably have to either go to maven.apache.orgor
> look at the pom.xml files setup in tapestry already. (
> http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/)
>
> On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
> >
> > Hi there,
> >
> > Been hearing a lot about using MAVEN2 to get the 4.1-SNAPSHOT of
> tapestry
> > for the alpha test phase.
> > Can anybody help me to get this working?
> > Never used MAVEN before. Just ANT with CVS repositories.
> > I installed the MAVEN and Subversion Eclipse plugin and and going to
try
> > and
> > make sense of it all. A jump start or detailed instructions would be
> very
> > much appreciated!
> >
> > Regards,
> >
> > --
> > Pedro Viegas
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


--
Pedro Viegas





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

Sorry Jesse, i'm really a newbie in Maven.
I had checked out the maven site and get Maven installed and working.
I checked the getting started section and saw how to start creating a
project, but do a really have to maven enable my project just to get the
4.1.1-SNAPSHOT and compile it to get the most recent JAR files?

The pom file in the "http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/";
doesn't work since maven doesn't know witch repository to search for.
Accordingly to http://tapestry.apache.org/tapestry4.1/download.html it's the
"http://people.apache.org/repo/m2-snapshot-repository/";, and currently i'm
searching where to put this reference in.
Isn't there a ready to go configuration for this? Sorry if i'm just being an
anoying maven newbie with silly first day questions! :-S

I'll keep searching but if someone can give a jumpstart in this it would
help...

Thanks,

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


This page provides some help,
http://tapestry.apache.org/tapestry4.1/download.html.

For anything else you'll probably have to either go to maven.apache.org or
look at the pom.xml files setup in tapestry already. (
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/)

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> Been hearing a lot about using MAVEN2 to get the 4.1-SNAPSHOT of
tapestry
> for the alpha test phase.
> Can anybody help me to get this working?
> Never used MAVEN before. Just ANT with CVS repositories.
> I installed the MAVEN and Subversion Eclipse plugin and and going to try
> and
> make sense of it all. A jump start or detailed instructions would be
very
> much appreciated!
>
> Regards,
>
> --
> Pedro Viegas
>
>


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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.





--
Pedro Viegas


Re: Label on Property Selection List

2006-08-16 Thread Mael Caldas

Thanks a lot Ryan!

That was exactly what I wanted!
:)

[]'s

Mael

On 8/16/06, Ryan Holmes <[EMAIL PROTECTED]> wrote:


As a matter of fact, yes, there is a simple way! Excuse my
enthusiasm, but it's not often that I get to say that on the Tapestry
mailing list ;)

You want a LabeledPropertySelectionModel, which is a simple decorator
around your existing IPropertySelectionModel:

http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/
tapestry/form/LabeledPropertySelectionModel.html


Inside the method that creates your IPropertySelectionModel just add
something like:

(assume your existing model is in a variable named "myModel")
IPropertySelectionModel labeledModel = new
LabeledPropertySelectionModel(myModel, "Choose your item");
return labeledModel;


-Ryan

On Aug 16, 2006, at 11:59 AM, Mael Caldas wrote:

> Hi
>
> I'm using tapestry 4, and have a selection list that submits the
> form on
> change, without a button, but, when I have only one item on the
> list, I
> can't submit the form, because, of course, there is nothing to change!
>
> Does anybody knows a simple way to have a label inside the property
> selection list, like "chose your item", in the first position of the
> selection list , so, if I have only one item on the list, when I
> change from
> "chose your item" to the "Item 1", the javascript submits the form...
>
> Thanks!

Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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




Re: Shell renderBaseTag flag

2006-08-16 Thread Dom Couldwell
magic, thx. It's the end of a long day and I should have figured that one out...















  
 andyhot <[EMAIL PROTECTED]>











  












  
 08/16/2006 05:34 PM











   To 





Tapestry users   





   

Re: Unable to construct service tapestry.multipart.ServletMultipartDecoder

2006-08-16 Thread Jesse Kuhnert

You need fileupload-1.1..

http://tapestry.apache.org/tapestry4/dependencies.html

On 8/16/06, Andrés Nates <[EMAIL PROTECTED]> wrote:


I'm have this version of jar

tapestry-4.0.2
hivemind-1.1
hivemind-lib-1.1
commons-fileupload-1.0

and the file Hivemind.xml look this:























-Mensaje original-
De: Ryan Holmes [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 16 de Agosto de 2006 03:57 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder

IIRC, the name of that service changed between Tapestry 4.0 and
4.0.1, but your stacktrace looks correct (well, as correct as a
stacktrace can be).

What versions of the following jars do you have:  tapestry, hivemind,
hivemind-lib and commons-fileupload?

Also, are you specifying a maximum upload size in your hivemodule.xml
file? It will look something like this:

   
 
   

If so, copy and paste that into your response.

-Ryan

On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:

> When I'm run de example of the component upload, this example has a
> basic
> upload component for images (jpeg).  This is the error message
>
>
>
>
>
>
>
>
>
> org.apache.hivemind.ApplicationRuntimeException: Unable to
> construct service
> tapestry.multipart.ServletMultipartDecoder: Could not load class
> org.apache.tapestry.multipart.MultipartDecoderImpl from
> WebappClassLoader
>   delegate: false
>   repositories:
> /WEB-INF/classes/
> --> Parent Classloader:
> [EMAIL PROTECTED]
> : org/apache/commons/fileupload/servlet/ServletFileUpload
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.constructSe
> rviceF
> orCurrentThread(ThreadedServiceModel.java:186)
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServiceI
> mpleme
> ntationForCurrentThread(ThreadedServiceModel.java:157)
>
> $ServletMultipartDecoder_10d0ea93c7e._service
> ($ServletMultipartDecoder_10d0e
> a93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7e.cleanup
> ($ServletMultipartDecoder_10d0ea
> 93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7f.cleanup
> ($ServletMultipartDecoder_10d0ea
> 93c7f.java)
>
> org.apache.tapestry.multipart.MultipartDecoderFilter.service
> (MultipartDecode
> rFilter.java:57)
>
> $ServletRequestServicerFilter_10d0ea93cbe.service
> ($ServletRequestServicerFil
> ter_10d0ea93cbe.java)
>
> $ServletRequestServicer_10d0ea93cc6.service
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> org.apache.tapestry.services.impl.SetupRequestEncoding.service
> (SetupRequestE
> ncoding.java:53)
>
> $ServletRequestServicerFilter_10d0ea93cc2.service
> ($ServletRequestServicerFil
> ter_10d0ea93cc2.java)
>
> $ServletRequestServicer_10d0ea93cc6.service
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> $ServletRequestServicer_10d0ea93cb8.service
> ($ServletRequestServicer_10d0ea93
> cb8.java)
>
> org.apache.tapestry.ApplicationServlet.doService
> (ApplicationServlet.java:123
> )
>
> org.apache.tapestry.ApplicationServlet.doPost
> (ApplicationServlet.java:168)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> Anybody know how to fix this error ?
>
>
>
>
>
>
>
> Cordialmente,
> ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> ANDRÉS NATES M.
> Director de implantación e infraestructura.
> Nuevos Medios
> Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
> Tel: (572) - 524 07 77 Ext. 2173
> Email:  
> [EMAIL PROTECTED]
> Cali   - Colombia
> POLÍTICA DE CALIDAD
> Proveer soluciones tecnológicas de software para la gestión del
> conocimiento cumpliendo lo pactado con los clientes mediante el
> mejoramiento continuo y la innovación, apoyado en la sinergia
> corporativa de Parquesoft.
>
>
>

Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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





--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.0/420 - Release Date: 16/08/2006



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


Re: Shell renderBaseTag flag

2006-08-16 Thread andyhot
I'll update the docs to more clearly state that
renderBaseTag relates to the  tag found inside of 

If you don't want  written, do not use the @Shell


Dom Couldwell wrote:
> OK, this may just be down to the fact that it's the end of a very long day 
> but...
>
> does the renderBaseTag parameter of the Shell component actually work?
>
> see http://tapestry.apache.org/tapestry4.1/components/Shell.html
>
> I've tried setting it to false but it still keeps on rendering the  
> element at the top of the document. I really don't want it as I'm trying to 
> produce XML for an RSS feed.
>
> Dom
> --
> This e-mail may contain confidential and/or privileged information. If you 
> are not the intended recipient (or have received this e-mail in error) please 
> notify the sender immediately and destroy this e-mail. Any unauthorized 
> copying, disclosure or distribution of the material in this e-mail is 
> strictly forbidden.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   


-- 
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


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



RE: Unable to construct service tapestry.multipart.ServletMultipartDecoder

2006-08-16 Thread Andrés Nates
I'm have this version of jar 

tapestry-4.0.2
hivemind-1.1
hivemind-lib-1.1
commons-fileupload-1.0

and the file Hivemind.xml look this:



















 



-Mensaje original-
De: Ryan Holmes [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 16 de Agosto de 2006 03:57 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder

IIRC, the name of that service changed between Tapestry 4.0 and  
4.0.1, but your stacktrace looks correct (well, as correct as a  
stacktrace can be).

What versions of the following jars do you have:  tapestry, hivemind,  
hivemind-lib and commons-fileupload?

Also, are you specifying a maximum upload size in your hivemodule.xml  
file? It will look something like this:

   
 
   

If so, copy and paste that into your response.

-Ryan

On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:

> When I’m run de example of the component upload, this example has a  
> basic
> upload component for images (jpeg).  This is the error message
>
>
>
>
>
>
>
>
>
> org.apache.hivemind.ApplicationRuntimeException: Unable to  
> construct service
> tapestry.multipart.ServletMultipartDecoder: Could not load class
> org.apache.tapestry.multipart.MultipartDecoderImpl from  
> WebappClassLoader
>   delegate: false
>   repositories:
> /WEB-INF/classes/
> --> Parent Classloader:
> [EMAIL PROTECTED]
> : org/apache/commons/fileupload/servlet/ServletFileUpload
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.constructSe 
> rviceF
> orCurrentThread(ThreadedServiceModel.java:186)
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServiceI 
> mpleme
> ntationForCurrentThread(ThreadedServiceModel.java:157)
>
> $ServletMultipartDecoder_10d0ea93c7e._service 
> ($ServletMultipartDecoder_10d0e
> a93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7e.cleanup 
> ($ServletMultipartDecoder_10d0ea
> 93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7f.cleanup 
> ($ServletMultipartDecoder_10d0ea
> 93c7f.java)
>
> org.apache.tapestry.multipart.MultipartDecoderFilter.service 
> (MultipartDecode
> rFilter.java:57)
>
> $ServletRequestServicerFilter_10d0ea93cbe.service 
> ($ServletRequestServicerFil
> ter_10d0ea93cbe.java)
>
> $ServletRequestServicer_10d0ea93cc6.service 
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> org.apache.tapestry.services.impl.SetupRequestEncoding.service 
> (SetupRequestE
> ncoding.java:53)
>
> $ServletRequestServicerFilter_10d0ea93cc2.service 
> ($ServletRequestServicerFil
> ter_10d0ea93cc2.java)
>
> $ServletRequestServicer_10d0ea93cc6.service 
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> $ServletRequestServicer_10d0ea93cb8.service 
> ($ServletRequestServicer_10d0ea93
> cb8.java)
>
> org.apache.tapestry.ApplicationServlet.doService 
> (ApplicationServlet.java:123
> )
>
> org.apache.tapestry.ApplicationServlet.doPost 
> (ApplicationServlet.java:168)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> Anybody know how to fix this error ?
>
>
>
>
>
>
>
> Cordialmente,
> ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> ANDRÉS NATES M.
> Director de implantación e infraestructura.
> Nuevos Medios
> Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
> Tel: (572) - 524 07 77 Ext. 2173
> Email:  
> [EMAIL PROTECTED]
> Cali   - Colombia
> POLÍTICA DE CALIDAD
> Proveer soluciones tecnológicas de software para la gestión del
> conocimiento cumpliendo lo pactado con los clientes mediante el
> mejoramiento continuo y la innovación, apoyado en la sinergia
> corporativa de Parquesoft.
>
>
>

Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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





-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.0/420 - Release Date: 16/08/2006



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



Shell renderBaseTag flag

2006-08-16 Thread Dom Couldwell

OK, this may just be down to the fact that it's the end of a very long day 
but...

does the renderBaseTag parameter of the Shell component actually work?

see http://tapestry.apache.org/tapestry4.1/components/Shell.html

I've tried setting it to false but it still keeps on rendering the  
element at the top of the document. I really don't want it as I'm trying to 
produce XML for an RSS feed.

Dom
--
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.


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



adding a persist property in runtime enhancement

2006-08-16 Thread Dan Adams
I have an annotation i'm working on (this isn't my first one and i'm
almost done with this one) where I need to add a persistent property and
use it in my enhanced code. What's the best way of doing this? I've been
digging around the T4 sources but haven't been able to find an answer to
this. So far I have:

String idField = propertyName + "Id";
IPropertySpecification pspec = new PropertySpecification();
pspec.setName(idField);
pspec.setPersistence("session");
pspec.setLocation(location);
pspec.setInitialValue(null);
spec.addPropertySpecification(pspec);

then i get the getter method name with:
String idGetter = op.getAccessorMethodName(idField);

but at runtime i get the javassist exception "[source error] Method
setWidgetId not found in ..." Any ideas?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: Unable to construct service tapestry.multipart.ServletMultipartDecoder

2006-08-16 Thread Ryan Holmes
IIRC, the name of that service changed between Tapestry 4.0 and  
4.0.1, but your stacktrace looks correct (well, as correct as a  
stacktrace can be).


What versions of the following jars do you have:  tapestry, hivemind,  
hivemind-lib and commons-fileupload?


Also, are you specifying a maximum upload size in your hivemodule.xml  
file? It will look something like this:


  id="tapestry.multipart.ServletMultipartDecoder">

   
class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=50 
"

  model="threaded" />
  

If so, copy and paste that into your response.

-Ryan

On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:

When I’m run de example of the component upload, this example has a  
basic

upload component for images (jpeg).  This is the error message









org.apache.hivemind.ApplicationRuntimeException: Unable to  
construct service

tapestry.multipart.ServletMultipartDecoder: Could not load class
org.apache.tapestry.multipart.MultipartDecoderImpl from  
WebappClassLoader

  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]
: org/apache/commons/fileupload/servlet/ServletFileUpload

org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.constructSe 
rviceF

orCurrentThread(ThreadedServiceModel.java:186)

org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServiceI 
mpleme

ntationForCurrentThread(ThreadedServiceModel.java:157)

$ServletMultipartDecoder_10d0ea93c7e._service 
($ServletMultipartDecoder_10d0e

a93c7e.java)

$ServletMultipartDecoder_10d0ea93c7e.cleanup 
($ServletMultipartDecoder_10d0ea

93c7e.java)

$ServletMultipartDecoder_10d0ea93c7f.cleanup 
($ServletMultipartDecoder_10d0ea

93c7f.java)

org.apache.tapestry.multipart.MultipartDecoderFilter.service 
(MultipartDecode

rFilter.java:57)

$ServletRequestServicerFilter_10d0ea93cbe.service 
($ServletRequestServicerFil

ter_10d0ea93cbe.java)

$ServletRequestServicer_10d0ea93cc6.service 
($ServletRequestServicer_10d0ea93

cc6.java)

org.apache.tapestry.services.impl.SetupRequestEncoding.service 
(SetupRequestE

ncoding.java:53)

$ServletRequestServicerFilter_10d0ea93cc2.service 
($ServletRequestServicerFil

ter_10d0ea93cc2.java)

$ServletRequestServicer_10d0ea93cc6.service 
($ServletRequestServicer_10d0ea93

cc6.java)

$ServletRequestServicer_10d0ea93cb8.service 
($ServletRequestServicer_10d0ea93

cb8.java)

org.apache.tapestry.ApplicationServlet.doService 
(ApplicationServlet.java:123

)

org.apache.tapestry.ApplicationServlet.doPost 
(ApplicationServlet.java:168)

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





Anybody know how to fix this error ?







Cordialmente,
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email:  
[EMAIL PROTECTED]
Cali   - Colombia
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovación, apoyado en la sinergia
corporativa de Parquesoft.





Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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



Re: Label on Property Selection List

2006-08-16 Thread Ryan Holmes
As a matter of fact, yes, there is a simple way! Excuse my  
enthusiasm, but it's not often that I get to say that on the Tapestry  
mailing list ;)


You want a LabeledPropertySelectionModel, which is a simple decorator  
around your existing IPropertySelectionModel:


http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/ 
tapestry/form/LabeledPropertySelectionModel.html



Inside the method that creates your IPropertySelectionModel just add  
something like:


(assume your existing model is in a variable named "myModel")
IPropertySelectionModel labeledModel = new  
LabeledPropertySelectionModel(myModel, "Choose your item");

return labeledModel;


-Ryan

On Aug 16, 2006, at 11:59 AM, Mael Caldas wrote:


Hi

I'm using tapestry 4, and have a selection list that submits the  
form on
change, without a button, but, when I have only one item on the  
list, I

can't submit the form, because, of course, there is nothing to change!

Does anybody knows a simple way to have a label inside the property
selection list, like "chose your item", in the first position of the
selection list , so, if I have only one item on the list, when I  
change from

"chose your item" to the "Item 1", the javascript submits the form...

Thanks!


Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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



Re: Injecting State Objects w/ Non-Serializable Beans

2006-08-16 Thread Ryan Holmes
Ideally, your state objects should be as simple and small as possible  
-- if for no other reason than to make sure your app can cluster if  
required. Also, if you're using a service then you're probably  
performing business logic and a state object is probably not the best  
place for this. I'm talking about session-scoped ASO's here and not  
global ASO's. I could see injected services making more sense in a  
global ASO but it still seems like the wrong architecture.


In any event, to get this functionality in a clean way Tapestry/ 
HiveMind would have to support re-injection on deserialization as you  
mention, and I don't think that is or very likely will be supported  
(not to discourage you from looking -- I could certainly be wrong).


I'm not sure if you're also asking about general Tapestry/Spring  
integration, but I recently switched from a custom solution based on  
the info at http://wiki.apache.org/tapestry/Tapestry4Spring to  
Howard's tapestry-spring plugin (http://howardlewisship.com/tapestry- 
javaforge/tapestry-spring/). I literally just ripped out my old  
stuff, dropped in the tapestry-spring jar and was up and running. I  
don't think the plugin is any "better" than the solution on the wiki,  
but having only 1 jar vs a few classes and HiveMind wiring is nice.


If you can outline why you need to inject services into your state  
objects in the first place, maybe I can offer an alternate solution.  
The (rather large) application my team is working on at the moment  
uses Spring beans extensively in Tapestry pages and components and  
I've never had the need or desire to inject them into state objects.  
Not to say that there couldn't be a legitimate reason to do it, I  
just haven't run into it yet.


-Ryan


On Aug 14, 2006, at 1:42 PM, Michael Prescott wrote:


We've got an application state object into which we're injecting some
beans from Spring.  Over time we've tried a number of approaches to
this.

Under Tapestry 3, we'd cobbled this together with some code in a
pageBeginRender() listener in a base page class.  The pages had access
to the Spring context more directly, so as each page started to  
render,

it would "manually" inject the Visit with a number of these beans from
Spring.

This smelled a bit, so under Tapestry 4 we moved to a model where  
we're

injecting via Hivemind.  We have a StateObjectFactory which pulls what
we need out of Spring as Visits are created.

The problem is that this approach is incompatible with persistent
sessions: the beans we're injecting from Spring are all trussed up  
with

proxies and aspects, so they're not in the least bit serializable.  It
would be lovely if the framework could handle this for us, so that we
could just use @InjectSpring right inside state objects, and the
framework would take care of re-injecting as necessary (e.g. when the
deserialized value is null).

Maybe keeping this sort of stuff out of state objects is a good idea.
It's a natural factoring, given what we're doing, but this seems to  
make

it inadvisable.

Anyone else had to deal with this?

Thanks,

Michael Prescott


Ryan Holmes, CISSP

[EMAIL PROTECTED]
ph. (213) 626-0026



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



Re: How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Jesse Kuhnert

This page provides some help,
http://tapestry.apache.org/tapestry4.1/download.html.

For anything else you'll probably have to either go to maven.apache.org or
look at the pom.xml files setup in tapestry already. (
http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/)

On 8/16/06, Pedro Viegas <[EMAIL PROTECTED]> wrote:


Hi there,

Been hearing a lot about using MAVEN2 to get the 4.1-SNAPSHOT of tapestry
for the alpha test phase.
Can anybody help me to get this working?
Never used MAVEN before. Just ANT with CVS repositories.
I installed the MAVEN and Subversion Eclipse plugin and and going to try
and
make sense of it all. A jump start or detailed instructions would be very
much appreciated!

Regards,

--
Pedro Viegas





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread James Carman
It should because a java.util.Set (the entrySet() method returns a Set) is a
java.util.Collection.

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:57 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

This will work with a "Foreach"?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:53 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Well, you'd have to call map.entrySet() and for each entry in there, you'd
call entry.getKey() or entry.getValue() (they're of type Map.Entry).

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:48 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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





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



How to setup 4.1 MAVEN2 snapshot

2006-08-16 Thread Pedro Viegas

Hi there,

Been hearing a lot about using MAVEN2 to get the 4.1-SNAPSHOT of tapestry
for the alpha test phase.
Can anybody help me to get this working?
Never used MAVEN before. Just ANT with CVS repositories.
I installed the MAVEN and Subversion Eclipse plugin and and going to try and
make sense of it all. A jump start or detailed instructions would be very
much appreciated!

Regards,

--
Pedro Viegas


Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread Josh Long

Eeeww..   for a workaround in this case, you could always try
something feindish in the meantime like setting the id manually
through javascript after the page is loaded but before the event
listener has a chance to do its thing then use elements instead of
target...

or..

if body supports informal parameters (and renders them) then you could
just try passing in
id = "m_body" and then having the annotation's elements atrribute
reference 'm_body'

or... muahahah...

create a huge freaking div layer at the root of the dom tree (the
first and only node under the body |document element (whatever it is
dojo.html.body() returns) with width and height 100% and give it an id
and.. maybe not?


Peace,
Josh



On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Aha...But there is no id specified on the rendered Body element. :)

That is fixable. Can you file a JIRA issue for it? (Though doing a mouseover
listener for something as broad as the document Body sounds a little
scaryShould be fixed in the Body component either way though I guess...)

On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
>
> i think using this
> @EventListener(elements = "myFavoriteDiv", events =
> "onmouseover", async=true)
> Does not help me either...
>
> looking at the "View Source" of the browser output it
> seem like Dojo is getting configured correctly
>
>  Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
> 
> 
> 
> 
> 
> 
>  content="text/html;charset=UTF-8"/>
>  href="http://localhost:8080/whiteboard/"/>
> Whiteboard
> djConfig = { isDebug:
> true, debugContainerId:'debug',
> baseRelativePath:"
> http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2F";,
> preventBackButtonFix: false, parseWidgets: false };
> 
>
>  src="
> http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2Fdojo.js
> "> type="text/javascript"
> src="
> 
http://localhost:8080/whiteboard/app?digest=70bde2c664cbcfa071d91ccec1438f38&service=asset&path=%2Ftapestry%2Fcore.js
> ">
>
>  type="text/javascript">dojo.require("dojo.logging.Logger");
> dojo.log.setLevel(dojo.log.getLevel("WARNING"));
>
> 
> 
>
> 
> Big brother is watching you ...
> 
>
>
> 
>
> 
>
> It seem like i am doing something really really stupid
> :(
>
> Yes your idea of moving to snapshot builds looks
> sensible ... i think i should try this example of the
> latest snapshot.
>
> regards,
>
> TH
>
> --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> > Tried this code and it didn't work or tried it and
> > it worked great? ;)
> >
> > FYI, if you are going to use 4.1 you're much better
> > off moving to the daily
> > snapshot builds of 4.1.1-SNAPSHOT. (via maven2) ..
> > It feels like a kind of
> > bait and switch, but what can I do? 
> >
> > On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> > >
> > > Jesse thanks for such a quick reply :)
> > >
> > > Well i just tried this code too
> > >
> > > @EventListener(elements = "myFavoriteDiv", events
> > =
> > > "mouseover")
> > > public void watchText(BrowserEvent event)
> > > {
> > > System.out.println("User clicked on x/y
> > coordinates "
> > > + event.getPageX() + "/" + event.getPageY());
> > > }
> > >
> > >
> >
> http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html
> > >
> > > --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > >
> > > > You can try using the right event keyword to
> > start
> > > > with ;)
> > > >
> > > > http://www.quirksmode.org/js/events_mouse.html
> > > >
> > > > (Maybe I should link quircksmode.org in to the
> > main
> > > > page so people can more
> > > > easily find this handy reference.)
> > > >
> > > > On 8/16/06, TH <[

RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang
This will work with a "Foreach"?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:53 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Well, you'd have to call map.entrySet() and for each entry in there, you'd
call entry.getKey() or entry.getValue() (they're of type Map.Entry).

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:48 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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




Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-16 Thread Josh Long

Yay JIRA and Jesse!

Um... the bug URL is https://issues.apache.org/jira/browse/TAPESTRY-1069

Thanks again,

Josh

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

HmmSounds like a JIRA worthy bug. (The fix is very easy though..I think?
...will know later)

On 8/16/06, Josh Long <[EMAIL PROTECTED]> wrote:
>
> Im noticing that the  @Submit doesnt tag or select anything when the
> form is submitted via ajax (ie, async = true, updateComponents =
> "foo", etc)..
>
> Anyone else have this problem?
>
> Any workarounds?
>
> Peace,
> 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.




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



RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread James Carman
Well, you'd have to call map.entrySet() and for each entry in there, you'd
call entry.getKey() or entry.getValue() (they're of type Map.Entry).

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:48 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.

That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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



RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang
That sounds great, do you have any syntax?


-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:45 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



-
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: Tapestry 3 Iterating over a map.

2006-08-16 Thread James Carman
You can iterate over the entries and they have key/value properties.  

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:43 PM
To: Tapestry users; Tapestry users
Subject: RE: Tapestry 3 Iterating over a map.


Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



-
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: Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang

Keys.  And I want to print the values.

-Original Message-
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Wed 8/16/2006 1:39 PM
To: 'Tapestry users'
Subject: RE: Tapestry 3 Iterating over a map.
 
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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




RE: Tapestry 3 Iterating over a map.

2006-08-16 Thread James Carman
Do you want to iterate the keys or the values?

-Original Message-
From: Mark Stang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 3:36 PM
To: Tapestry users; Tapestry users
Subject: Tapestry 3 Iterating over a map.

Can I treat it like a list?  Anyone know what the syntax is?  I don't want
to convert it back and forth...

thanks,

Mark



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



Tapestry 3 Iterating over a map.

2006-08-16 Thread Mark Stang
Can I treat it like a list?  Anyone know what the syntax is?  I don't want to 
convert it back and forth...

thanks,

Mark


Re: tapernate question

2006-08-16 Thread hv @ Fashion Content
I had a similar concern with Trails, and made my own persistence service 
that uses Hibernate directly.
With Hibernate 3.1 you don't really need the Spring ORM stuff.

"Xiaoshu Wang" <[EMAIL PROTECTED]> skrev i en meddelelse 
news:[EMAIL PROTECTED]
> Thanks, James.
>
> I am able to get the exception now.  However, the exceptions seem to be
> wrapped into spring's DataAccessException.  The original cause of
> HibernateException is gone.  I tried to traverse the Exception track by
> getCause(), but only get the DataIntegrityViolationException and
> java.sql.BatchUpdateException.
>
> I am writing an application that has two fields that can violate the same
> contraints.  The lost of HibernateException won't allow me to figure out 
> the
> which field is duplicated.
>
> Xiaoshu
>
>> -Original Message-
>> From: James Carman [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, August 16, 2006 6:05 AM
>> To: 'Tapestry users'
>> Subject: RE: tapernate question
>>
>> If you want more fine-grained control over what's going on,
>> turn off transaction-per-request and use service methods with
>> transaction interceptors on them to achieve what you want.
>> The reason that you didn't get the exception is that the
>> transaction isn't committing until the end of the request and
>> that's when you'll get the unique constraint violation
>> exception.  The exception presenter might not even catch
>> this, come to think of it.  I actually changed the way
>> Tapernate is implemented in my local copy.  I might need to
>> push that out to the rest of you.
>>
>> -Original Message-
>> From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, August 15, 2006 9:45 PM
>> To: 'Tapestry users'
>> Subject: RE: tapernate question
>>
>> I tried to put something like
>>
>> try {
>>   getSession.update(message);
>> } catch (Throwable e) {
>>System.out.println("Catch it.");
>> }
>>
>> under the MessageDaoImpl.update(Message), but it seems not
>> doing anything.
>>
>> How to hook with ExceptionPresenter?
>>
>> Xiaoshu
>>
>>
>> > -Original Message-
>> > From: James Carman [mailto:[EMAIL PROTECTED]
>> > Sent: Tuesday, August 15, 2006 9:09 PM
>> > To: 'Tapestry users'
>> > Subject: RE: tapernate question
>> >
>> > You can put in a hook into the ExceptionPresenter or wrap your call
>> > with a try/catch block.  The HibernateService class can be found at:
>> >
>> > http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk/src
>> /main/java/com
>> > /javaforge/hivemind/util/HiveMindService.java
>> >
>> > The username/password is anonymous/anon.
>> >
>> >
>> > -Original Message-
>> > From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
>> > Sent: Tuesday, August 15, 2006 9:03 PM
>> > To: users@tapestry.apache.org
>> > Subject: tapernate question
>> >
>> > Hi, I am playing around Tapernate, which I have a question
>> to ask.  It
>> > seems that the exception thrown by a database query would
>> not be able
>> > to be catched at the application level.
>> > For isnstance, I justed added a unique constraints on the
>> > Message.value property.  If I ever try to created a message
>> that has a
>> > duplicated value with an existing Message, it break the
>> application.
>> > I didn't find a way to catch the exception.  Is this
>> expected behavior
>> > or not?
>> >
>> > Also, where I can find the source code for the HibernateService?
>> >
>> > Thanks,
>> >
>> > XW
>> >
>> >
>> >
>> -
>> > 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]
>>
>>
>>
>> -
>> 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]



Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread Jesse Kuhnert

Aha...But there is no id specified on the rendered Body element. :)

That is fixable. Can you file a JIRA issue for it? (Though doing a mouseover
listener for something as broad as the document Body sounds a little
scaryShould be fixed in the Body component either way though I guess...)

On 8/16/06, TH <[EMAIL PROTECTED]> wrote:


i think using this
@EventListener(elements = "myFavoriteDiv", events =
"onmouseover", async=true)
Does not help me either...

looking at the "View Source" of the browser output it
seem like Dojo is getting configured correctly

http://www.w3.org/TR/html4/loose.dtd";>







http://localhost:8080/whiteboard/"/>
Whiteboard
djConfig = { isDebug:
true, debugContainerId:'debug',
baseRelativePath:"
http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2F";,
preventBackButtonFix: false, parseWidgets: false };


http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2Fdojo.js
">http://localhost:8080/whiteboard/app?digest=70bde2c664cbcfa071d91ccec1438f38&service=asset&path=%2Ftapestry%2Fcore.js
">

dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("WARNING"));





Big brother is watching you ...


   




It seem like i am doing something really really stupid
:(

Yes your idea of moving to snapshot builds looks
sensible ... i think i should try this example of the
latest snapshot.

regards,

TH

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> Tried this code and it didn't work or tried it and
> it worked great? ;)
>
> FYI, if you are going to use 4.1 you're much better
> off moving to the daily
> snapshot builds of 4.1.1-SNAPSHOT. (via maven2) ..
> It feels like a kind of
> bait and switch, but what can I do? 
>
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > Jesse thanks for such a quick reply :)
> >
> > Well i just tried this code too
> >
> > @EventListener(elements = "myFavoriteDiv", events
> =
> > "mouseover")
> > public void watchText(BrowserEvent event)
> > {
> > System.out.println("User clicked on x/y
> coordinates "
> > + event.getPageX() + "/" + event.getPageY());
> > }
> >
> >
>
http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html
> >
> > --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> >
> > > You can try using the right event keyword to
> start
> > > with ;)
> > >
> > > http://www.quirksmode.org/js/events_mouse.html
> > >
> > > (Maybe I should link quircksmode.org in to the
> main
> > > page so people can more
> > > easily find this handy reference.)
> > >
> > > On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have to write some Ajax intensive
> application.
> > > So i
> > > > decided to tryout Tapestry 4.1
> > > >
> > > > And it seems like i am missing something very
> > > > important ... because i am not able to run
> even
> > > the
> > > > most basic example give :(
> > > >
> > > > Home.java
> > > > -
> > > > package whiteboard.pages;
> > > >
> > > > import
> > > org.apache.tapestry.annotations.EventListener;
> > > > import org.apache.tapestry.event.BrowserEvent;
> > > > import org.apache.tapestry.html.BasePage;
> > > >
> > > > public abstract class Home extends BasePage
> > > > {
> > > > @EventListener(elements =
> "myFavoriteDiv",
> > > events =
> > > > "onMouseOver")
> > > > public void watchText(BrowserEvent
> event)
> > > > {
> > > >  System.out.println("User
> clicked
> > > on x/y coordinates
> > > > " + event.getPageX() + "/" +
> event.getPageY());
> > > > }
> > > > }
> > > >
> > > > Home.html
> > > > -
> > > >  > > > ajaxEnabled="ognl:true">
> > > >   
> > > >
> > > > 
> > > > Big brother is watching you ...
> > > > 
> > > >
> > > >
> > > > 
> > > >
> > > > app.application
> > > > 
> > > > 
> > > >  > > >   "-//Apache Software Foundation//Tapestry
> > > > Specification 4.0//EN"
> > > >
> > >
> "http://tapestry.apache.org/dtd

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-16 Thread Jesse Kuhnert

HmmSounds like a JIRA worthy bug. (The fix is very easy though..I think?
...will know later)

On 8/16/06, Josh Long <[EMAIL PROTECTED]> wrote:


Im noticing that the  @Submit doesnt tag or select anything when the
form is submitted via ajax (ie, async = true, updateComponents =
"foo", etc)..

Anyone else have this problem?

Any workarounds?

Peace,
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.


Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread TH
i think using this
@EventListener(elements = "myFavoriteDiv", events =
"onmouseover", async=true)
Does not help me either...

looking at the "View Source" of the browser output it
seem like Dojo is getting configured correctly

http://www.w3.org/TR/html4/loose.dtd";>







http://localhost:8080/whiteboard/"/>
Whiteboard
djConfig = { isDebug:
true, debugContainerId:'debug',
baseRelativePath:"http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2F";,
preventBackButtonFix: false, parseWidgets: false };


 http://localhost:8080/whiteboard/app?service=asset&path=%2Fdojo%2Fdojo.js";>http://localhost:8080/whiteboard/app?digest=70bde2c664cbcfa071d91ccec1438f38&service=asset&path=%2Ftapestry%2Fcore.js";>

dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("WARNING"));
  




Big brother is watching you ...


   




It seem like i am doing something really really stupid
:(

Yes your idea of moving to snapshot builds looks
sensible ... i think i should try this example of the
latest snapshot.

regards,

TH

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> Tried this code and it didn't work or tried it and
> it worked great? ;)
> 
> FYI, if you are going to use 4.1 you're much better
> off moving to the daily
> snapshot builds of 4.1.1-SNAPSHOT. (via maven2) ..
> It feels like a kind of
> bait and switch, but what can I do? 
> 
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > Jesse thanks for such a quick reply :)
> >
> > Well i just tried this code too
> >
> > @EventListener(elements = "myFavoriteDiv", events
> =
> > "mouseover")
> > public void watchText(BrowserEvent event)
> > {
> > System.out.println("User clicked on x/y
> coordinates "
> > + event.getPageX() + "/" + event.getPageY());
> > }
> >
> >
>
http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html
> >
> > --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> >
> > > You can try using the right event keyword to
> start
> > > with ;)
> > >
> > > http://www.quirksmode.org/js/events_mouse.html
> > >
> > > (Maybe I should link quircksmode.org in to the
> main
> > > page so people can more
> > > easily find this handy reference.)
> > >
> > > On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I have to write some Ajax intensive
> application.
> > > So i
> > > > decided to tryout Tapestry 4.1
> > > >
> > > > And it seems like i am missing something very
> > > > important ... because i am not able to run
> even
> > > the
> > > > most basic example give :(
> > > >
> > > > Home.java
> > > > -
> > > > package whiteboard.pages;
> > > >
> > > > import
> > > org.apache.tapestry.annotations.EventListener;
> > > > import org.apache.tapestry.event.BrowserEvent;
> > > > import org.apache.tapestry.html.BasePage;
> > > >
> > > > public abstract class Home extends BasePage
> > > > {
> > > > @EventListener(elements =
> "myFavoriteDiv",
> > > events =
> > > > "onMouseOver")
> > > > public void watchText(BrowserEvent
> event)
> > > > {
> > > >  System.out.println("User
> clicked
> > > on x/y coordinates
> > > > " + event.getPageX() + "/" +
> event.getPageY());
> > > > }
> > > > }
> > > >
> > > > Home.html
> > > > -
> > > >  > > > ajaxEnabled="ognl:true">
> > > >   
> > > >
> > > > 
> > > > Big brother is watching you ...
> > > > 
> > > >
> > > >
> > > > 
> > > >
> > > > app.application
> > > > 
> > > > 
> > > >  > > >   "-//Apache Software Foundation//Tapestry
> > > > Specification 4.0//EN"
> > > >
> > >
> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
> > > >
> > > > 
> > > >  > > key="org.apache.tapestry.page-class-packages"
> > > > value="whiteboard.pages"/>
> > > > 
> > > >
> > > > web.xml
> > > > 
> >

Submit doesnt tag or select when the form is submitted via ajax

2006-08-16 Thread Josh Long

Im noticing that the  @Submit doesnt tag or select anything when the
form is submitted via ajax (ie, async = true, updateComponents =
"foo", etc)..

Anyone else have this problem?

Any workarounds?

Peace,
Josh

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



Label on Property Selection List

2006-08-16 Thread Mael Caldas

Hi

I'm using tapestry 4, and have a selection list that submits the form on
change, without a button, but, when I have only one item on the list, I
can't submit the form, because, of course, there is nothing to change!

Does anybody knows a simple way to have a label inside the property
selection list, like "chose your item", in the first position of the
selection list , so, if I have only one item on the list, when I change from
"chose your item" to the "Item 1", the javascript submits the form...

Thanks!


Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread Josh Long

try :

events = "onmouseover"

Josh

On 8/16/06, TH <[EMAIL PROTECTED]> wrote:

Jesse thanks for such a quick reply :)

Well i just tried this code too

@EventListener(elements = "myFavoriteDiv", events =
"mouseover")
public void watchText(BrowserEvent event)
{
System.out.println("User clicked on x/y coordinates "
+ event.getPageX() + "/" + event.getPageY());
}

http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> You can try using the right event keyword to start
> with ;)
>
> http://www.quirksmode.org/js/events_mouse.html
>
> (Maybe I should link quircksmode.org in to the main
> page so people can more
> easily find this handy reference.)
>
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > I have to write some Ajax intensive application.
> So i
> > decided to tryout Tapestry 4.1
> >
> > And it seems like i am missing something very
> > important ... because i am not able to run even
> the
> > most basic example give :(
> >
> > Home.java
> > -
> > package whiteboard.pages;
> >
> > import
> org.apache.tapestry.annotations.EventListener;
> > import org.apache.tapestry.event.BrowserEvent;
> > import org.apache.tapestry.html.BasePage;
> >
> > public abstract class Home extends BasePage
> > {
> > @EventListener(elements = "myFavoriteDiv",
> events =
> > "onMouseOver")
> > public void watchText(BrowserEvent event)
> > {
> >  System.out.println("User clicked
> on x/y coordinates
> > " + event.getPageX() + "/" + event.getPageY());
> > }
> > }
> >
> > Home.html
> > -
> >  > ajaxEnabled="ognl:true">
> >   
> >
> > 
> > Big brother is watching you ...
> > 
> >
> >
> > 
> >
> > app.application
> > 
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN"
> >
> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
> >
> > 
> >  key="org.apache.tapestry.page-class-packages"
> > value="whiteboard.pages"/>
> > 
> >
> > web.xml
> > 
> > 
> >  > xmlns="http://java.sun.com/xml/ns/j2ee";
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >
> >
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >
> > Whiteboard
> >
> > 
> > app
> >
> >
>
org.apache.tapestry.ApplicationServlet
> >
> 0
> > 
> >
> > 
> > app
> > /app
> > 
> >
> > 
> >
> > Can any body help me out by pointing the
> problem
> >
> > regards,
> >
> > TH
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.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.
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread Jesse Kuhnert

Tried this code and it didn't work or tried it and it worked great? ;)

FYI, if you are going to use 4.1 you're much better off moving to the daily
snapshot builds of 4.1.1-SNAPSHOT. (via maven2) .. It feels like a kind of
bait and switch, but what can I do? 

On 8/16/06, TH <[EMAIL PROTECTED]> wrote:


Jesse thanks for such a quick reply :)

Well i just tried this code too

@EventListener(elements = "myFavoriteDiv", events =
"mouseover")
public void watchText(BrowserEvent event)
{
System.out.println("User clicked on x/y coordinates "
+ event.getPageX() + "/" + event.getPageY());
}

http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> You can try using the right event keyword to start
> with ;)
>
> http://www.quirksmode.org/js/events_mouse.html
>
> (Maybe I should link quircksmode.org in to the main
> page so people can more
> easily find this handy reference.)
>
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > I have to write some Ajax intensive application.
> So i
> > decided to tryout Tapestry 4.1
> >
> > And it seems like i am missing something very
> > important ... because i am not able to run even
> the
> > most basic example give :(
> >
> > Home.java
> > -
> > package whiteboard.pages;
> >
> > import
> org.apache.tapestry.annotations.EventListener;
> > import org.apache.tapestry.event.BrowserEvent;
> > import org.apache.tapestry.html.BasePage;
> >
> > public abstract class Home extends BasePage
> > {
> > @EventListener(elements = "myFavoriteDiv",
> events =
> > "onMouseOver")
> > public void watchText(BrowserEvent event)
> > {
> >  System.out.println("User clicked
> on x/y coordinates
> > " + event.getPageX() + "/" + event.getPageY());
> > }
> > }
> >
> > Home.html
> > -
> >  > ajaxEnabled="ognl:true">
> >   
> >
> > 
> > Big brother is watching you ...
> > 
> >
> >
> > 
> >
> > app.application
> > 
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN"
> >
> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
> >
> > 
> >  key="org.apache.tapestry.page-class-packages"
> > value="whiteboard.pages"/>
> > 
> >
> > web.xml
> > 
> > 
> >  > xmlns="http://java.sun.com/xml/ns/j2ee";
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >
> >
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >
> > Whiteboard
> >
> > 
> > app
> >
> >
>
org.apache.tapestry.ApplicationServlet
> >
> 0
> > 
> >
> > 
> > app
> > /app
> > 
> >
> > 
> >
> > Can any body help me out by pointing the
> problem
> >
> > regards,
> >
> > TH
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.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.
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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.


Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread TH
Jesse thanks for such a quick reply :)

Well i just tried this code too

@EventListener(elements = "myFavoriteDiv", events =
"mouseover")
public void watchText(BrowserEvent event)
{
System.out.println("User clicked on x/y coordinates "
+ event.getPageX() + "/" + event.getPageY());
}

but this does not seem to work too :(

Well the Code i previously posted was copy pasted from
the link below:

http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html


Sorry for the half reply previously (mistakenly
pressed the send button ... may be too excited by your
quick reply :) )

TH

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> You can try using the right event keyword to start
> with ;)
> 
> http://www.quirksmode.org/js/events_mouse.html
> 
> (Maybe I should link quircksmode.org in to the main
> page so people can more
> easily find this handy reference.)
> 
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > I have to write some Ajax intensive application.
> So i
> > decided to tryout Tapestry 4.1
> >
> > And it seems like i am missing something very
> > important ... because i am not able to run even
> the
> > most basic example give :(
> >
> > Home.java
> > -
> > package whiteboard.pages;
> >
> > import
> org.apache.tapestry.annotations.EventListener;
> > import org.apache.tapestry.event.BrowserEvent;
> > import org.apache.tapestry.html.BasePage;
> >
> > public abstract class Home extends BasePage
> > {
> > @EventListener(elements = "myFavoriteDiv",
> events =
> > "onMouseOver")
> > public void watchText(BrowserEvent event)
> > {
> >  System.out.println("User clicked
> on x/y coordinates
> > " + event.getPageX() + "/" + event.getPageY());
> > }
> > }
> >
> > Home.html
> > -
> >  > ajaxEnabled="ognl:true">
> >   
> >
> > 
> > Big brother is watching you ...
> > 
> >
> >
> > 
> >
> > app.application
> > 
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN"
> >  
> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
> >
> > 
> >  key="org.apache.tapestry.page-class-packages"
> > value="whiteboard.pages"/>
> > 
> >
> > web.xml
> > 
> > 
> >  > xmlns="http://java.sun.com/xml/ns/j2ee";
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >
> >
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >
> > Whiteboard
> >
> > 
> > app
> >
> >
>
org.apache.tapestry.ApplicationServlet
> >
> 0
> > 
> >
> > 
> > app
> > /app
> > 
> >
> > 
> >
> > Can any body help me out by pointing the
> problem
> >
> > regards,
> >
> > TH
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.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.
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread TH
Jesse thanks for such a quick reply :)

Well i just tried this code too

@EventListener(elements = "myFavoriteDiv", events =
"mouseover")
public void watchText(BrowserEvent event)
{
System.out.println("User clicked on x/y coordinates "
+ event.getPageX() + "/" + event.getPageY());
}

http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html

--- Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

> You can try using the right event keyword to start
> with ;)
> 
> http://www.quirksmode.org/js/events_mouse.html
> 
> (Maybe I should link quircksmode.org in to the main
> page so people can more
> easily find this handy reference.)
> 
> On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
> >
> > I have to write some Ajax intensive application.
> So i
> > decided to tryout Tapestry 4.1
> >
> > And it seems like i am missing something very
> > important ... because i am not able to run even
> the
> > most basic example give :(
> >
> > Home.java
> > -
> > package whiteboard.pages;
> >
> > import
> org.apache.tapestry.annotations.EventListener;
> > import org.apache.tapestry.event.BrowserEvent;
> > import org.apache.tapestry.html.BasePage;
> >
> > public abstract class Home extends BasePage
> > {
> > @EventListener(elements = "myFavoriteDiv",
> events =
> > "onMouseOver")
> > public void watchText(BrowserEvent event)
> > {
> >  System.out.println("User clicked
> on x/y coordinates
> > " + event.getPageX() + "/" + event.getPageY());
> > }
> > }
> >
> > Home.html
> > -
> >  > ajaxEnabled="ognl:true">
> >   
> >
> > 
> > Big brother is watching you ...
> > 
> >
> >
> > 
> >
> > app.application
> > 
> > 
> >  >   "-//Apache Software Foundation//Tapestry
> > Specification 4.0//EN"
> >  
> "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
> >
> > 
> >  key="org.apache.tapestry.page-class-packages"
> > value="whiteboard.pages"/>
> > 
> >
> > web.xml
> > 
> > 
> >  > xmlns="http://java.sun.com/xml/ns/j2ee";
> >
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >
> >
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> >
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
> >
> > Whiteboard
> >
> > 
> > app
> >
> >
>
org.apache.tapestry.ApplicationServlet
> >
> 0
> > 
> >
> > 
> > app
> > /app
> > 
> >
> > 
> >
> > Can any body help me out by pointing the
> problem
> >
> > regards,
> >
> > TH
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.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.
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread Jesse Kuhnert

You can try using the right event keyword to start with ;)

http://www.quirksmode.org/js/events_mouse.html

(Maybe I should link quircksmode.org in to the main page so people can more
easily find this handy reference.)

On 8/16/06, TH <[EMAIL PROTECTED]> wrote:


I have to write some Ajax intensive application. So i
decided to tryout Tapestry 4.1

And it seems like i am missing something very
important ... because i am not able to run even the
most basic example give :(

Home.java
-
package whiteboard.pages;

import org.apache.tapestry.annotations.EventListener;
import org.apache.tapestry.event.BrowserEvent;
import org.apache.tapestry.html.BasePage;

public abstract class Home extends BasePage
{
@EventListener(elements = "myFavoriteDiv", events =
"onMouseOver")
public void watchText(BrowserEvent event)
{
 System.out.println("User clicked on x/y coordinates
" + event.getPageX() + "/" + event.getPageY());
}
}

Home.html
-

  


Big brother is watching you ...


   


app.application


http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>





web.xml


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Whiteboard


app

org.apache.tapestry.ApplicationServlet
0



app
/app




Can any body help me out by pointing the problem

regards,

TH


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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.


Tapestry 4.1 tryout ... not working :(

2006-08-16 Thread TH
I have to write some Ajax intensive application. So i
decided to tryout Tapestry 4.1

And it seems like i am missing something very
important ... because i am not able to run even the
most basic example give :(

Home.java
-
package whiteboard.pages;

import org.apache.tapestry.annotations.EventListener;
import org.apache.tapestry.event.BrowserEvent;
import org.apache.tapestry.html.BasePage;

public abstract class Home extends BasePage
{
@EventListener(elements = "myFavoriteDiv", events =
"onMouseOver")
public void watchText(BrowserEvent event)
{
 System.out.println("User clicked on x/y coordinates
" + event.getPageX() + "/" + event.getPageY());
}
}

Home.html
-

  


Big brother is watching you ...


   


app.application


http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";>
  
  



web.xml


http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

Whiteboard


app

org.apache.tapestry.ApplicationServlet
0



app
/app




Can any body help me out by pointing the problem

regards,

TH


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Xerces version

2006-08-16 Thread Vinicius Carvalho

Yes Jesse sorry, the DB is quite something :D, but almost every
java/jee app writen by them is a crap (bc4j, adf, as, process manager,
sso, jdeveloper)

On 8/16/06, James Carman <[EMAIL PROTECTED]> wrote:

We've (the HiveMind team) had a lot of trouble with OC4J.  So, I feel your
pain!

-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 16, 2006 1:46 PM
To: Tapestry users
Subject: Re: Xerces version

Hello folks, thanks for all the help. Well I'm using the 10.1.3
version of AS, I believe that is the latest version, and even that is
buggy :(

I believe (not sure, because I haven't checked) that Oracle is not
replacing the parser, even though I'm setting it on the properties of
my app. I'll do a stupid-lazy approach, and debug the hivemind code to
see which parser is being injected.

Thanks for all the help, I'll keep you guys informed.

Jesse, thanks, as soon as I find a way out, It would be my pleasure to
post every step for a FAQ (although I think the better solution is: do
not use oracle products, they are buggy, and unstable ;) )

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> .. and I really don't recommend to just replace the XML jars.  I tried
> to do that and other components of OC4J got problems.  It's better to
> migrate to a new release.
>
> JAVIER SANCHEZ
> CIO EDESA S.A.
> Bogota, Colombia
>
> On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> > This issue is already on http://wiki.apache.org/tapestry/Gotchas
> >
> > The first version of OC4J I tried was 9.0.4.   Every version of OAS
> > 10g since 10.1.2 have the XML parser fixed.
> >
> > My application is still using T3, so I really don't know if T4 could
> > still have problems with OC4J. I recommend to migrate to the last
> > release, 10.1.3
> >
> > JAVIER SANCHEZ
> > CIO EDESA S.A.
> > Bogota, Colombia
> >
> > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > Can you post back to the list with the correct version of xerces (and
the
> > > exact version of oracle j2ee used) so that I can add a FAQ entry for
this?
> > >
> > > On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yes Vinicius, you've got to change the xerces jar too, i'm going to
send
> > > > you
> > > > the xercesImpl that worked for me when deploying the app in OAS 10G.
> > > >
> > > > Ing. Hermann Yesid Redondo Eslava
> > > > IT-GROUP LTDA
> > > >
> > > > -- Original Message ---
> > > > From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> > > > To: "Tapestry users" 
> > > > Sent: Wed, 16 Aug 2006 12:12:35 -0300
> > > > Subject: Xerces version
> > > >
> > > > > Hello there! I'm still having big problems with the crap oc4j
server.
> > > > > I've tried to change the xml parser, but Hivemind is still
throwing
> > > > > errors...
> > > > >
> > > > > Here's my lib versions:
> > > > >
> > > > > Tapestry 4.0.2
> > > > > Hivemind 1.1.1
> > > > > Xerces 2.8.0
> > > > > xml-apis 1.3.03b
> > > > >
> > > > > I'm wondering if now the problem is the xerces version...
> > > > >
> > > > > Any help would be most appreciated
> > > > >
> > > > > Best regards
> > > > >
> > > > >
-
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > --- End of Original Message ---
> > > >
> > > >
> > > >
-
> > > > 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.
> > >
> > >
> >
>
> -
> 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]




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



RE: Xerces version

2006-08-16 Thread James Carman
We've (the HiveMind team) had a lot of trouble with OC4J.  So, I feel your
pain!

-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 1:46 PM
To: Tapestry users
Subject: Re: Xerces version

Hello folks, thanks for all the help. Well I'm using the 10.1.3
version of AS, I believe that is the latest version, and even that is
buggy :(

I believe (not sure, because I haven't checked) that Oracle is not
replacing the parser, even though I'm setting it on the properties of
my app. I'll do a stupid-lazy approach, and debug the hivemind code to
see which parser is being injected.

Thanks for all the help, I'll keep you guys informed.

Jesse, thanks, as soon as I find a way out, It would be my pleasure to
post every step for a FAQ (although I think the better solution is: do
not use oracle products, they are buggy, and unstable ;) )

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> .. and I really don't recommend to just replace the XML jars.  I tried
> to do that and other components of OC4J got problems.  It's better to
> migrate to a new release.
>
> JAVIER SANCHEZ
> CIO EDESA S.A.
> Bogota, Colombia
>
> On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> > This issue is already on http://wiki.apache.org/tapestry/Gotchas
> >
> > The first version of OC4J I tried was 9.0.4.   Every version of OAS
> > 10g since 10.1.2 have the XML parser fixed.
> >
> > My application is still using T3, so I really don't know if T4 could
> > still have problems with OC4J. I recommend to migrate to the last
> > release, 10.1.3
> >
> > JAVIER SANCHEZ
> > CIO EDESA S.A.
> > Bogota, Colombia
> >
> > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > Can you post back to the list with the correct version of xerces (and
the
> > > exact version of oracle j2ee used) so that I can add a FAQ entry for
this?
> > >
> > > On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yes Vinicius, you've got to change the xerces jar too, i'm going to
send
> > > > you
> > > > the xercesImpl that worked for me when deploying the app in OAS 10G.
> > > >
> > > > Ing. Hermann Yesid Redondo Eslava
> > > > IT-GROUP LTDA
> > > >
> > > > -- Original Message ---
> > > > From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> > > > To: "Tapestry users" 
> > > > Sent: Wed, 16 Aug 2006 12:12:35 -0300
> > > > Subject: Xerces version
> > > >
> > > > > Hello there! I'm still having big problems with the crap oc4j
server.
> > > > > I've tried to change the xml parser, but Hivemind is still
throwing
> > > > > errors...
> > > > >
> > > > > Here's my lib versions:
> > > > >
> > > > > Tapestry 4.0.2
> > > > > Hivemind 1.1.1
> > > > > Xerces 2.8.0
> > > > > xml-apis 1.3.03b
> > > > >
> > > > > I'm wondering if now the problem is the xerces version...
> > > > >
> > > > > Any help would be most appreciated
> > > > >
> > > > > Best regards
> > > > >
> > > > >
-
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > --- End of Original Message ---
> > > >
> > > >
> > > >
-
> > > > 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.
> > >
> > >
> >
>
> -
> 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]



Re: Xerces version

2006-08-16 Thread Jesse Kuhnert

Cool thanks =)

Don't get me wrong, the actual core DB itself is a thing of beautyBut
the monkeys writing JDBC/app server/etc code don't seem to be of the same
caliber ;)

On 8/16/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:


Hello folks, thanks for all the help. Well I'm using the 10.1.3
version of AS, I believe that is the latest version, and even that is
buggy :(

I believe (not sure, because I haven't checked) that Oracle is not
replacing the parser, even though I'm setting it on the properties of
my app. I'll do a stupid-lazy approach, and debug the hivemind code to
see which parser is being injected.

Thanks for all the help, I'll keep you guys informed.

Jesse, thanks, as soon as I find a way out, It would be my pleasure to
post every step for a FAQ (although I think the better solution is: do
not use oracle products, they are buggy, and unstable ;) )

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> .. and I really don't recommend to just replace the XML jars.  I tried
> to do that and other components of OC4J got problems.  It's better to
> migrate to a new release.
>
> JAVIER SANCHEZ
> CIO EDESA S.A.
> Bogota, Colombia
>
> On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> > This issue is already on http://wiki.apache.org/tapestry/Gotchas
> >
> > The first version of OC4J I tried was 9.0.4.   Every version of OAS
> > 10g since 10.1.2 have the XML parser fixed.
> >
> > My application is still using T3, so I really don't know if T4 could
> > still have problems with OC4J. I recommend to migrate to the last
> > release, 10.1.3
> >
> > JAVIER SANCHEZ
> > CIO EDESA S.A.
> > Bogota, Colombia
> >
> > On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > Can you post back to the list with the correct version of xerces
(and the
> > > exact version of oracle j2ee used) so that I can add a FAQ entry for
this?
> > >
> > > On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Yes Vinicius, you've got to change the xerces jar too, i'm going
to send
> > > > you
> > > > the xercesImpl that worked for me when deploying the app in OAS
10G.
> > > >
> > > > Ing. Hermann Yesid Redondo Eslava
> > > > IT-GROUP LTDA
> > > >
> > > > -- Original Message ---
> > > > From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> > > > To: "Tapestry users" 
> > > > Sent: Wed, 16 Aug 2006 12:12:35 -0300
> > > > Subject: Xerces version
> > > >
> > > > > Hello there! I'm still having big problems with the crap oc4j
server.
> > > > > I've tried to change the xml parser, but Hivemind is still
throwing
> > > > > errors...
> > > > >
> > > > > Here's my lib versions:
> > > > >
> > > > > Tapestry 4.0.2
> > > > > Hivemind 1.1.1
> > > > > Xerces 2.8.0
> > > > > xml-apis 1.3.03b
> > > > >
> > > > > I'm wondering if now the problem is the xerces version...
> > > > >
> > > > > Any help would be most appreciated
> > > > >
> > > > > Best regards
> > > > >
> > > > >
-
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > --- End of Original Message ---
> > > >
> > > >
> > > >
-
> > > > 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.
> > >
> > >
> >
>
> -
> 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]





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

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Re: Xerces version

2006-08-16 Thread Vinicius Carvalho

Hello folks, thanks for all the help. Well I'm using the 10.1.3
version of AS, I believe that is the latest version, and even that is
buggy :(

I believe (not sure, because I haven't checked) that Oracle is not
replacing the parser, even though I'm setting it on the properties of
my app. I'll do a stupid-lazy approach, and debug the hivemind code to
see which parser is being injected.

Thanks for all the help, I'll keep you guys informed.

Jesse, thanks, as soon as I find a way out, It would be my pleasure to
post every step for a FAQ (although I think the better solution is: do
not use oracle products, they are buggy, and unstable ;) )

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:

.. and I really don't recommend to just replace the XML jars.  I tried
to do that and other components of OC4J got problems.  It's better to
migrate to a new release.

JAVIER SANCHEZ
CIO EDESA S.A.
Bogota, Colombia

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:
> This issue is already on http://wiki.apache.org/tapestry/Gotchas
>
> The first version of OC4J I tried was 9.0.4.   Every version of OAS
> 10g since 10.1.2 have the XML parser fixed.
>
> My application is still using T3, so I really don't know if T4 could
> still have problems with OC4J. I recommend to migrate to the last
> release, 10.1.3
>
> JAVIER SANCHEZ
> CIO EDESA S.A.
> Bogota, Colombia
>
> On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > Can you post back to the list with the correct version of xerces (and the
> > exact version of oracle j2ee used) so that I can add a FAQ entry for this?
> >
> > On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes Vinicius, you've got to change the xerces jar too, i'm going to send
> > > you
> > > the xercesImpl that worked for me when deploying the app in OAS 10G.
> > >
> > > Ing. Hermann Yesid Redondo Eslava
> > > IT-GROUP LTDA
> > >
> > > -- Original Message ---
> > > From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> > > To: "Tapestry users" 
> > > Sent: Wed, 16 Aug 2006 12:12:35 -0300
> > > Subject: Xerces version
> > >
> > > > Hello there! I'm still having big problems with the crap oc4j server.
> > > > I've tried to change the xml parser, but Hivemind is still throwing
> > > > errors...
> > > >
> > > > Here's my lib versions:
> > > >
> > > > Tapestry 4.0.2
> > > > Hivemind 1.1.1
> > > > Xerces 2.8.0
> > > > xml-apis 1.3.03b
> > > >
> > > > I'm wondering if now the problem is the xerces version...
> > > >
> > > > Any help would be most appreciated
> > > >
> > > > Best regards
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > --- End of Original Message ---
> > >
> > >
> > > -
> > > 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.
> >
> >
>

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

2006-08-16 Thread Javier Sanchez

.. and I really don't recommend to just replace the XML jars.  I tried
to do that and other components of OC4J got problems.  It's better to
migrate to a new release.

JAVIER SANCHEZ
CIO EDESA S.A.
Bogota, Colombia

On 8/16/06, Javier Sanchez <[EMAIL PROTECTED]> wrote:

This issue is already on http://wiki.apache.org/tapestry/Gotchas

The first version of OC4J I tried was 9.0.4.   Every version of OAS
10g since 10.1.2 have the XML parser fixed.

My application is still using T3, so I really don't know if T4 could
still have problems with OC4J. I recommend to migrate to the last
release, 10.1.3

JAVIER SANCHEZ
CIO EDESA S.A.
Bogota, Colombia

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> Can you post back to the list with the correct version of xerces (and the
> exact version of oracle j2ee used) so that I can add a FAQ entry for this?
>
> On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
> >
> > Yes Vinicius, you've got to change the xerces jar too, i'm going to send
> > you
> > the xercesImpl that worked for me when deploying the app in OAS 10G.
> >
> > Ing. Hermann Yesid Redondo Eslava
> > IT-GROUP LTDA
> >
> > -- Original Message ---
> > From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> > To: "Tapestry users" 
> > Sent: Wed, 16 Aug 2006 12:12:35 -0300
> > Subject: Xerces version
> >
> > > Hello there! I'm still having big problems with the crap oc4j server.
> > > I've tried to change the xml parser, but Hivemind is still throwing
> > > errors...
> > >
> > > Here's my lib versions:
> > >
> > > Tapestry 4.0.2
> > > Hivemind 1.1.1
> > > Xerces 2.8.0
> > > xml-apis 1.3.03b
> > >
> > > I'm wondering if now the problem is the xerces version...
> > >
> > > Any help would be most appreciated
> > >
> > > Best regards
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > --- End of Original Message ---
> >
> >
> > -
> > 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.
>
>



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



Re: Xerces version

2006-08-16 Thread Javier Sanchez

This issue is already on http://wiki.apache.org/tapestry/Gotchas

The first version of OC4J I tried was 9.0.4.   Every version of OAS
10g since 10.1.2 have the XML parser fixed.

My application is still using T3, so I really don't know if T4 could
still have problems with OC4J. I recommend to migrate to the last
release, 10.1.3

JAVIER SANCHEZ
CIO EDESA S.A.
Bogota, Colombia

On 8/16/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Can you post back to the list with the correct version of xerces (and the
exact version of oracle j2ee used) so that I can add a FAQ entry for this?

On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:
>
> Yes Vinicius, you've got to change the xerces jar too, i'm going to send
> you
> the xercesImpl that worked for me when deploying the app in OAS 10G.
>
> Ing. Hermann Yesid Redondo Eslava
> IT-GROUP LTDA
>
> -- Original Message ---
> From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
> To: "Tapestry users" 
> Sent: Wed, 16 Aug 2006 12:12:35 -0300
> Subject: Xerces version
>
> > Hello there! I'm still having big problems with the crap oc4j server.
> > I've tried to change the xml parser, but Hivemind is still throwing
> > errors...
> >
> > Here's my lib versions:
> >
> > Tapestry 4.0.2
> > Hivemind 1.1.1
> > Xerces 2.8.0
> > xml-apis 1.3.03b
> >
> > I'm wondering if now the problem is the xerces version...
> >
> > Any help would be most appreciated
> >
> > Best regards
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --- End of Original Message ---
>
>
> -
> 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.




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



Re: Xerces version

2006-08-16 Thread Jesse Kuhnert

Can you post back to the list with the correct version of xerces (and the
exact version of oracle j2ee used) so that I can add a FAQ entry for this?

On 8/16/06, yesidredondo <[EMAIL PROTECTED]> wrote:


Yes Vinicius, you've got to change the xerces jar too, i'm going to send
you
the xercesImpl that worked for me when deploying the app in OAS 10G.

Ing. Hermann Yesid Redondo Eslava
IT-GROUP LTDA

-- Original Message ---
From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Wed, 16 Aug 2006 12:12:35 -0300
Subject: Xerces version

> Hello there! I'm still having big problems with the crap oc4j server.
> I've tried to change the xml parser, but Hivemind is still throwing
> errors...
>
> Here's my lib versions:
>
> Tapestry 4.0.2
> Hivemind 1.1.1
> Xerces 2.8.0
> xml-apis 1.3.03b
>
> I'm wondering if now the problem is the xerces version...
>
> Any help would be most appreciated
>
> Best regards
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- End of Original Message ---


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


Re: Xerces version

2006-08-16 Thread Javier Sanchez

What version of OC4J are you using?   I had problems with 9.0.2 if I
remember well (the first one that Oracle called 10g).  Its XML parser
was buggy.

Since we migrated OAS to 10.X our problems did go away.

JAVIER SANCHEZ
CIO EDESA S.A.
Bogota, Colombia

On 8/16/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:

Hello there! I'm still having big problems with the crap oc4j server.
I've tried to change the xml parser, but Hivemind is still throwing
errors...

Here's my lib versions:

Tapestry 4.0.2
Hivemind 1.1.1
Xerces 2.8.0
xml-apis 1.3.03b

I'm wondering if now the problem is the xerces version...

Any help would be most appreciated

Best regards

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

2006-08-16 Thread yesidredondo
Yes Vinicius, you've got to change the xerces jar too, i'm going to send you 
the xercesImpl that worked for me when deploying the app in OAS 10G.

Ing. Hermann Yesid Redondo Eslava
IT-GROUP LTDA

-- Original Message ---
From: "Vinicius Carvalho" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Wed, 16 Aug 2006 12:12:35 -0300
Subject: Xerces version

> Hello there! I'm still having big problems with the crap oc4j server.
> I've tried to change the xml parser, but Hivemind is still throwing
> errors...
> 
> Here's my lib versions:
> 
> Tapestry 4.0.2
> Hivemind 1.1.1
> Xerces 2.8.0
> xml-apis 1.3.03b
> 
> I'm wondering if now the problem is the xerces version...
> 
> Any help would be most appreciated
> 
> Best regards
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--- End of Original Message ---


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



RE: tapernate question

2006-08-16 Thread James Carman
H.  Well, that's the way Spring wraps it by default.  I don't have time
to look into it right now, but maybe you can check the Spring docs to see
what to do in your situation.  The Spring library is pretty thorough, so I
would imagine that there's something you can do.

James

-Original Message-
From: Xiaoshu Wang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 16, 2006 12:00 PM
To: 'Tapestry users'
Subject: RE: tapernate question

Thanks, James.  

I am able to get the exception now.  However, the exceptions seem to be
wrapped into spring's DataAccessException.  The original cause of
HibernateException is gone.  I tried to traverse the Exception track by
getCause(), but only get the DataIntegrityViolationException and
java.sql.BatchUpdateException.

I am writing an application that has two fields that can violate the same
contraints.  The lost of HibernateException won't allow me to figure out the
which field is duplicated.

Xiaoshu

> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 16, 2006 6:05 AM
> To: 'Tapestry users'
> Subject: RE: tapernate question
> 
> If you want more fine-grained control over what's going on, 
> turn off transaction-per-request and use service methods with 
> transaction interceptors on them to achieve what you want.  
> The reason that you didn't get the exception is that the 
> transaction isn't committing until the end of the request and 
> that's when you'll get the unique constraint violation 
> exception.  The exception presenter might not even catch 
> this, come to think of it.  I actually changed the way 
> Tapernate is implemented in my local copy.  I might need to 
> push that out to the rest of you. 
> 
> -Original Message-
> From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 15, 2006 9:45 PM
> To: 'Tapestry users'
> Subject: RE: tapernate question
> 
> I tried to put something like
> 
> try {
>   getSession.update(message);
> } catch (Throwable e) {
>System.out.println("Catch it.");
> }
> 
> under the MessageDaoImpl.update(Message), but it seems not 
> doing anything.
> 
> How to hook with ExceptionPresenter? 
> 
> Xiaoshu
> 
> 
> > -Original Message-
> > From: James Carman [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 15, 2006 9:09 PM
> > To: 'Tapestry users'
> > Subject: RE: tapernate question
> > 
> > You can put in a hook into the ExceptionPresenter or wrap your call 
> > with a try/catch block.  The HibernateService class can be found at:
> > 
> > http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk/src
> /main/java/com
> > /javaforge/hivemind/util/HiveMindService.java
> > 
> > The username/password is anonymous/anon.
> > 
> > 
> > -Original Message-
> > From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 15, 2006 9:03 PM
> > To: users@tapestry.apache.org
> > Subject: tapernate question
> > 
> > Hi, I am playing around Tapernate, which I have a question 
> to ask.  It 
> > seems that the exception thrown by a database query would 
> not be able 
> > to be catched at the application level.
> > For isnstance, I justed added a unique constraints on the 
> > Message.value property.  If I ever try to created a message 
> that has a 
> > duplicated value with an existing Message, it break the 
> application.  
> > I didn't find a way to catch the exception.  Is this 
> expected behavior 
> > or not?
> > 
> > Also, where I can find the source code for the HibernateService?
> > 
> > Thanks,
> > 
> > XW
> > 
> > 
> > 
> -
> > 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]
> 
> 
> 
> -
> 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]



RE: tapernate question

2006-08-16 Thread Xiaoshu Wang
Thanks, James.  

I am able to get the exception now.  However, the exceptions seem to be
wrapped into spring's DataAccessException.  The original cause of
HibernateException is gone.  I tried to traverse the Exception track by
getCause(), but only get the DataIntegrityViolationException and
java.sql.BatchUpdateException.

I am writing an application that has two fields that can violate the same
contraints.  The lost of HibernateException won't allow me to figure out the
which field is duplicated.

Xiaoshu

> -Original Message-
> From: James Carman [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 16, 2006 6:05 AM
> To: 'Tapestry users'
> Subject: RE: tapernate question
> 
> If you want more fine-grained control over what's going on, 
> turn off transaction-per-request and use service methods with 
> transaction interceptors on them to achieve what you want.  
> The reason that you didn't get the exception is that the 
> transaction isn't committing until the end of the request and 
> that's when you'll get the unique constraint violation 
> exception.  The exception presenter might not even catch 
> this, come to think of it.  I actually changed the way 
> Tapernate is implemented in my local copy.  I might need to 
> push that out to the rest of you. 
> 
> -Original Message-
> From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 15, 2006 9:45 PM
> To: 'Tapestry users'
> Subject: RE: tapernate question
> 
> I tried to put something like
> 
> try {
>   getSession.update(message);
> } catch (Throwable e) {
>System.out.println("Catch it.");
> }
> 
> under the MessageDaoImpl.update(Message), but it seems not 
> doing anything.
> 
> How to hook with ExceptionPresenter? 
> 
> Xiaoshu
> 
> 
> > -Original Message-
> > From: James Carman [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 15, 2006 9:09 PM
> > To: 'Tapestry users'
> > Subject: RE: tapernate question
> > 
> > You can put in a hook into the ExceptionPresenter or wrap your call 
> > with a try/catch block.  The HibernateService class can be found at:
> > 
> > http://svn.javaforge.com/svn/hivemind/hivemind-utils/trunk/src
> /main/java/com
> > /javaforge/hivemind/util/HiveMindService.java
> > 
> > The username/password is anonymous/anon.
> > 
> > 
> > -Original Message-
> > From: Xiaoshu Wang [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 15, 2006 9:03 PM
> > To: users@tapestry.apache.org
> > Subject: tapernate question
> > 
> > Hi, I am playing around Tapernate, which I have a question 
> to ask.  It 
> > seems that the exception thrown by a database query would 
> not be able 
> > to be catched at the application level.
> > For isnstance, I justed added a unique constraints on the 
> > Message.value property.  If I ever try to created a message 
> that has a 
> > duplicated value with an existing Message, it break the 
> application.  
> > I didn't find a way to catch the exception.  Is this 
> expected behavior 
> > or not?
> > 
> > Also, where I can find the source code for the HibernateService?
> > 
> > Thanks,
> > 
> > XW
> > 
> > 
> > 
> -
> > 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]
> 
> 
> 
> -
> 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]



Xerces version

2006-08-16 Thread Vinicius Carvalho

Hello there! I'm still having big problems with the crap oc4j server.
I've tried to change the xml parser, but Hivemind is still throwing
errors...

Here's my lib versions:

Tapestry 4.0.2
Hivemind 1.1.1
Xerces 2.8.0
xml-apis 1.3.03b

I'm wondering if now the problem is the xerces version...

Any help would be most appreciated

Best regards

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



Re: Quick Contrib:Table question (how to get an ExpressionEvaluator?)

2006-08-16 Thread Norbert Sándor
... or in 4.1 the service is injected automatically, so you don't need 
the @InjectObject annotation.


Regards,
Norbi

Ryan Cuprak wrote:

 D'oh was a simple fix, use service:
 @InjectObject("service:tapestry.ognl.ExpressionEvaluator")
 
On Wednesday, August 16, 2006, at 07:54AM, Ryan Cuprak <[EMAIL PROTECTED]> wrote:


  

Thanks,
That is much simpler!
For the ExpressionTableColumn I need a ExpressionEvaluator as the last 
parameter. I think it is a tapestry service (still digging through the binding 
files), thought this would work:
   @InjectObject("infrastructure:tapestry.ognl.ExpressionEvaluator")
   public abstract ExpressionEvaluator getExpressionEvaluator();
  (also tried engine-service)

However I get a nice exception that it can't find the service etc.

-Ryan 


On Wednesday, August 16, 2006, at 07:10AM, Robert Zeigler <[EMAIL PROTECTED]> 
wrote:



If you want, you don't even have to implement ITableColumnModel.
just do something like:
.html:


.java:

public List getColumnList() {
   List ret = new ArrayList();
   String columnId="callPointH";
   String columnHeader="Call Point H";
   //not that the root of your ognl expression is the current row obj.
   String ognlExpression = "callPoinH";
   boolean sortable=true;
   ret.add(new
ExpressionTableColumn(columnId,columnHeeader,ognlExpression,sortable);
   return ret;
}

Ryan Cuprak wrote:
  
Hello, 
 I am working creating a table for which the number of columns is dynamic (user can control which columns they want displayed). What is the proper approach for implementing the behavior? 

  Thus far I created an implementation of ITableColumnModel which then returns the custom set of columns. I initially returned SimpleTableColumn instances but was getting a 'Unable to read OGNL expression '' of [EMAIL PROTECTED]/image/bands.tableColumns]: tableColumnRenderer' exception (src below). After getting this exception I thought my approach might be wrong. Looking over the code I was a little puzzled on how my column would extract the values from the model etc. Looking through the contrib:table source I chanced upon 'ExpressionTableColumn'. There are no java docs so I am not quiet sure how it is supposed to be used. From the title I 'think' this would take ognl expressions and retrieve the values from my data model? However, I am not quiet sure how to contruct an instance - where/what do I use for an ExpressionEvaluator? 


Page spec:
 




 


My TableColumnModel (only one field, was trying to get it working first..):
 public class BandSummaryColumnModel implements ITableColumnModel {

private static final Logger logger = 
Logger.getLogger(BandSummaryColumnModel.class);

private Map _columns;

public BandSummaryColumnModel() {
if(logger.isDebugEnabled()) logger.debug("Instantiating 
BandSummaryColumnModel");
_columns = new HashMap();
_columns.put("callPointH",new 
SimpleTableColumn("callPointH","callPointH",true));
}

public int getColumnCount() {
if(logger.isDebugEnabled()) logger.debug("Column count: " + 
_columns.size());
return _columns.size();
}

public ITableColumn getColumn(String string) {
if(logger.isDebugEnabled()) logger.debug("Column requested: " + string);
return _columns.get(string);
}

public Iterator getColumns() {
if(logger.isDebugEnabled()) logger.debug("Column iterator requested");
return _columns.entrySet().iterator();
}
}

 Thanks!
 Ryan



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






-
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: Quick Contrib:Table question (how to get an ExpressionEvaluator?)

2006-08-16 Thread Ryan Cuprak

 D'oh was a simple fix, use service:
 @InjectObject("service:tapestry.ognl.ExpressionEvaluator")
 
On Wednesday, August 16, 2006, at 07:54AM, Ryan Cuprak <[EMAIL PROTECTED]> 
wrote:

>
> Thanks,
> That is much simpler!
> For the ExpressionTableColumn I need a ExpressionEvaluator as the last 
> parameter. I think it is a tapestry service (still digging through the 
> binding files), thought this would work:
>@InjectObject("infrastructure:tapestry.ognl.ExpressionEvaluator")
>public abstract ExpressionEvaluator getExpressionEvaluator();
>   (also tried engine-service)
>
> However I get a nice exception that it can't find the service etc.
>
> -Ryan 
> 
>On Wednesday, August 16, 2006, at 07:10AM, Robert Zeigler <[EMAIL PROTECTED]> 
>wrote:
>
>>If you want, you don't even have to implement ITableColumnModel.
>>just do something like:
>>.html:
>>>columns="ognl:columnList"/>
>>
>>.java:
>>
>>public List getColumnList() {
>>List ret = new ArrayList();
>>String columnId="callPointH";
>>String columnHeader="Call Point H";
>>//not that the root of your ognl expression is the current row obj.
>>String ognlExpression = "callPoinH";
>>boolean sortable=true;
>>ret.add(new
>>ExpressionTableColumn(columnId,columnHeeader,ognlExpression,sortable);
>>return ret;
>>}
>>
>>Ryan Cuprak wrote:
>>> Hello, 
>>>  I am working creating a table for which the number of columns is dynamic 
>>> (user can control which columns they want displayed). What is the proper 
>>> approach for implementing the behavior? 
>>> 
>>>   Thus far I created an implementation of ITableColumnModel which then 
>>> returns the custom set of columns. I initially returned SimpleTableColumn 
>>> instances but was getting a 'Unable to read OGNL expression '>> expression>' of [EMAIL PROTECTED]/image/bands.tableColumns]: 
>>> tableColumnRenderer' exception (src below). After getting this exception I 
>>> thought my approach might be wrong. Looking over the code I was a little 
>>> puzzled on how my column would extract the values from the model etc. 
>>> Looking through the contrib:table source I chanced upon 
>>> 'ExpressionTableColumn'. There are no java docs so I am not quiet sure how 
>>> it is supposed to be used. From the title I 'think' this would take ognl 
>>> expressions and retrieve the values from my data model? However, I am not 
>>> quiet sure how to contruct an instance - where/what do I use for an 
>>> ExpressionEvaluator? 
>>> 
>>> Page spec:
>>>  
>>> 
>>> 
>>> 
>>> 
>>>  
>>> 
>>> My TableColumnModel (only one field, was trying to get it working first..):
>>>  public class BandSummaryColumnModel implements ITableColumnModel {
>>> 
>>> private static final Logger logger = 
>>> Logger.getLogger(BandSummaryColumnModel.class);
>>> 
>>> private Map _columns;
>>> 
>>> public BandSummaryColumnModel() {
>>> if(logger.isDebugEnabled()) logger.debug("Instantiating 
>>> BandSummaryColumnModel");
>>> _columns = new HashMap();
>>> _columns.put("callPointH",new 
>>> SimpleTableColumn("callPointH","callPointH",true));
>>> }
>>> 
>>> public int getColumnCount() {
>>> if(logger.isDebugEnabled()) logger.debug("Column count: " + 
>>> _columns.size());
>>> return _columns.size();
>>> }
>>> 
>>> public ITableColumn getColumn(String string) {
>>> if(logger.isDebugEnabled()) logger.debug("Column requested: " + 
>>> string);
>>> return _columns.get(string);
>>> }
>>> 
>>> public Iterator getColumns() {
>>> if(logger.isDebugEnabled()) logger.debug("Column iterator 
>>> requested");
>>> return _columns.entrySet().iterator();
>>> }
>>> }
>>> 
>>>  Thanks!
>>>  Ryan
>>> 
>>> 
>>> 
>>> -
>>> 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]
>
>
>

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



  1   2   >