T5.0.7 is the encoding solved? (org.tapestry.upload)

2008-01-20 Thread Dapeng

today i hit the problem

http://www.nabble.com/T5.0.7-still-can't-resolve-encoding.-td14521638.html




*java*.lang.NullPointerException: charsetName

   *java*.lang.String.(String.*java*:442)
   *java*.lang.String.(String.*java*:516)
   
*org*.*apache*.*commons*.*fileupload*.*disk*.*DiskFileItem*.*getString*(*DiskFileItem*.*java*:*349*) 






any quick solution to this ? (i am not using spring)




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



Re: [ANN]: Seam for T5

2008-01-20 Thread Borut Bolčina
Hello Igor,

can you describe in a few words what this integration offers. It seems like
a dream marriage, but still...

Regards,
Borut

2008/1/21, Igor Drobiazko <[EMAIL PROTECTED]>:
>
> Hi all,
>
> Seam integration with Tapestry 5 is available in Tacos 5.
>
> http://tacos.sourceforge.net/tacos5/tacos-seam/index.html
>
> --
> Best regards,
>
> Igor Drobiazko
>


Re: T5 : tapestry-hibernate : rollback when exception was thrown

2008-01-20 Thread Foror
Try session.connection().commit();

o> Please tell me how to rollback the current transaction when a exception was
o> thrown!!!


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



Re: [ANN]: Seam for T5

2008-01-20 Thread Angelo Chen

Hi,

Good news, a few questions:

1) Any tutorials on using Seam with T5?  I tried Seam, up to the point of
booking example, stop when i know I have to learn something about JSF. A
'hello world' tutorial with T5 will be helpful.

2) if an app uses Seam, do we still need Tapestry-hibernate?

Thanks,

A.C.



Igor Drobiazko wrote:
> 
> Hi all,
> 
> Seam integration with Tapestry 5 is available in Tacos 5.
> 
> http://tacos.sourceforge.net/tacos5/tacos-seam/index.html
> 
> -- 
> Best regards,
> 
> Igor Drobiazko
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-ANN-%3A-Seam-for-T5-tp14988484p14990396.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5: TapestryTestCase newbie

2008-01-20 Thread Angelo Chen

Hi,

I'm trying to use TapestryTestCase, here is a simple case that I don't know
how to handle:

here is the object under test:

public class MyServiceImpl implements MyService {

final private Session session;
public MyServiceImpl(Session session) {
this.session = session;
}

public void appendUsr() {
Usr usr = new Usr();
session.save(usr);
}
}

and here is the test code:

public class MyServiceImplTest extends TapestryTestCase {

@Test
public void test() {
Session session = newMock(Session.class);
MyServiceImpl service = new MyServiceImpl(session);

expect(session.save(new Usr())).andReturn(null); // is this correct
way to specify expectation?

replay();
service.appendUsr();
verify();
}
}

I always get :

Unexpected method call Session.save...

Any idea what's wrong here? Thanks,

A.C.



-- 
View this message in context: 
http://www.nabble.com/T5%3A-TapestryTestCase-newbie-tp14990341p14990341.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5 : tapestry-hibernate : rollback when exception was thrown

2008-01-20 Thread osamuo

I am using the tapestry-hibernate and 'hibernate.connection.autocommit' in
hibernate.cfg.xml is set to false.

After throwing a exception, transaction was committed.

So I called HibernateSessionManager#abort(), but the transaction was still
committed.

Please tell me how to rollback the current transaction when a exception was
thrown!!!



@Inject
Session session;

public Object onSubmit(){
 User user = new User();
 user.setName( "tapestry" );
 session.save( user );
 
 throw new RuntimException() // for test
}
-

Osamuo

-- 
View this message in context: 
http://www.nabble.com/T5-%3A-tapestry-hibernate-%3A-rollback-when-exception-was-thrown-tp14990335p14990335.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: Override Header Names for Grid Component

2008-01-20 Thread DougS

Has anyone been able to override the Grid header?  I have been unable to do
this using .

Adam Ayres wrote:
> 
> I too wish to override the header cells of my grid but I am not able to
> get this to work.  The cell override works correctly, but I am not able
> to get the header override to work.  I am on 5.0.7, here is a simplified
> version of the code I am using:
> 
> 
>   
>   
>   
>   
>   
>   
>   
> 
> 
> Thanks,
> Adam
> 
> 
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, January 09, 2008 5:25 PM
> To: Tapestry users
> Subject: Re: Override Header Names for Grid Component
> 
> Grid can be customized much like a cell; you provide a 
> with the name "propertyheader" (that is, the property name with suffix
> "header") and you can put whatever you want into the header at that
> point.  Tapestry will render the  element, your parameter renders
> everything inside.
> 
> On Jan 9, 2008 12:00 AM, Peter Stavrinides <[EMAIL PROTECTED]>
> wrote:
>> I didn't seem to get any response, let me try rephrase this question,
>> how do you customize the grid component, particularly the header... I
>> want to add an icon or two, I noticed in the docs there is a
> GridColumns
>> component as well, an example would really help me out.
>>
>> Thanks,
>> Peter
>>
>>
>> Peter Stavrinides wrote:
>> > Hi
>> >
>> > I have a simple grid component and I wish to override the grids
> header
>> > names with different names or even an image in some cases (or a
>> > combination of text and an image)
>> >
>> > Is this possible using a  option?  something like this
>> > example that I am using for rendering a cell
>> >
>> >
>> >
>> > /castle/images/rookicon.gif  Due Diligence
>> >   
>> >
>> > Thanks,
>> > Peter
>> >
>> >
>> >
>> >
> -
>> > 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]
>>
>>
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Override-Header-Names-for-Grid-Component-tp14687353p14989394.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [ANN]: Seam for T5

2008-01-20 Thread Howard Lewis Ship
This is excellent news, people have really wanted some kind of
conversational state in T5 and I've had my hands full.  Can't wait to
check it out.

On Jan 20, 2008 3:28 PM, Igor Drobiazko <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Seam integration with Tapestry 5 is available in Tacos 5.
>
> http://tacos.sourceforge.net/tacos5/tacos-seam/index.html
>
> --
> Best regards,
>
> Igor Drobiazko
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



[ANN]: Seam for T5

2008-01-20 Thread Igor Drobiazko
Hi all,

Seam integration with Tapestry 5 is available in Tacos 5.

http://tacos.sourceforge.net/tacos5/tacos-seam/index.html

-- 
Best regards,

Igor Drobiazko


Re: T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-20 Thread Howard Lewis Ship
By the time it executes, it is too late to render a response with the
exception.  There's nothing that can catch the exception ... the only
thing "above" ThreadCleanupHubImpl is the servlet and then the servlet
container.  Further, it is very important that every cleanup listener
be invoked, or you could experience some memory leaks in the
application, as threads hold onto objects inside ThreadLocals.

On Jan 11, 2008 2:33 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> ThreadCleanupHubImpl.cleanup (line 53) catches exceptions thrown by service 
> initialization cleanup.  It logs them, which is good, but it doesn't pass 
> them up, which is causing me problems.  I want to know if Hibernate 
> initialized successfully, but this prevents me from seeing exceptions thrown 
> during the transaction commit in 
> HibernateSessionManagerImpl.threadDidCleanup.  Is this an oversight or is 
> there a design goal of having the Registry come up no matter what?
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-20 Thread Howard Lewis Ship
On Jan 18, 2008 6:20 PM, Daniel Jue <[EMAIL PROTECTED]> wrote:
> This is bordering on a way around the "static structure, dynamic
> content" vision!  Not that we need to weasel around that vision to
> make great applications, but this is a way to have the best of both
> worlds--the performance of semi-cached templates/classes with the
> flexibility of live structure editing.

That could be dangerous.  It would be like continously re-deploying
your application.  You will hit problems where version #1 of a page
uses one structure, reflected in its action URLs, but by the time you
submit, it's version #2 and the action URL no longer makes sense.

-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: How to use jquery instead of prototype? Any idea?

2008-01-20 Thread Christian Gorbach

@T5:
you can use both, prototype and jquery together:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries

If you want to completly replace prototype you will have to re-implement the
core tapestry components to use jquery. which should not be that hard...

And...yes, jquery is the more elegant js framework.*sigh*.  imho.
regards
c)hri


yuan gogo wrote:
> 
> TIA & Best regards!
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-jquery-instead-of-prototype--Any-idea--tp14950944p14982215.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T4.1.3/4.1.4] Get HTML output of request (for caching)?

2008-01-20 Thread Kaspar Fischer


On 19.01.2008, at 19:06, Andreas Andreou wrote:


I've created & used
http://tapfx.cvs.sourceforge.net/tapfx/tapfx-tapestry4/src/java/net/ 
sf/tapfx/components/cache/


It should work for 4.1.x & i'll probably need it some time soon,  
so, take a look


Wow! Thanks a lot, that's great!

Kaspar


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



Re: Ajax related trouble

2008-01-20 Thread Alp Çevik
Hi Andreas,

I am using 4.1.3.

The problem I am experiencing with the responsebuilder methods is I cannot
retrieve the MarkupWriter, getWriter within the responsebuilder returns
null. Thought it was something related to the lifecycle of tapestry
rendering and stuff. I didnt get into internals so I gave up trying to get a
handle. I dont know if initialization of a new MArkupwriter should do the
trick, if it does, then there is this problem of acquiring the printwriter,
where do I get it? a new instance is ok there too? (Maybe I should work on
the internals more before asking these questions, these may sound real
silly, but i do hope that I dont need to get all the details of the tapestry
engine in order to trigger some client side function.)

I guess I will be working on 4.1.4 as you suggested, as I also do want the
features of dojo 1.0.

About the documentation, it would be great to include some details about
calling a client side script, which is tough to find out, as I have been
looking into the matter for several hours now but was unable to get the
results yet. I also own the tapestry in action book but still it is tough to
find answers.

Thank you,
Alp



On Jan 20, 2008 3:26 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote:

> Which Tapestry version is this with?
>
> I think there was a change in 4.1.4-SNAPSHOT that handles the
> nullpointer exception
> when using addinitializationscript.
>
> On the other hand, let me propose another solution that (I think)
> better works in your case
>
> ResponseBuilder.addStatusMessage(IMarkupWriter writer, String
> category, String text)
> - you can get the responseBuilder from the currect IRequestCycle -.
>
> When the ajax response arrives, tapestry will 'publish' the text using
> the given category, i.e.
> it will execute for you: dojo.event.topic.publish('myCategoy','myText')
>
> So, if you're subscribed to that topic, your custom js functions can
> be notified, i.e.
> dojo.event.topic.subscribe('myCategory', function(msg) { alert(msg);
> /* do custom processing here */ } );
>
> I'll raise a documentation issue for this - i think i missed explaining
> it.
>
>
>
>
> On Jan 20, 2008 1:10 AM, Alp Çevik <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> > I am a newbie trying to develop some app using Tapestry. I currently am
> > having some trouble using the ajax functionality.
> >
> > The thing is, I am trying to use some 3rd party flash charting component
> > (Fusion charts v2) which I would like to update when data changes. The
> data
> > is also changed by the application which contains the charts.
> > 1- I have to make some javascript function calls to update the chart
> > 2- the chart should be updated after new data is sent to the server and
> > processed
> >
> > I am using Directlink and update components to process the changed data
> on
> > the server, which works smoothly. The trouble is, I need to find some
> way to
> > trigger the function to update the charts after the directlink listener
> does
> > its job.
> >
> > - thought of implementing a servlet for using ajax calls within
> tapestry,
> > but as the objects tend to change, it costs a lot to overcome the
> > synchronization issue with tapestry & the servlet
> > - I have tried updateing components for the part that runs the
> javascript,
> > receiving the javascript function call as new content with ajax, which
> > resulted in nonworking code in IE.
> > - tried using contrib Xtile component, noticing that I have to be
> calling
> > the listener with this component also and handle all the ajax related
> stuff
> > which current direct link is doing
> > - tried using event handler annotations, which did not work as the
> > javascript method that starts the process on eventhandler has no
> relations
> > to the directlink listener.
> > - tried getting the responsebuilder and outputting the script as an
> > initialization script, using write..script, during which I tried to
> obtain
> > some reference to the MarkupWriter hopelessly, then tried
> > addinitializationscript and got a nullpointer exception that I could not
> > figure out, though I could get the component and stuff on debugger.
> >
> > Thank you in advance,
> >
> > Alp
> >
>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: org.apache.tapestry.page-pool-min-idle

2008-01-20 Thread Marcus Schulte
To override "FactoryDefaults" you must use another SymbolSource. Most of the
time this will be "ApplicationDefaults".

2008/1/18, Kaspar Fischer <[EMAIL PROTECTED]>:
>
>
> On 12.01.2008, at 02:47, Kaspar Fischer wrote:
> > How would I do this?
> >
> > 
> >  > value="4" />
> > 
> >
> > Or do I have to use something like "InfrastructureOverrides"? The
> > latter is used to
> > override the exception settings, see
> >
> >   http://tapestry.apache.org/tapestry4.1/developmentguide/
> > exceptionpages.html
> >
>
> I've tried the former approach and it does not work:
>
>Caused by: org.apache.hivemind.ApplicationRuntimeException:
> Element default (at jar:file:...tomcat/wtpwebapps/KC/WEB-INF/lib/
> tapestry-framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37,
> column 78) contains errors: Value for attribute
> 'symbol' ('org.apache.tapestry.page-pool-min-idle') duplicates a
> prior instance at context:/WEB-INF/hivemodule.xml, line 5, column 72.
> [jar:file...tomcat/wtpwebapps/KC/WEB-INF/lib/tapestry-
> framework-4.1.3.jar!/META-INF/tapestry.page.xml, line 37, column 78]
> at org.apache.hivemind.impl.SchemaElement.validateAttributes
> (SchemaElement.java:185)
> at org.apache.hivemind.impl.SchemaProcessorImpl.processElement
> (SchemaProcessorImpl.java:251)
> at org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement
> (SchemaProcessorImpl.java:235)
>
> So I have tried the latter approach (again in hivemodule.xml):
>
>   
>
>   
>
> With this, no errors are reported. But maybe the configuration is
> just ignored?
> How can I verify the "page-pool-min-idle" property has been set?
>
> Thanks,
> Kaspar
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Marcus Schulte
http://marcus-schulte.blogspot.com