Re: AW: AW: AW: Styling label tags

2013-08-28 Thread Lucio Crusca
In data martedì 27 agosto 2013 15:58:52, francois meillet ha scritto:
 try that
 form wicket:id=form
 label wicket:id=label_tag for=anything
 span  wicket:id=label_tag_Text /span
 /label
 input wicket:id=name type=text size=40 id=anything 
 /form

Maybe that would work to some extent, but it would have at least the following 
issues:

1. it wouldn't pass HTML validation (label for=... must refer to an 
existing input id=...)

2. Given 1 above, it wouldn't be possible to reuse the panel in a 
RepeatingView and obtain valid HTML anymore, because in RepeatingViews Wicket 
needs wicket:for attribute in order to generate valid for=... and id=... 
pairs.

3. it wouldn't pass to the browser the information about what label matches 
what input field (the fact they invented the label tag must mean something, 
right?)
 


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



How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi All,

I have a use case like this which needs some help. There is folder in my
web app called images. There are some images in that folder which are
dynamically added. In my application, I want to list down URLs for all
these images. Can any one give me some hints ?

Thanks!

-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Maxim Solodovnik
((WebApplication) WebApplication.get()).getServletContext()
.getRealPath(images)


On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com wrote:

 Hi All,

 I have a use case like this which needs some help. There is folder in my
 web app called images. There are some images in that folder which are
 dynamically added. In my application, I want to list down URLs for all
 these images. Can any one give me some hints ?

 Thanks!

 --
 Regards
 Andun S.L. Gunawardana
 Undergraduate
 Department of Computer Science And Engineering
 University of Moratuwa
 Sri Lanka

 Blog - http://www.insightforfuture.blogspot.com/
 LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
 Twitter -http://twitter.com/AndunSLG




-- 
WBR
Maxim aka solomax


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi Maxim,

I tried that method. In my web app I can access a image using this url,

http://localhost:8080/ClipArts/images.jpeg

Then I tried,

((WebApplication)
WebApplication.get()).getServletContext().getRealPath(ClipArts)
((WebApplication)
WebApplication.get()).getServletContext().getRealPath(ClipArts/images.jpeg)
((WebApplication)
WebApplication.get()).getServletContext().getRealPath(/ClipArts/images.jpeg)

Each of these cases it return null. Also I am suing this code inside a
Constructor of a Custom behavior. What can be the reason?

Thanks!



On Wed, Aug 28, 2013 at 4:46 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 ((WebApplication) WebApplication.get()).getServletContext()
 .getRealPath(images)


 On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com wrote:

  Hi All,
 
  I have a use case like this which needs some help. There is folder in my
  web app called images. There are some images in that folder which are
  dynamically added. In my application, I want to list down URLs for all
  these images. Can any one give me some hints ?
 
  Thanks!
 
  --
  Regards
  Andun S.L. Gunawardana
  Undergraduate
  Department of Computer Science And Engineering
  University of Moratuwa
  Sri Lanka
 
  Blog - http://www.insightforfuture.blogspot.com/
  LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
  Twitter -http://twitter.com/AndunSLG
 



 --
 WBR
 Maxim aka solomax




-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG


Re: How to get URLs for images with in a WebApp

2013-08-28 Thread Andun Sameera
Hi,

It was a issue with my IDE integration. I am running the webapp via Tomcat
in IntellijIDEA. It runs the wicket application in the bin folder of
Tomcat. Thus some issue arises. Then I tried manually with Tomcat. Then it
works.

Thanks!


On Wed, Aug 28, 2013 at 4:59 PM, Andun Sameera andun...@gmail.com wrote:

 Hi Maxim,

 I tried that method. In my web app I can access a image using this url,

 http://localhost:8080/ClipArts/images.jpeg

 Then I tried,

 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(ClipArts)
 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(ClipArts/images.jpeg)
 ((WebApplication)
 WebApplication.get()).getServletContext().getRealPath(/ClipArts/images.jpeg)

 Each of these cases it return null. Also I am suing this code inside a
 Constructor of a Custom behavior. What can be the reason?

 Thanks!



 On Wed, Aug 28, 2013 at 4:46 PM, Maxim Solodovnik solomax...@gmail.comwrote:

 ((WebApplication) WebApplication.get()).getServletContext()
 .getRealPath(images)


 On Wed, Aug 28, 2013 at 6:11 PM, Andun Sameera andun...@gmail.com
 wrote:

  Hi All,
 
  I have a use case like this which needs some help. There is folder in my
  web app called images. There are some images in that folder which are
  dynamically added. In my application, I want to list down URLs for all
  these images. Can any one give me some hints ?
 
  Thanks!
 
  --
  Regards
  Andun S.L. Gunawardana
  Undergraduate
  Department of Computer Science And Engineering
  University of Moratuwa
  Sri Lanka
 
  Blog - http://www.insightforfuture.blogspot.com/
  LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
  Twitter -http://twitter.com/AndunSLG
 



 --
 WBR
 Maxim aka solomax




 --
 Regards
 Andun S.L. Gunawardana
 Undergraduate
 Department of Computer Science And Engineering
 University of Moratuwa
 Sri Lanka

 Blog - http://www.insightforfuture.blogspot.com/
 LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
 Twitter -http://twitter.com/AndunSLG








-- 
Regards
Andun S.L. Gunawardana
Undergraduate
Department of Computer Science And Engineering
University of Moratuwa
Sri Lanka

Blog - http://www.insightforfuture.blogspot.com/
LinkedIn - http://www.linkedin.com/pub/andun-s-l-gunawardana/34/646/703
Twitter -http://twitter.com/AndunSLG


Link to last version of stateful page

2013-08-28 Thread junixar
I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.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



Directory Listings

2013-08-28 Thread alessio
Hi,

I am using Wicket 1.5.3 in a WebSphere context and encountered an
interesting behaviour which I dont fully understand.

My application uses a /* mapping to WicketServlet and the application
generally works fine. However I wonder what happens to static content
(images, ) which is requested through the same path mapping?
Due to the mapping I'd take it all requests go through Wicket and
depending on whether the content physically exists on the disk it
delivers it or processes the specified application class. Is this
correct? The question arose from an interesting phenomenon with
directories, respectively their listings 

I have a production instance running WebSphere and local development
instance using Tomcat. Requests to static content always return the
respective file. However the behaviour is different for directories.
In the case of the production server (WebSphere) it returns the
directory listing, in case of the development instance I get a Tomcat
error.

My initial assumption was, Wicket passes such requests back to the
default handler and the listing comes from the respective server, but
this does not seem to be the case as the directory listing layout I
get (only a plain list with entry name) is entirely different from
WebSphere's (fancier with entry dates, more formatting, ).

I also tried to simply map the servlet to / only (without the
wildcard) but immediately get a StringIndexOutOfBoundsException in
WebXmlFile.getFilterPath()

Does anyone have a clue what is going on here and whether Wicket
actually returns directory listings at all?

Thanks

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



Re: Link to last version of stateful page

2013-08-28 Thread Wolfgang

Hi Junixar!

You have to give the Page Object to the new Class like:
onClick() { setResponsePage(new MyPage(Frontpage.this))}

This should help.

Greetings

On 2013-08-28 15:21, junixar wrote:

I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.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: Link to last version of stateful page

2013-08-28 Thread Sven Meier

You can use a PageReference:

   PageReference reference = page.getPageReference();

   Page page = reference.getPage();

Regards
Sven

On 08/28/2013 03:21 PM, junixar wrote:

I have a number of stateful pages with some state for each page. For example
each page has already submitted form.

How can I organize a menu with links to last versions of these stateful
pages? Should I store anywhere (may be in the session) reference to
appropriate object for each page? If I use

onClick() { setResponsePage(MyPage.class); }

than I lose the previous state of the page. I want to link to last state of
the page.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Link-to-last-version-of-stateful-page-tp4661116.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: Directory Listings

2013-08-28 Thread Sven Meier

Wicket passes such requests back to the default handler


Yes, see WicketServlet#fallback()


whether Wicket actually returns directory listings at all?


No, it doesn't.

Regards
Sven


On 08/28/2013 03:40 PM, alessio wrote:

Hi,

I am using Wicket 1.5.3 in a WebSphere context and encountered an
interesting behaviour which I dont fully understand.

My application uses a /* mapping to WicketServlet and the application
generally works fine. However I wonder what happens to static content
(images, ) which is requested through the same path mapping?
Due to the mapping I'd take it all requests go through Wicket and
depending on whether the content physically exists on the disk it
delivers it or processes the specified application class. Is this
correct? The question arose from an interesting phenomenon with
directories, respectively their listings 

I have a production instance running WebSphere and local development
instance using Tomcat. Requests to static content always return the
respective file. However the behaviour is different for directories.
In the case of the production server (WebSphere) it returns the
directory listing, in case of the development instance I get a Tomcat
error.

My initial assumption was, Wicket passes such requests back to the
default handler and the listing comes from the respective server, but
this does not seem to be the case as the directory listing layout I
get (only a plain list with entry name) is entirely different from
WebSphere's (fancier with entry dates, more formatting, ).

I also tried to simply map the servlet to / only (without the
wildcard) but immediately get a StringIndexOutOfBoundsException in
WebXmlFile.getFilterPath()

Does anyone have a clue what is going on here and whether Wicket
actually returns directory listings at all?

Thanks

-
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: Directory Listings

2013-08-28 Thread alessio
Thanks, so basically the /* mapping should not interfere with
non-Wicket requests?

In other words, static content as well as potential directory listings
(respectively related error messages if disabled) will always be
passed on and served by the underlying application server (be it
WebSphere or Tomcat or .), correct?


Would you know why the StringIndexOutOfBoundsException occurs when I
map the servlet to / without the wildcard/asterisk?

I tried upgrading from 1.5.3 to 1.5.10 but still get the same exception

java.lang.StringIndexOutOfBoundsException
java.lang.String.substring(String.java:1238)
org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:249)
org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:88)
org.apache.wicket.util.file.WebXmlFile.getUniqueFilterPath(WebXmlFile.java:67)
org.apache.wicket.protocol.http.WicketFilter.getFilterPathFromWebXml(WicketFilter.java:452)
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:360)
org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:271)
javax.servlet.GenericServlet.init(GenericServlet.java:160)





On Wed, Aug 28, 2013 at 3:53 PM, Sven Meier s...@meiers.net wrote:
 Wicket passes such requests back to the default handler


 Yes, see WicketServlet#fallback()


 whether Wicket actually returns directory listings at all?


 No, it doesn't.

 Regards
 Sven


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



Re: Directory Listings

2013-08-28 Thread Sven Meier

Wicket expects the path to end in a wildcard.

Note that using WicketFilter instead of WicketServlet is recommended.

Sven

On 08/28/2013 05:07 PM, alessio wrote:

Thanks, so basically the /* mapping should not interfere with
non-Wicket requests?

In other words, static content as well as potential directory listings
(respectively related error messages if disabled) will always be
passed on and served by the underlying application server (be it
WebSphere or Tomcat or .), correct?


Would you know why the StringIndexOutOfBoundsException occurs when I
map the servlet to / without the wildcard/asterisk?

I tried upgrading from 1.5.3 to 1.5.10 but still get the same exception

java.lang.StringIndexOutOfBoundsException
java.lang.String.substring(String.java:1238)
org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:249)
org.apache.wicket.util.file.WebXmlFile.getFilterPath(WebXmlFile.java:88)
org.apache.wicket.util.file.WebXmlFile.getUniqueFilterPath(WebXmlFile.java:67)
org.apache.wicket.protocol.http.WicketFilter.getFilterPathFromWebXml(WicketFilter.java:452)
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:360)
org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:271)
javax.servlet.GenericServlet.init(GenericServlet.java:160)





On Wed, Aug 28, 2013 at 3:53 PM, Sven Meier s...@meiers.net wrote:

Wicket passes such requests back to the default handler


Yes, see WicketServlet#fallback()



whether Wicket actually returns directory listings at all?


No, it doesn't.

Regards
Sven


-
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: Thread safety of various Wicket classes?

2013-08-28 Thread sc_wicket
I'm trying to understand how Wicket deals with thread-safety.

From Wicket in Action by Martijn Dashorst  Eelco Hillenius
You never have to worry about thread-safety as long as you keep two
things in mind:
  
  *  Never share component object instances, models, and behaviors
between pages that are
  in several page maps. ...

  *  Application objects, session objects, and session stores aren't
thread-safe

I thought @Jochen Mader's explanation was eloquent, No state = threadsafe
but I'm looking for some clarification.

Latter Eelco writes about behaviors, All the methods in [the IBehavior
interface] except isTemporary share a comon feature: they have a Component
argument. This way, behaviors can be stateless...

Given that behaviors are stateless, why is it discouraged to share them?






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Thread-safety-of-various-Wicket-classes-tp4652977p4661123.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: Thread safety of various Wicket classes?

2013-08-28 Thread Sven Meier

Given that behaviors are stateless, why is it discouraged to share them?


Behaviors can be stateless, but they don't need to be.

You can share them between components in the same page. But sharing behaviors 
(or models) between pages is not possible, because each page is serialized 
separately.

Sven


On 08/28/2013 09:47 PM, sc_wicket wrote:

I'm trying to understand how Wicket deals with thread-safety.

 From Wicket in Action by Martijn Dashorst  Eelco Hillenius
 You never have to worry about thread-safety as long as you keep two
things in mind:
   
   *  Never share component object instances, models, and behaviors

between pages that are
   in several page maps. ...

   *  Application objects, session objects, and session stores aren't
thread-safe

I thought @Jochen Mader's explanation was eloquent, No state = threadsafe
but I'm looking for some clarification.

Latter Eelco writes about behaviors, All the methods in [the IBehavior
interface] except isTemporary share a comon feature: they have a Component
argument. This way, behaviors can be stateless...

Given that behaviors are stateless, why is it discouraged to share them?






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Thread-safety-of-various-Wicket-classes-tp4652977p4661123.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: Thread safety of various Wicket classes?

2013-08-28 Thread sc_wicket
Thanks. Makes sense

On Wed, Aug 28, 2013 at 3:10 PM, Sven Meier [via Apache Wicket]
ml-node+s1842946n4661124...@n4.nabble.com wrote:

Given that behaviors are stateless, why is it discouraged to share them?
 Behaviors can be stateless, but they don't need to be.
 You can share them between components in the same page. But sharing behaviors 
 (or models) between pages is not possible, because each page is serialized 
 separately.
 Sven
 On 08/28/2013 09:47 PM, sc_wicket wrote:
 I'm trying to understand how Wicket deals with thread-safety.

  From Wicket in Action by Martijn Dashorst  Eelco Hillenius
  You never have to worry about thread-safety as long as you keep two
 things in mind:

*  Never share component object instances, models, and behaviors
 between pages that are
in several page maps. ...

*  Application objects, session objects, and session stores aren't
 thread-safe

 I thought @Jochen Mader's explanation was eloquent, No state = threadsafe
 but I'm looking for some clarification.

 Latter Eelco writes about behaviors, All the methods in [the IBehavior
 interface] except isTemporary share a comon feature: they have a Component
 argument. This way, behaviors can be stateless...

 Given that behaviors are stateless, why is it discouraged to share them?






 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Thread-safety-of-various-Wicket-classes-tp4652977p4661123.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
 ___
 If you reply to this email, your message will be added to the discussion 
 below:
 http://apache-wicket.1842946.n4.nabble.com/Thread-safety-of-various-Wicket-classes-tp4652977p4661124.html
 To unsubscribe from Thread safety of various Wicket classes?, visit 
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4652977code=c3BlbmNlcmRjYXJsc29uQGdtYWlsLmNvbXw0NjUyOTc3fDE4ODczMjMwMTk=



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Thread-safety-of-various-Wicket-classes-tp4652977p4661125.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



Display Loading When Busy Navigator and DataView

2013-08-28 Thread dhongyt
Currently I have two panels.

I have one panel that is handling code that is like a PagingNavigator(custom
coded)
And another panel that is handling the DataView.

I'm currently trying to figure out the best way to show that the DataView
results are pulling data from the database when they click on the
PagingNavigator page.

In the panel that contains the PagingNavigator I have a WebMarkupContainer
that contains a loading image. That is visible and invisible depending on
the situation.
I would like that image to show when a user clicks on a Page in the
Navigator since it will be loading results from the database and disappear
when its done.

I have tried creating a function in the panel that contains the
PagingNavigator


To allow the DataView Panel to set the visibility which doesn't seem to
work.
I maybe going about this wrong, but if someone has done something like this,
how did you do it?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Display-Loading-When-Busy-Navigator-and-DataView-tp4661126.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



AjaxChannel usage

2013-08-28 Thread Steve Lowery
I would like to have my file upload requests on my site, which take much
longer than a normal request, go through a different mechanism.  I'd like
the user to still be able to click around the site and work while the file
is uploading and then when it finishes, I can pop up an All Done type
dialog.  AjaxChannel seems to me to be the mechanism to do this, but either
I am doing it wrong or it doesn't work as I'd expect.

My links I'm testing the concept with looks like (I'm using wicket 6.10.0):
add(new AjaxLinkVoid(slow) { @Override public void
onClick(AjaxRequestTarget target) { System.out.println(Slow Link
Clicked); try { Thread.sleep(Integer.valueOf(1)); } catch
(InterruptedException ie) {} target.appendJavaScript(alert('Done with slow
running request');); System.out.println(Done Processing Slow Link.); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) { super.updateAjaxAttributes(attributes);
attributes.setChannel(new AjaxChannel(upl, AjaxChannel.Type.QUEUE)); }
}); add(new AjaxLinkVoid(fast) { @Override public void
onClick(AjaxRequestTarget target) { System.out.println(Fast Link
Clicked); target.appendJavaScript(alert('Done with fast running
request');); System.out.println(Done Processing Fast Link.); } });

I would expect that if I click Slow, then click Fast that the fast would
return to the user before the slow, but that's not happening.

I can attach a quickstart and create an issue in JIRA if that is the route
to go if I am doing it right.  If I'm doing it wrong, can someone let me
know how I can accomplish what I'm looking to do?

Thanks,
Steve


Re: DropDownChoice with RequiredTextField

2013-08-28 Thread Vignesh Palanisamy
Thanks. its working...


On Wed, Aug 28, 2013 at 11:56 AM, James Selvakumar ja...@mcruncher.comwrote:

 Try calling form.modelChanged() before you add the component to the ajax
 target.


 On Mon, Aug 12, 2013 at 9:37 AM, Vignesh Palanisamy
 vign...@mcruncher.comwrote:

  Hi,
 
  i had a CompoundPropertyModel form.
  In that form i had added RequiredTextField and a DropDownChoice.
  While changing the dropdownchoice, RequiredtestField have to change.
 
  for that, I had mark SetOutputMarkUpId true to the RequiredTestField and
  add ajaxFormUpdatingBehaviour to the dropdownchoice add the
 dropdownchoice
  to the target. it works fine
 
  But my problem is after changing the Dropdownchoice i had clear the
  RequiredTextField and click save the is required error message arise for
  the RequiredTextField. Then once again i had change the dropdownchoice
 now
  the RequiredField is not updating.
 
 
 
  Thanks
 
   Vignesh Palanisamy
 



 --
 Thanks  regards
 James Selvakumar
 mCruncher