Yes it needs modification..
http://stackoverflow.com/questions/2653963/why-doesnt-javascript-function-aliasing-work
regards
Taha
On Fri, Jul 8, 2011 at 4:57 AM, jklecko wrote:
> Hi,
>
> Just wondering if anyone else is getting an exception thrown when using
> Tapestry.debug() in Chrome (t5-con
Hi
Have you tried the modaldialog at
https://github.com/tawus/tawus/tree/master/tawus-addons
Here is an example
public class ModalDialogWithForm
{
@Property
@Persist(PersistenceConstants.FLASH)
private String name;
@Property
@Persist(PersistenceConstants.FLASH)
private String
Hi,
Just wondering if anyone else is getting an exception thrown when using
Tapestry.debug() in Chrome (t5-console.js - line 59 - "uncaught TypeError:
Illegal invocation" ). It appears to work in FF and IE.
thanks,
J
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/t5-
I'm attempting to display a ModalBox dialog with a form in it and
submit that form via AJAX. I've tried a few components people have
posted to the list. The display of the form works great, but Tapestry
refuses to make it submit via AJAX.
I want to do this so I can display validation errors
On Thu, 07 Jul 2011 15:02:05 -0300, Mark wrote:
Just implement a StringRenderCommand. :)
Perhaps I misunderstood. I can't seem to find an interface or class
called a StringRenderCommand in the JavaDocs anywhere. Am I looking
in the wrong place?
I'm suggesting you to write one. ;)
--
Thia
>
>> I was thinking that there should be a way to do it with just a string,
>> but I guess that won't work because a string will try to send the
>> browser to a new page instead of just updating the part that needs to
>> be updated.
>
> Just implement a StringRenderCommand. :)
Perhaps I misunders
Ah, sorry. I didn't read closely what you were trying to do. For ajax
response you need a RenderCommand, as Thiago said...
On Thu, Jul 7, 2011 at 10:02 AM, Mark wrote:
> Josh,
>
> Thats what I thought originally. This is for a ModalDialog using
> Taha's addon. When someone clicks "more info" it
On Thu, 07 Jul 2011 14:15:46 -0300, Mark wrote:
return new StringRenderable("" + person.getName() + "");
It should implement RenderCommand, not Renderable.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars
On Thu, Jul 7, 2011 at 11:39 AM, Thiago H. de Paula Figueiredo
wrote:
>> I was thinking that there should be a way to do it with just a string,
>> but I guess that won't work because a string will try to send the
>> browser to a new page instead of just updating the part that needs to
>> be update
Hi Nillehammer,
*THANKS* for the help. It works like a charm
Cheers!
On Wed, Jul 6, 2011 at 6:13 PM, Nillehammer <
tapestry.nilleham...@winfonet.eu> wrote:
> Hi Juan,
>
> thanks for providing the code. I have implemented it (with some slight
> changes to get it to compile) and now I see the sam
Josh,
Thats what I thought originally. This is for a ModalDialog using
Taha's addon. When someone clicks "more info" it pops up with a modal
dialog box and the contents are determined by this method. If I
return a String, Tapestry tries to find a page that matches the String
and return that ins
Have you tried returning a String? There is a built-in TypeCoercer for
String -> Renderable
This is implemented using StringRenderable which uses write(text) (not
writeRaw) so your html will be escaped.
Josh
On Thu, Jul 7, 2011 at 9:35 AM, Mark wrote:
> On Thu, Jul 7, 2011 at 6:34 AM, Thiago H.
On Thu, 07 Jul 2011 13:35:47 -0300, Mark wrote:
Ah ok. So something along the lines of this?
Object onShowDialogFromMoreInfo(final Person person) {
return new RenderCommand()
{
public void render(MarkupWriter writer, RenderQueue queue)
{
On Thu, Jul 7, 2011 at 6:34 AM, Thiago H. de Paula Figueiredo
wrote:
> On Thu, 07 Jul 2011 01:25:39 -0300, Mark wrote:
>
>> Is there a better way to construct a block from a string in Java than
>> this?
>>
>> Block onShowDialogFromMoreInfo(TicketClass ticketClass) {
>> return new Rende
Thanks both, you just hit the note...,
though I was pretty sure I had put it on the right place,... well... I
didn't.
Sorry for the buzz
Nicolás.-
On Thu, Jul 7, 2011 at 12:29 PM, Taha Hafeez wrote:
> Hi
>
> Where have you placed the component template, it should go in
> src/main/resources/te
Are you sure the component template is in the classpath in the same
package as the component class?
On Thu, 07 Jul 2011 11:54:35 -0300, Nicolas Barrera
wrote:
Hi,
I just wanted to run this test..., I got a tapestry archetype and added
this
code in the components package:
Comp1.java:
Hi
Where have you placed the component template, it should go in
src/main/resources/testComponent/components in case your application package
is testComponent.
regards
Taha
On Thu, Jul 7, 2011 at 8:24 PM, Nicolas Barrera wrote:
> Hi,
>
> I just wanted to run this test..., I got a tapestry arch
Hi,
I just wanted to run this test..., I got a tapestry archetype and added this
code in the components package:
Comp1.java:
package testComponent.components;
>
> public class Comp1 {
>
> }
>
>
Comp1.tml
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
> xmlns:p="tapestry:parameter">
Thanks for that Josh. I've fixed the typo and are not using t:id.
On 6 July 2011 21:06, Josh Canfield wrote:
> You have a typo in the tml. Your parameter is "selectedBatchStatus"
> and you are binding "selectedBatchedStatus"
> >private RepairListStatus selectedBatchStatus;
> > t:selectedBatc
On Thu, 07 Jul 2011 01:25:39 -0300, Mark wrote:
Is there a better way to construct a block from a string in Java than
this?
Block onShowDialogFromMoreInfo(TicketClass ticketClass) {
return new RenderableAsBlock(new
StringRenderable(person.getInfo()));
}
Do you really ne
Hi Amr
I had this question in mind but couldn't get time to get back to you with an
example. Here is one
/**
* A mixin to show the character count of a component is a given html
element.
*/
@Import(library = "character-count.js")
public class CharacterCount
{
@Parameter(required = true, def
21 matches
Mail list logo