RE: jQuery Mobile styling disappears after Wicket ajax update

2012-01-26 Thread Bodis, Jerome
Correct me if i'm wrong, but with normal jquery event handlers get lost if an 
element has changed. That's why you have to reattach them with on()/live(). 
Maybe this is the case? If it's only the css class you could try to add them 
with AttributeAppender/Modifier.


 -Original Message-
 From: wicket_newb [mailto:jceb...@hestonsystems.com]
 Sent: Wednesday, January 25, 2012 11:34 PM
 To: users@wicket.apache.org
 Subject: jQuery Mobile styling disappears after Wicket ajax update
 
 I'm trying to implement a list that updates itself after a user clicks on a 
 link.
 The list is a ListView repeater and is a child of WebMarkupContainer.
 For each ListView item, I've attached an AjaxFallbackLink with the
 WebMarkupContainer object as the sole ajax target.
 
 My implementation mostly works except some jQuery Mobile styling in the
 container disappear.  Looking at Firebug, I noticed that jQuery Mobile's
 dynamically-generated class attributes are gone.
 
 As an example, my repeating divs before Wicket ajax update looks like this:
 div class=ui-collapsible-set data-role=collapsible-set
   div class=ui-collapsible data-role=collapsible
   etc...
   /div
 /div
 
 After the ajax update:
 div data-role=collapsible-set
   div data-role=collapsible
   etc...
   /div
 /div
 
 Is there a way to tell Wicket to keep jQuery Mobile styling after an ajax
 update?
 
 --
 View this message in context: http://apache-
 wicket.1842946.n4.nabble.com/jQuery-Mobile-styling-disappears-after-
 Wicket-ajax-update-tp4328874p4328874.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: jQuery Mobile styling disappears after Wicket ajax update

2012-01-26 Thread Hielke Hoeve
Correct. You need to use modifiers or appenders on your components if you 
manually apply the style or call any jquery functions to make sure that jquery 
reapplies the styles. The html gets replaced and with that any jquery additions 
generated on the client. You can use the renderHead(IHeaderResponse) function 
of any component to render resources and domready events for that component

Hielke
 
-Original Message-
From: Bodis, Jerome [mailto:bo...@uni-mainz.de] 
Sent: donderdag 26 januari 2012 9:03
To: 'users@wicket.apache.org'
Subject: RE: jQuery Mobile styling disappears after Wicket ajax update

Correct me if i'm wrong, but with normal jquery event handlers get lost if an 
element has changed. That's why you have to reattach them with on()/live(). 
Maybe this is the case? If it's only the css class you could try to add them 
with AttributeAppender/Modifier.


 -Original Message-
 From: wicket_newb [mailto:jceb...@hestonsystems.com]
 Sent: Wednesday, January 25, 2012 11:34 PM
 To: users@wicket.apache.org
 Subject: jQuery Mobile styling disappears after Wicket ajax update
 
 I'm trying to implement a list that updates itself after a user clicks on a 
 link.
 The list is a ListView repeater and is a child of WebMarkupContainer.
 For each ListView item, I've attached an AjaxFallbackLink with the 
 WebMarkupContainer object as the sole ajax target.
 
 My implementation mostly works except some jQuery Mobile styling in 
 the container disappear.  Looking at Firebug, I noticed that jQuery 
 Mobile's dynamically-generated class attributes are gone.
 
 As an example, my repeating divs before Wicket ajax update looks like this:
 div class=ui-collapsible-set data-role=collapsible-set
   div class=ui-collapsible data-role=collapsible
   etc...
   /div
 /div
 
 After the ajax update:
 div data-role=collapsible-set
   div data-role=collapsible
   etc...
   /div
 /div
 
 Is there a way to tell Wicket to keep jQuery Mobile styling after an 
 ajax update?
 
 --
 View this message in context: http://apache-
 wicket.1842946.n4.nabble.com/jQuery-Mobile-styling-disappears-after-
 Wicket-ajax-update-tp4328874p4328874.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Trouble with Page Markup Inheritance getVariation()

2012-01-26 Thread Martin Grigorov
Hi,

Looks like a problem in Wicket.
Please create a ticket.

On Wed, Jan 25, 2012 at 10:30 PM, Bodis, Jerome bo...@uni-mainz.de wrote:
 Hi,

 I have a web page 'ChildPage' that inherits (java/markup) from a 'SuperPage' 
 ('ChildPage' -- 'SuperPage'). 'ChildPage' now needs to override 
 getVariation() based on PageParameter, for example with test. What I expect 
 is the following markup: ChildPage_test.html --- SuperPage.html.
 While this works with wicket 1.4.19 it doesn't with 1.5.x (tested with 1.5.1 
  1.5.4) __if and only if__ 'SuperPage' has a component added (a label in the 
 quickstarts).
 I read about the separation of getVariation() from getStyle() with wicket 
 1.5.x. Is my Problem related to this separation or have I missed something ?

 I attached two quickstarts showing what I mean - click on the links :-)

 Thanks in advance


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to get actual data from ByteArrayResource

2012-01-26 Thread Martin Grigorov
Hi,

I think it will be easier for you to just get the RSS from your
service (the way you give it to ByteArrayResource).
But it is possible with your approach as well (see below).

On Wed, Jan 25, 2012 at 11:55 PM, kevjay kev...@gmail.com wrote:
 I have a ByteArrayResource where I have overridden getData (RSS feed).  I
 have no problem accessing this through the browser and seeing my content.
 However, I want to inject this in an actual page via Label for debugging
 purposes.  I've tried getting a hold of the actual data a number of ways
 like the following in a Panel:

 ResourceReference resourcesReference = new RSSReference();

StringResponse tmpResponse = new StringResponse();
Attributes attrs = new Attributes(getRequestCycle().getRequest(), tmpResponse);

 resourceReference.getResource().respond(attrs);
 String test = null;
 getRequestCycle().getResponse().write(test);

rss = tmpResponse.getBuffer();


 However, nothing seems to work.  Any help is greatly appreciated!  I'm using
 wicket 1.5.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-get-actual-data-from-ByteArrayResource-tp4328722p4328722.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Veil behavior of wicketstuff-minis

2012-01-26 Thread matteus
Hi, I managed to put the veil on my page after I execute a method, but I can
not remove the veil.

I used the class shown on the site 
http://grepcode.com/file/repo1.maven.org/maven2/org.wicketstuff/minis/1.4.17.1/org/wicketstuff/minis/veil/VeilResources.java

and I can not remove. Someone could help me with this case?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4330008.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Trouble with Page Markup Inheritance getVariation()

2012-01-26 Thread Bodis, Jerome
https://issues.apache.org/jira/browse/WICKET-4361

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Veil behavior of wicketstuff-minis

2012-01-26 Thread Martin Grigorov
Show us how you use it.

On Thu, Jan 26, 2012 at 12:39 PM, matteus matteu...@hotmail.com wrote:
 Hi, I managed to put the veil on my page after I execute a method, but I can
 not remove the veil.

 I used the class shown on the site
 http://grepcode.com/file/repo1.maven.org/maven2/org.wicketstuff/minis/1.4.17.1/org/wicketstuff/minis/veil/VeilResources.java

 and I can not remove. Someone could help me with this case?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4330008.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket as a RESTful Client

2012-01-26 Thread Martin Grigorov
This is a strange architecture but ...
You can use Apache HttpClient, or URL(http://...;).openConnection()
or Ning's AsyncHttpClient to request the REST service.
With these you can get/update/delete the resources (XML, JSON, ...),
after that you have to decide how to show it.

On Thu, Jan 26, 2012 at 1:29 PM, Rahman USTA rahman.usta...@gmail.com wrote:
 Hi, i' ve built a RESTful application with JAX-RS, then i normally access
 the web service via CURL in Command Line.

 Example codes are such as ;
 ---

 @rem XML representation of all the books
 @rem curl -X GET -H Accept: application/xml
 http://localhost:8080/Rest/rs/items/books

 @rem JSon representation of all the books
 @rem curl -X GET -H Accept: application/json
 http://localhost:8080/Rest/rs/items/books

 @rem Create a book
 @rem curl -X POST --data-binary { \title\:\H3G3\, \price\:\24.0\,
 \description\:\3rd Scifi IT book\, \illustrations\:\false\,
 \isbn\:\134-234\, \nbOfPage\:\241\ } -H Content-Type:
 application/json -H Accept: application/json
 http://localhost:8080/Rest/rs/items/book
 

 How can i request to web services like above in Wicket with its own library.




 --
 Rahman USTA
 0-(531)-922-28-05
 www.kodcu.com



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket as a RESTful Client

2012-01-26 Thread Rahman USTA
Can't i do this bu using ;

public class RestfulPage extends WebPage{
@Override
protected void configureResponse(WebResponse response) {
   super.configureResponse(response);//To change body of overridden
methods use File | Settings | File Templates.
   response.sendRedirect(
http://localhost:8080/KodcuComRESTful/kodcuRS/yazilar;);
   response.addHeader(accept,application/json);
}
}

Maybe it is not probable make it in Wicket's own library. I think wicket
can do this. For example i couldnt find change the medhod state to POST
or  anything.

2012/1/26 Martin Grigorov mgrigo...@apache.org

 This is a strange architecture but ...
 You can use Apache HttpClient, or URL(http://...;).openConnection()
 or Ning's AsyncHttpClient to request the REST service.
 With these you can get/update/delete the resources (XML, JSON, ...),
 after that you have to decide how to show it.

 On Thu, Jan 26, 2012 at 1:29 PM, Rahman USTA rahman.usta...@gmail.com
 wrote:
  Hi, i' ve built a RESTful application with JAX-RS, then i normally access
  the web service via CURL in Command Line.
 
  Example codes are such as ;
  ---
 
  @rem XML representation of all the books
  @rem curl -X GET -H Accept: application/xml
  http://localhost:8080/Rest/rs/items/books
 
  @rem JSon representation of all the books
  @rem curl -X GET -H Accept: application/json
  http://localhost:8080/Rest/rs/items/books
 
  @rem Create a book
  @rem curl -X POST --data-binary { \title\:\H3G3\,
 \price\:\24.0\,
  \description\:\3rd Scifi IT book\, \illustrations\:\false\,
  \isbn\:\134-234\, \nbOfPage\:\241\ } -H Content-Type:
  application/json -H Accept: application/json
  http://localhost:8080/Rest/rs/items/book
  
 
  How can i request to web services like above in Wicket with its own
 library.
 
 
 
 
  --
  Rahman USTA
  0-(531)-922-28-05
  www.kodcu.com



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Rahman USTA
0-(531)-922-28-05
www.kodcu.com


Re: Veil behavior of wicketstuff-minis

2012-01-26 Thread matteus
In my method I call this

protected void onSubmit(AjaxRequestTarget target, Form? form) {
form.add(new Veil());
target.addComponent(form);

--  method to be execute ---

form.add(new DisabledVeil());
target.addComponent(form);

The class viel :

public class Veil extends VeilResources {
private static final long serialVersionUID = 8017992550548909810L;
private Component component;
private String cssClassName;

public Veil() {
}

public Veil(String cssClassName) {
if (!Strings.isEmpty(cssClassName))
this.cssClassName = cssClassName;
}

public void bind(Component component) {
super.bind(component);
if (this.component != null) {
throw new IllegalStateException(
This behavior is already bound to 
component. An instance of this
behavior cannot be reused between components. Bound component: 
+ 
this.component.toString());
}

this.component = component;
}

private String getCssClassName() {
return (this.cssClassName != null) ? this.cssClassName : 
wicket-veil;
}

public void renderHead(IHeaderResponse response) {
super.renderHead(response);

response.renderOnDomReadyJavascript(VeilResources.Javascript.show(this.component));
}

The class disable viel
public class DisabledVeil extends Veil {
private static final long serialVersionUID = 66447383785577749L;

public DisabledVeil() {
}

public DisabledVeil(String cssClassName) {
super(cssClassName);
}


public boolean isEnabled(Component component) {
return (super.isEnabled(component))  (component.isEnabled()) 

(component.isEnableAllowed());
}
}


the class resource:

public class VeilResources extends AbstractBehavior implements
IHeaderContributor {
private static final long serialVersionUID = -4054673989711649496L;

private static final ResourceReference JS = new
JavascriptResourceReference(VeilResources.class, wicket-veil.js);

private static final ResourceReference CSS = new
ResourceReference(VeilResources.class, wicket-veil.css);
public static final String DEFAULT_CSS_CLASS_NAME = wicket-veil;

@Override
public void bind(Component component) {
super.bind(component);
component.setOutputMarkupId(true);
}

@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(JS);
response.renderCSSReference(CSS);
}

public static class Javascript {
public static String hide(Component component) {
return Generic.hide(component.getMarkupId());
}

public static String show(Component component) {
return Generic.show(component.getMarkupId());
}

public static String show(Component component, String 
className) {
return Generic.show(component.getMarkupId(), className);
}

public static String toggle(Component component) {
return Generic.toggle(component.getMarkupId());
}

public static String toggle(Component component, String 
className) {
return Generic.toggle(component.getMarkupId(), 
className);
}

public static class Generic {
public static String hide(String markupId) {
return Wicket.Veil.toggle(' + markupId + 
');;
}

public static String show(String markupId) {
return show(markupId, wicket-veil);
}

public static String show(String markupId, String 
className) {
return Wicket.Veil.show(' + markupId + ', 
{className:' + className +
'});;
}

public static String toggle(String markupId) {
return toggle(markupId, wicket-veil);
}

public static String toggle(String markupId, String 
className) {
return Wicket.Veil.toggle(' + markupId + ', 
{className:' + className
+ '});;
}
}
}
}

when i call the class disable 

Wiquery and JQWicket crash each other!!!!

2012-01-26 Thread atomix
Wiquery and JQWicket crash each other

When using Wicket (1.5.3) + JQWicket 8.0 + Wiquery (1.5.3) , the order of
the js libraries will be wrong 


1) I've started with:

Wicket (1.5.3) + JQWicket 8.0 

*I run the TipTipPage Example ... *

*generated html:*




*Everything work fine!!!*




---
2) Then, I added :

+ Wiquery (1.5.3) to Maven's  pom.xml

Just add it, not thing more !!... Same .java file


*generated html:*


This wrong order error is *suppper weird* , do anyone know what is going
on??? 

Did Wiquery and JQWicket use some conflict library like JS 1.7R2 or
something, I can't understand it!

*Please help, really appriciate!*





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wiquery-and-JQWicket-crash-each-other-tp4330840p4330840.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Stateless forms on Wicket 1.5.4

2012-01-26 Thread André Camilo

Hi,

I think wicket 1.5.4 has a problem with stateless forms.

On the example 
http://www.wicket-library.com/wicket-examples/stateless/state-in-url , 
doing the following steps:


Submit value 10 - Value submitted: 10
Submit again value 11, and it show value submitted: 10 (and the query 
parameters have value=10)


This isn't the expected result, right?

--

*André Camilo*
Software Architect

*Premium Minds*
Av. 5 de Outubro nº176 2ºDto
1050-063 Lisboa
www.premium-minds.com http://www.premium-minds.com/

Geral: +351 217 817 555
andre.cam...@premium-minds.com mailto:andre.cam...@premium-minds.com



Re: How to get actual data from ByteArrayResource

2012-01-26 Thread kevjay
Thanks Martin!  I should have been more clear that my app is actually
creating the RSS which is why I want to display it one of my Panels for
debug purposes.  Anyways, your code below helped me finally get my solution. 
It didn't like StringResponse, but ByteArrayResponse worked just fine:

ResourceReference resourceReference = new RSSReference();
ByteArrayResponse tmpResponse = new ByteArrayResponse(); 
Attributes attrs = new Attributes(getRequestCycle().getRequest(),
tmpResponse); 
resourceReference.getResource().respond(attrs);
String rss = new String(tmpResponse.getBytes());

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-get-actual-data-from-ByteArrayResource-tp4328722p4331308.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Problems with requests to MountPath and optional parameters

2012-01-26 Thread kamiseq
maybe try date as milseconds (as long)?

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wiquery and JQWicket crash each other!!!!

2012-01-26 Thread atomix
I got answer from Wiquey developer :

Hi!

JQWicket and WiQuery do not work well together. Both aim to do the same but
using a different approach. Choose either one, not both. 

When you add WiQuery to the classpath it installs itself using a Wicket
Initializer and sets a HeaderResponseDecorator. The HeaderResponseDecorator
manages all resource references when they are of a certain type and manages
the jQuery initializing statements.

Now , my question is : Did anyone have a solution for Wiquery and JQWicket
work together, it's really a pity that we can't use them both!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wiquery-and-JQWicket-crash-each-other-tp4330840p4331638.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Feedback panels and Hibernate Validation

2012-01-26 Thread Wooldridge, Keith A
I'm trying to create a custom hibernate validator , based on bradhouse's 
solution in this StackOverflow 
threadhttp://stackoverflow.com/questions/1972933/cross-field-validation-with-hibernate-validator-jsr-303.
  I'm passing in the field name that I would like the error message to be 
associated with to addNode.  Unfortunately, my ComponentFeedbackMessageFilter 
that is associated with the field in wicket does not know that the message was 
directed to it.  I know wicket is getting the validation error from Hibernate, 
because it shows up in my unfiltered feedback panel.

Could it be that I'm adding the feedback messages from a Behavior instead of 
from a FeedbackPanel directly?  The core of the Behavior, where the messages 
get attached , is this:

@Override
public void afterRender(Component component) {
  FormComponent? fc = (FormComponent?)component;
  Response r = component.getResponse();

  FeedbackMessages messages = fc.getSession().getFeedbackMessages();

  if (messages.hasMessageFor(component)) {
r.write(ul class=\FeedbackStyle\);
IFeedbackMessageFilter filter = new 
ComponentFeedbackMessageFilter(component);
for (FeedbackMessage message : messages.messages(filter)) {
  r.write(li class=\feedbackPanel);
  r.write(message.getLevelAsString().toUpperCase());
  r.write(\);
  
r.write(Strings.escapeMarkup(message.getMessage().toString()));
  r.write(/li);
}
r.write(/ul);
  }
  r.write(/span);
}

Thanks,

Keith Wooldridge




Re: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
what version of wicket are you using?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332046.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: handling request to component - the wicket way

2012-01-26 Thread kamiseq
1.5.4 why?
if you have any resources I ve overlooked it d be great if you can share them:]

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
i asked which version because stateless components are easier in wicket 
1.5.x.  i currently have an example stateless components using wicket 6.0.x
at https://github.com/robmcguinness/wicket-stateless.  i had 1.5.x examples
but i think i lost that history when i rebased in git.  use gradle to build
(sorry don't use maven) and you can see the examples running live on local
host (examples built with Twitter Bootstrap).  you should be able to port
them to 1.5.x easily.  

this github branch is based off jolira work just refactored for testing
purposes (i haven't seen activity in jolira branch as of late).  

if you have issues send me questions or even code so I can help.  my
ultimate goal is to integrate with history api to get full back button
support.

rob



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332148.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: JavaScriptReference with TextTemplate only returns the first retrieved value

2012-01-26 Thread Adam Gray
I just ran into this today.  Has this been solved yet (in 1.4)?

On Tue, Aug 23, 2011 at 10:23 PM, Doug Leeper douglee...@yahoo.com wrote:

 I have encountered this issue as well...and I believe I know the reason for
 this behavior.

 The TextTemplateResourceReference eventually is bound to the Application
 shared resources.  It never gets reset.  So the
 TextTemplateResourceReference will always use the first variables used
  to
 substitute in the template.

 I believe the correct way to do achieve this behavior is to couple the text
 template substitution with a dynamic web resource.

 Am I correct on this?

 Has anyone done this before?

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/JavaScriptReference-with-TextTemplate-only-returns-the-first-retrieved-value-tp1877334p3764346.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org