Do you really need to save the image to the database?
Why not save the link then retrieve it. Just like that simple.
See my example.
http://tapestry.1045711.n5.nabble.com/T5-Auto-Generated-Picture-Gallery-Intranet-td3298328.html
--
View this message in context:
http://tapestry.1045711.n5.nabb
Keep in mind that a form could be submitted by pressing the Enter key inside
a text field. A safer approach would be to prevent the form itself from
being submitted more than once, regardless of how it is submitted.
Benny
2010/12/9 françois facon
> Hi David
>
> about stopping the event.
> did y
On Thu, 09 Dec 2010 19:41:18 -0200, Paul Stanton
wrote:
Well i admit i haven't yet used it within a tapestry app, however I have
used CKEditor in a plain HTML environment and it seemed to work fine...
I haven't tried CKEditor (the new version of FCKEditor), but FCKEditor
wasn't a piece o
Hi Thiago,
On 12/9/2010 1:10 PM, Thiago H. de Paula Figueiredo wrote:
On Thu, 09 Dec 2010 18:33:13 -0200, Chuck Kring
wrote:
I use onActivate() to return an image for a heartbeat to an Ajax
dashboard.
Why the heartbeat? Are you talking about the Tapestry heartbeat concept?
No, this is di
Hi David
about stopping the event.
did you try to implement a mixin like clickonce?
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/creatingmixins1
François
2010/12/4 David Rees
> I'm having problems figuring out how to prevent double clicks with a
> linkSubmit.
>
>
Well i admit i haven't yet used it within a tapestry app, however I have
used CKEditor in a plain HTML environment and it seemed to work fine...
On 10/12/2010 8:12 AM, Thiago H. de Paula Figueiredo wrote:
No. I guess you never tried to use it without a ready-to-use Tapestry
component. :P
--
On Thu, 09 Dec 2010 18:45:55 -0200, Paul Stanton
wrote:
why do you need an extra library?
isn't it as simple as using the built-in textarea component with some js?
No. I guess you never tried to use it without a ready-to-use Tapestry
component. :P
--
Thiago H. de Paula Figueiredo
Indepe
On Thu, 09 Dec 2010 18:33:13 -0200, Chuck Kring
wrote:
I use onActivate() to return an image for a heartbeat to an Ajax
dashboard.
Why the heartbeat? Are you talking about the Tapestry heartbeat concept?
When I proposed that, I was warned that using onActivate() to return an
image can c
Thanks for the tip, Chuck, but I can't imagine it ever being a
bottleneck for this application or any others that I tend to work on.
mrg
On Thu, Dec 9, 2010 at 3:33 PM, Chuck Kring wrote:
> I use onActivate() to return an image for a heartbeat to an Ajax dashboard.
> Using an image allows me t
why do you need an extra library?
isn't it as simple as using the built-in textarea component with some js?
On 7/12/2010 10:45 PM, 9902468 wrote:
If it doesn't work it is either a bug or misconfiguration. First of all,
double check that the required dependencies can be found from your runtime
c
I use onActivate() to return an image for a heartbeat to an Ajax
dashboard. Using an image allows me to use the onLoad event to verify
connectivity.When I proposed that, I was warned that using
onActivate() to return an image can create performance issues. In my
case I'm returning a 1-pi
Using the approach Igor mentioned - which sounds great - does the
AssetFactory cache the images or he would need to implement this if he
wanted to?
___
Everton Agner Ramos
2010/12/9 Michael Gentry
> I took a more conventional approach. I created a DatabaseImage page
> that
I took a more conventional approach. I created a DatabaseImage page
that streams the image from the database.
In the TML of the page that wants to embed an image from the database:
In the Java:
@Inject
private PageRenderLinkSource pageRenderLinkSource;
public Link getImageLink()
{
String
Ok thanks a lot!
2010/12/9 Igor Drobiazko
> There is no documentation for it as this is not an often use case. However,
> just provide you own implementation of AsssetFactory, build it or bind it
> in
> your module and make the contribution:
>
>public void contributeAssetSource(MappedConfigu
You can also handle POST events by injecting the request:
@Inject
private Request request;
And then responding the the event (in my case, "generateJSON"):
JSONObject onGenerateJSON()
{
intdisplayLength =
Integer.valueOf(request.getParameter("iDisplayLength"));
intdisplayStart =
On Thu, 09 Dec 2010 14:18:18 -0200, Kiss Izolda wrote:
Dear Tapestry Users,
Hi!
In my former application using Tapestry 5.1.0.5, I have used a feature,
that seems not to work in Tapestry 5.2.4
When setting a list of "Project" objects as a source of a Grid, the
return value of the User.to
Dear Tapestry Users,
In my former application using Tapestry 5.1.0.5, I have used a feature, that
seems not to work in Tapestry 5.2.4
When setting a list of "Project" objects as a source of a Grid, the return
value of the User.toString() is diplayed instead of the User.getName() and the
column
Hi list,
I've got an entity "Area" which can have child-Areas asf. I want to implement a
component "AreaDisplay" that renders an actionLink for each area that shall
update a zone with children. The tml is as follows:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
xmlns:p="tapestry:p
Hello,
I have a TestNG method
@BeforeClass
public void startRegistry() {
registry =
RegistryBuilder.buildAndStartupRegistry(TestModule.class);
hub = registry.getService(RegistryShutdownHub.class);
ConfigurationService configurationService =
registry.getService(Conf
There is no documentation for it as this is not an often use case. However,
just provide you own implementation of AsssetFactory, build it or bind it in
your module and make the contribution:
public void contributeAssetSource(MappedConfiguration configuration, @InjectService("DbAssetFactory")
If you want to make an ajax call from your own javascript you can do the
following (T5.1). In this example we just stick the value you want to
cache in an @Persist'd field.
In your page/component .java:
@Persist
private String valueToStore;
public StreamResponse onYourEventName(String valueToS
Hi!
I would like to store uploaded images in the database and then use them in
template files.
Are there any examples of how to do this? I.e. how to define a new
AssetFactory and contribute it to the AssetSource service configuration.
Thanks in advance,
Gunnar Eketrapp (from a very cold and sno
Hi Juan,
Thanks for the response, this is definitely a possibility for me. Am
also going to try Thiago's answer to Tim's question on calling Tap from
plain javascript.
Cheers Richard.
-Original Message-
From: Juan E. Maya
Reply-to: "Tapestry users"
To: Tapestry users , r...@su3analyt
23 matches
Mail list logo