You could keep it all Java (closer to the App Server is a good idea)
and use the Apache HTTPClient to make the HTTP request.
http://jakarta.apache.org/httpcomponents/httpcomponents-client/index.html
Christopher.
On Dec 3, 2007 11:35 PM, Daniel Jue <[EMAIL PROTECTED]> wrote:
> I guess the next st
I guess the next step is to simulate the HTTP request and then grab
the output from it. For generating html emails you wouldn't want to
do any interaction through the web browser to initiate the page
creation.
Maybe the wget approach is a good angle of attack, but needs to be
closer to the App Se
I did some research on something similar for my Buccoo project.
Although I haven't blogged about it yet, my method it may be of some
use to you.
For Buccoo I wanted all the dynamic Tapestry output to be well formed
XML. It is my understanding that components add their own HTML code at
different st
Ronald,
This is a bug in the Grid implementation. See
http://issues.apache.org/jira/browse/TAPESTRY-1901
Thanks,
Andy
On Mon, 2007-12-03 at 15:09 -0800, ronaldlee wrote:
> Thanks!
>
> I can get it to work, kind of.
>
> I am encountering a situation where in the "prepare" function, the
> "st
It's not elegant, but you could use a command-line tool like "wget".
Andy
On Mon, 2007-12-03 at 08:41 -0800, patrick whalen wrote:
> Could anyone give me any pointers or directions on how to stream the html
> output that Tapestry generates out to a text file, which would be stored in
> a specific
Hi all,
I'm a newbie at Tapestry and I'm reading Kent's book trying to get Tapestry
to work with AJAX.
In one of his examples, he has a customerCRUD.java class with the following
annotation:
@InjectComponent("customersLoop")
public abstract ForBean getRow();
public String getRowClie
Thanks!
I can get it to work, kind of.
I am encountering a situation where in the "prepare" function, the
"startIndex" is greater than the "endIndex"... the way I get that is first
get to the second page of the data (by clicking page "2"), then do a new
search to query new data, and for some re
hi jeffrey,
thanks for the response, what I want to do is, the text has some bbcode ,
I'd like to convert that to html tags, then use outputRaw to display it, any
existing components that can do that?
jeffrey ai wrote:
>
> Maybe I got your question wrong, could you just create a component to
>
You would need a Java BBCode parser for that.
-Filip
Angelo Chen skrev:
Hi,
I'd like to know know if there is a component that can display BBCode text
in the correct html format? i tried outputRaw and seems I'm wrong, any
ideas? Thanks.
A.C.
-
Maybe I got your question wrong, could you just create a component to escape
special chars in your BBCode text. One choice is to use StringEscapeUtils in
Jakarta Commons-Lang.
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> Hi,
> I'd like to know know if there is a component that can display BBCode
Anybody, any advice?
jeffrey ai wrote:
>
> Hi Folks,
>
> We have a need to provide personalized page for different user groups, so
> I tweaked some T5 services to make it possible to use personalized
> template based on a request parameter.
>
> I would like put the general idea here in case
worked perfectly, thanks. see, I knew I was missing *something* :)
-will
On Dec 3, 2007, at 1:41 PM, Filip S. Adamsen wrote:
Try moving your validation logic to onValidate. If any errors are
added to the form in this method Tapestry won't call onSuccess but
display the page again with your
Try moving your validation logic to onValidate. If any errors are added
to the form in this method Tapestry won't call onSuccess but display the
page again with your errors shown in the Errors component.
-Filip
Will Norris skrev:
As usual, I'm sure I'm just missing something here... I can't qu
You can also do hackish things like: create your model via
BeanModelSource,
add a property for your button (something like:
model.add("button",null)), then add the appropriate template markup to
override the rendering of the "button" property (if you don't,
tapestry will complain). Throw in
Is it possible to globally replace the SubmitBindings.script file used
by all the AbstractSubmit subclasses to wire up ajax events with my own
version? I've got a script that imposes an overlay on top of the
components being updated and prevents double-clicks. Right now, I can
wire it up to e
Currently, you would need to build your own Form, including an Errors
component, a BeanEditor component, and you own Submit components.
On Dec 3, 2007 12:18 PM, Christoph Jaeger <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there an easy way of adding a button to a BeanEditForm? Just an
> additional "De
Very interesting thank you
Sven Homburg a écrit :
have a look for a simple hibernated grid datasource
http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource
best regards
S.Homburg
ronaldlee schrieb:
Hi,
Does anyone know how to implement a Grid data source, or thru other
ways,
As usual, I'm sure I'm just missing something here... I can't quite
figure how to do validation of a custom component. I basically want
to do what is described here[0] about using onSuccess(), but in a
component rather than a page. I basically have a PasswordForm
component which itself ha
Hi,
is there an easy way of adding a button to a BeanEditForm? Just an
additional "Delete" or "Copy" button? Maybe like you can influence how a
specific property is displayed with a ... inside the BeanEditForm.
Thanks,
Christoph Jäger
have a look for a simple hibernated grid datasource
http://wiki.apache.org/tapestry/Tapestry5HibernateGridDatasource
best regards
S.Homburg
ronaldlee schrieb:
Hi,
Does anyone know how to implement a Grid data source, or thru other ways,
such that it will only query partial data from the d
Hi,
Does anyone know how to implement a Grid data source, or thru other ways,
such that it will only query partial data from the database, depending on
the page link user click on the Grid, and the "rowsPerPage" value set for
the Grid? I just don't want to retrieve the whole list if I only need t
I suppose you could set session-timeout to 0 in your web.xml, but that's
not recommended.
-Filip
James Sherwood skrev:
Hello,
Is there a way in T3 to make your session last until the browser is closed?
Thanks,
--James
-
To
I've done something like what you are asking in order to generate email
messages. It's not pretty, and not well supported but it can be done...
Here is the guts of the process:
protected String getHtml(String page, String[] context, EmailContext
emailContext) {
Request request = _requestG
For deploying to a server, I use Eclipse's Export-> WAR file option,
then I copy the war to the webapps directory on the server's Tomcat
installation.
Hot-reload doesn't work as well as advertised, due to Jar locking
problems. There is a workaround, but it essentially makes a new copy
of the enti
Several people including myself are using Tomcat 5.5.x as our
deployment app server. I also use it in development on my local
workstation.
I recommend searching the list for Tomcat (we're almost always talking
about Tomcat 5.0+)
I use Eclipse WTP with a Tomcat. With Tapestry 5+, It is suggested
..sorry, just ignore this message
GraphicalTabPanel panel =
(GraphicalTabPanel)this.getComponent("tabPanel");
lol
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yeap, thanks Igor. I like the idea of calling the script with a parameter,
but overall a bit much compared to the one-liner on the client side, as ugly
as it may be. Adding such a component to the contrib lib or tacos might make
sense though. I'd think others might have similar needs.
Kalle
On 1
Hi there!
I want to access the property selectedBlockID of a component called
GraphicalTabPanel inside of a page that includes this component.
The method getComponent() returns an IComponent.
GraphicalTabPanel panel = this.getComponent("GraphicalTabPanel ");
and I can not cast it to GraphicalT
I don't know if this can be done, although it would be great! It
would open the doors for sending Tapestry generated html emails, which
others have asked about. Also it would be easier to do rigorous html
code testing/profiling, since it's outside the browser.
On Dec 3, 2007 11:41 AM, patrick wh
Hi,
I m currently evaluating T5 as a framework. I am new in tapestry. Fot that
purpose I wrote a small test application that runs fine in jetty application
server. Wedo however use tomcat 5.5 as the standard application server in our
project and we must stick to this decision due to external de
Could anyone give me any pointers or directions on how to stream the html
output that Tapestry generates out to a text file, which would be stored in
a specific directory outside the Tapestry project?
I would also like to be able to do the same with assets such as css and
javascript files, though
I put mine into a selection package, like com.servprise.manager.selection.
These classes are not auto-enhanced, so I provide necessary ASOs and
services through the constructor as demonstrated in my example.
On 12/2/07 9:18 PM, in article [EMAIL PROTECTED], "Angelo Chen"
<[EMAIL PROTECTED]> wrot
I've also noticed more OGNL getProperty(null, "property") exceptions while
upgrading from 4 to 4.1. For instance, previously this would work:
...
But now it appears the tempObj
Well today I am going to scope out the usage of a supplemental getValue()
abstract method and see what that does to the mix.
I had hopes that it is not needed but thats my only route.
I remain confused about the status of inherited bindings, how to use if any and
whether they remain applicab
No, I don't think so.
E.
On Dec 3, 2007 3:00 PM, James Sherwood <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there a way in T3 to make your session last until the browser is
> closed?
>
> Thanks,
> --James
>
> -
> To unsubscribe,
Hello,
Is there a way in T3 to make your session last until the browser is closed?
Thanks,
--James
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello everybody,
I am new to tapestry and I am using Tapestry core 5.0.5.
I integrated Tapestry 5 with spring and hibernate.
I configured my application's web.xml as below -
<-spring-app configuration is here->
tapestry.app-package
com.myproje
you shold also call
registry.performRegistryStartup();
after
Registry registry = builder.build();
in the end just call :
registry.shutdown();
Davor Hrg
On Jun 14, 2007 4:01 PM, Dan Adams <[EMAIL PROTECTED]> wrote:
> So I have some test cases in which I actually need a working hibernate
Hi, Dan.
I want to same thing which you did. Could you let me know the details?
So I have some test cases in which I actually need a working hibernate
session so I'm having my tests start up an ioc registry. This took
a bit
of digging to figure out but I got it working. Here's a minimal test
Emmanuel Sowah wrote:
I read somewhere on the net that there is a Tap 5 book in the works. Where
can I get drafts of this work in progress and when would it be released?
The book is available in pre-order here :
http://www.packtpub.com/tapestry-5/book
--
Francois Armand
Etudes & Développe
Guys,
I read somewhere on the net that there is a Tap 5 book in the works. Where
can I get drafts of this work in progress and when would it be released?
Regards,
Emmanuel
Hi,
I'd like to know know if there is a component that can display BBCode text
in the correct html format? i tried outputRaw and seems I'm wrong, any
ideas? Thanks.
A.C.
--
View this message in context:
http://www.nabble.com/T5%3A-outputRaw-and-bbcode-tf4935074.html#a14125808
Sent from the Tap
Hi,
you you can do following:
-your component should implement the interface IDirect
-create a link:
public ILink getLink(){
return getDirectService().getLink(false, new
DirectServiceParameter(this));
}
- and pass the url of the link as a parameter to your Script
43 matches
Mail list logo