Re: Efficiency of 1.5 MountMapper weighted/matching algorithm

2011-10-17 Thread Martin Grigorov
We have already discussed this problem before.
I agree that caching will improve the performance and I'll try to
implement it soon.

Topicus' (Martijn's daily job) biggest application have ~ 700 mounted
pages and this code is not a hotspot for them, that's why no one spend
time on optimizing it so far.

On Sun, Oct 16, 2011 at 1:27 PM, Chris Colman
 wrote:
> I'll try to get some time to build a test to get some timings.
>
>>-Original Message-
>>From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
>>Sent: Sunday, 16 October 2011 11:55 AM
>>To: users@wicket.apache.org
>>Subject: Re: Efficiency of 1.5 MountMapper weighted/matching algorithm
>>
>>On Sat, Oct 15, 2011 at 8:28 PM, Chris Colman
>>wrote:
>>
>>> Obviously this isn't a problem during debug with a single user but
> when
>>> 1000s of pages need to be rendered each minute the time spent
> performing
>>the
>>> above operations may become significant. I haven't done any benchmark
>>> testing but from experience, the frequenct allocation and compiling
> of
>>> collections and sorting can get CPU expensive and switching to a
> caching
>>> alternative usually leads to significant performance
> improvements.
>>>
>>>
>>It'd definitely be worth optimizing if we can prove it's a bottle-neck.
>>But
>>we try to avoid premature optimization.  Can you put together some
> numbers
>>to see what kind of processing load we're talking about?  I'd be
> interested
>>in seeing % of overall processing time under load.  Something like
> "with X
>>clients browsing Y pages per minute, each page render took an average R
>>milliseconds, and Z milliseconds of this was in creating link URLs".
> Or
>>something like that.
>>
>>--
>>Jeremy Thomerson
>>http://wickettraining.com
>>*Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>
> -
> 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: NonCachingImage not showing image with GAE

2011-10-17 Thread Martin Grigorov
On Fri, Oct 14, 2011 at 8:33 PM, Ian Marshall  wrote:
> I have solved my problem by using a class that descends from
> ByteArrayResource and which overrides getData(IResource.Attributes). I
> supply an instance of this class to my NonCachingImage instead of a model.
>
> I thank Martin Grigorov for his reply to a vaguely-related posting last
> month which solved my problem!
Welcome :-)
>
>
>
> Ian Marshall wrote:
>>
>> Hello everyone,
>>
>> I use a NonCachingImage component to show an image in a form. The image
>> shows correctly when using the Google App Engine for Java (GAE/J)
>> development application server but fails to show when the code is running
>> on Google App Engine (GAE) proper.
>>
>> I believe that this may be due to the image's "src" tag not being
>> interpreted by GAE's cloud, whereas it is rendered properly by the dev app
>> server.
>>
>> Has anyone had this happening to them? Can anyone think of a solution or
>> suggestion? (Can I remove the "src" attribute?)
>>
>> Regards,
>>
>> Ian
>>
>>
>> HTML
>> 
>> [None]
>>
>>
>> Java code
>> -
>> // ImageModel extends LoadableDetachableModel
>> // ItemImageResource extends DynamicImageResource
>> ImageModel imodImage = new ImageModel(pidmModel);
>> NonCachingImage imgImage = new NonCachingImage("imgImage", imodImage);
>> frmForm.add(imgImage);
>>
>>
>> Sample HTML output
>> --
>> // This output shows an image with the GAE dev app server,
>> // but "[None]" when served by a GAE/J production server.
>> [None]>
>> src="page?8-IResourceListener-frmForm-imgImage&antiCache=1318502670796"/>
>>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/NonCachingImage-not-showing-image-with-GAE-tp3901604p3905671.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



Wicket 1.4.19 released

2011-10-17 Thread Martin Grigorov
This is the nineteenth maintenance release of the Wicket 1.4.x series. This
release brings over 13 bug fixes and 5 improvements.

Subversion tag
http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.19

Changelog
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&version=12317570

To use in Maven:

   org.apache.wicket
   wicket
   1.4.19


Download the full distribution
http://www.apache.org/dyn/closer.cgi/wicket/1.4.19 (including source)


All users are recommended to upgrade to Apache Wicket 1.5.x series
(http://wicket.apache.org/2011/09/29/wicket-1.5.1-released.html)

The Wicket Team

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



can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread TimmyDeng
I need to use DropdownChoice in a ModelWindow, but if i get the selected
value in the onSubmit method of a form, the ModelWindow will be closed. Can
you please tell me another way to get the selected value, not in the
onSubmit method of a form

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911558.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: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread manuelbarzi
add ajax behavior, listen to onchange event, and then capture the new value.
.



On Mon, Oct 17, 2011 at 12:18 PM, TimmyDeng  wrote:
> I need to use DropdownChoice in a ModelWindow, but if i get the selected
> value in the onSubmit method of a form, the ModelWindow will be closed. Can
> you please tell me another way to get the selected value, not in the
> onSubmit method of a form
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911558.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: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread TimmyDeng
Thanks for your quick reply. 
However, if the dropdownchoice is not in a form, then the
onSelectionChanged() method will not be executed. So cannot get the changed
value. Do you have further suggestion?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911802.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: Retain Focus After Ajax Update

2011-10-17 Thread vineet semwal
use ajaxforcomponentupdatingbehavior for the event onblur/onchange or
any other depending on your need

set the focus on the formcomponent ajaxrequesttarget.focuscomponent(component)

On Mon, Oct 17, 2011 at 5:04 PM, SreedharGanduri
 wrote:
> Hi,
> I have a form, and list of fields in it.
> based on input entered in the field i have to update form (remove some
> components/ add new ones).
> When i update such a field and focus in the next field, i loose the focus
> after the ajax update.
>
> Is there a way in wicket in which i can save last focused component and set
> the focus back when my model is updated?
>
> Regards
> Sree
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Retain-Focus-After-Ajax-Update-tp3911732p3911732.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
>
>



-- 
thank you,

regards,
Vineet Semwal

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



Re: can i get the selected value from DropdownChoice not in the onSubmit method of a form

2011-10-17 Thread manuelbarzi
please, note that wicket-users forum is plenty full of examples like
this, so the forum, and so the official wicket-examples. a good
suggestion is to deeply look there for an answer before posting.

as suggested before, may you add onchangeajaxbehaviour to your
dropdownchoice, as shown in the following example:

html:

http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd";
>


  Volvo
  Saab
  Mercedes
  Audi




java:

@SuppressWarnings("serial")
public class DropDownChoicePage extends WebPage {

private Entity selected;

public DropDownChoicePage() {

List list = Arrays.asList(new Entity[] { new 
Entity("coco"),
new Entity("liso"), new Entity("pata"), new Entity("tero") });

DropDownChoice select = new 
DropDownChoice("select",
new PropertyModel(this, "selected"), list);
select.setNullValid(true);
select.add(new OnChangeAjaxBehavior() {

private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(selected);
}
});
add(select);

}

public void setSelected(Entity selected) {
this.selected = selected;
}

public class Entity implements Serializable {

private String id;

public Entity(String id) {
this.setId(id);
}

public void setId(String id) {
this.id = id;
}

public String getId() {
return id;
}

public String toString() {
return getId();
}
}
}



On Mon, Oct 17, 2011 at 2:10 PM, TimmyDeng  wrote:
> Thanks for your quick reply.
> However, if the dropdownchoice is not in a form, then the
> onSelectionChanged() method will not be executed. So cannot get the changed
> value. Do you have further suggestion?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/can-i-get-the-selected-value-from-DropdownChoice-not-in-the-onSubmit-method-of-a-form-tp3911558p3911802.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: Retain Focus After Ajax Update

2011-10-17 Thread Martin Grigorov
On Mon, Oct 17, 2011 at 3:17 PM, vineet semwal
 wrote:
> use ajaxforcomponentupdatingbehavior for the event onblur/onchange or
> any other depending on your need
>
> set the focus on the formcomponent ajaxrequesttarget.focuscomponent(component)
Or just tell Wicket to not focus after the Ajax response:
ajaxrequesttarget.focuscomponent(null)
This way whatever is focused after the start of the Ajax request will
stay untouched.
>
> On Mon, Oct 17, 2011 at 5:04 PM, SreedharGanduri
>  wrote:
>> Hi,
>> I have a form, and list of fields in it.
>> based on input entered in the field i have to update form (remove some
>> components/ add new ones).
>> When i update such a field and focus in the next field, i loose the focus
>> after the ajax update.
>>
>> Is there a way in wicket in which i can save last focused component and set
>> the focus back when my model is updated?
>>
>> Regards
>> Sree
>>
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Retain-Focus-After-Ajax-Update-tp3911732p3911732.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
>>
>>
>
>
>
> --
> thank you,
>
> regards,
> Vineet Semwal
>
> -
> 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: UTF-8 not working

2011-10-17 Thread Mihai Postelnicu
What i did to make sure this works is everything you did + 
encodeURIComponent(value)

http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp

Never had any other encoding problems in any browser afterwards. 


On Sun 16 Oct 2011 11:56:14 AM EEST, Attila Király wrote:

Please provide a small quickstart showcasing the problem to get more help
because based on these information it should work.

Attila

2011/10/15 Mathias Nilsson


Oh, And I've also tried putting
org.springframework.web.filter.CharacterEncodingFilter as the first filter

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/UTF-8-not-working-tp3906237p3907047.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: Strange issue in RequestCycle

2011-10-17 Thread Igor Vaynberg
On Sun, Oct 16, 2011 at 8:56 PM, Kent Tong  wrote:
> Hi Igor,
>
> Thanks for the reply!
>
>> the usecase is simple, one requesthandler handing work off to another
>> one. an easy example is a request handler that handles a callback
>> (such as a link being clicked) scheduling the handler that renders the
>> page after it handled the click.
>
> Yes, it is very common for one request handler *scheduling* another
> to be executed after its own execution. However, I am referring to
> one request handling *executing* another during its own execution.

why does this need framework support? simply call respond() yourself
if thats what you need.

>> all scheduled handlers go into a queue and are executed in order.
>> usually there are only two handlers scheduled - event handler and page
>> renderer.
>
> The code shows that the scheduled handler is stored into the single
> "scheduledAfterCurrent" field in RequestHandlerStack, while the
> "requestHandlers" linked-list is not really used. The only location
> a request handler is added to the linked-list is in the execute()
> method, but it is immediately removed after its execution.

i guess thats there to support embedded execution which is not exposed
to the request cycle because there is no need for it. it may just be
that this code needs to be cleaned up since the usecase is no longer
needed.

-igor

>
> --
> Kent Tong
> Useful news for CIO's at http://www2.cpttm.org.mo/cyberlab/cio-news
>
> -
> 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



Validating in form returns always error but textfield has a value

2011-10-17 Thread rawe
I'm using a LinkTree and to each node a panel is referenced.
Both is embedded in a form component.
The panels have textfields.
When using a submit button or a SubmitLink the input of the
textfields is valid and then also validation is valid.

But:
My intension is also to validate the form each time the node is changed. So
I'm using
the method form.validate() directly.
But the textfields have all null input!
--> validation error also when there is a value inside textfield.

Why the (raw)input is not recognized  (the textfield model is ok) ?
what I'm doing wrong. How can I solve this problem?

thank you for hints!

Ralph

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912361.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: Validating in form returns always error but textfield has a value

2011-10-17 Thread manuelbarzi
is the form submitted each time a node is changed? if not, then it
could be normal you read nulls, as the values are still on browser,
but havent flown to server.


On Mon, Oct 17, 2011 at 5:11 PM, rawe  wrote:
> I'm using a LinkTree and to each node a panel is referenced.
> Both is embedded in a form component.
> The panels have textfields.
> When using a submit button or a SubmitLink the input of the
> textfields is valid and then also validation is valid.
>
> But:
> My intension is also to validate the form each time the node is changed. So
> I'm using
> the method form.validate() directly.
> But the textfields have all null input!
> --> validation error also when there is a value inside textfield.
>
> Why the (raw)input is not recognized  (the textfield model is ok) ?
> what I'm doing wrong. How can I solve this problem?
>
> thank you for hints!
>
> Ralph
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912361.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: Validating in form returns always error but textfield has a value

2011-10-17 Thread rawe
Yes, each time I  change the node the form is submitted.
The textfields in the panel are initialized via PropertyModel and are set to
required.
When I want to change the node I call validate() but the rawInput of
textfields is null.
--> form.hasError() is always true, but there are values in the textfields.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3912457.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: Validating in form returns always error but textfield has a value

2011-10-17 Thread manuelbarzi
may you provide a code shot for review?

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



Redirect to External Application

2011-10-17 Thread martin.dilger
Hi,

we have the following use case - we need to redirect to an external
application, that handles authorization for us (cookie creation etc.).

For this, we need to redirect to this application and handle a callback url,
where this external application redirects after succesful login.

I tried the following (very simplified, but worked in 1.4 but not in 1.5):

String url =
((HttpServletRequest)RequestCycle.get().getRequest().getContainerRequest()).getRequestURL().toString();
throw new
RedirectToUrlException("http://someexternalapplication?jumpBackToMyApplicationURL="+url);

In 1.5 I get 404 - since this url looks like this:
http://localhost:8080/wicket/page, which is not a legal url, since the page
identifier is missing.

I would love to hear some thoughts, how to handle this in 1.5, 
thank you very much.

Martin


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Redirect-to-External-Application-tp3913112p3913112.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: Redirect to External Application

2011-10-17 Thread Igor Vaynberg
your url is missing the query string

-igor

On Mon, Oct 17, 2011 at 12:22 PM, martin.dilger
 wrote:
> Hi,
>
> we have the following use case - we need to redirect to an external
> application, that handles authorization for us (cookie creation etc.).
>
> For this, we need to redirect to this application and handle a callback url,
> where this external application redirects after succesful login.
>
> I tried the following (very simplified, but worked in 1.4 but not in 1.5):
>
> String url =
> ((HttpServletRequest)RequestCycle.get().getRequest().getContainerRequest()).getRequestURL().toString();
> throw new
> RedirectToUrlException("http://someexternalapplication?jumpBackToMyApplicationURL="+url);
>
> In 1.5 I get 404 - since this url looks like this:
> http://localhost:8080/wicket/page, which is not a legal url, since the page
> identifier is missing.
>
> I would love to hear some thoughts, how to handle this in 1.5,
> thank you very much.
>
> Martin
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Redirect-to-External-Application-tp3913112p3913112.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: Efficiency of 1.5 MountMapper weighted/matching algorithm

2011-10-17 Thread Chris Colman
>We have already discussed this problem before.
>I agree that caching will improve the performance and I'll try to
>implement it soon.

Cool!

>Topicus' (Martijn's daily job) biggest application have ~ 700 mounted
>pages and this code is not a hotspot for them, that's why no one spend
>time on optimizing it so far.

Wow that's big! If you had a variety of main and side bar menus on each page 
that had links to say 40 or so Bookmarkable pages that would mean each page 
render would result in building 40 weight/mount pair collections, each with 700 
entries - and then throwing them away after each bookmarkable page link has 
been created.

I realize it may not be a hotspot but, intuitively at least, it sounds like 
your new caching improvement will help reduce CPU load. It should also reduce 
the workload of the garbage collector by not having, in the above example, 2800 
objects allocated and then dereferenced with every page render.

>
>On Sun, Oct 16, 2011 at 1:27 PM, Chris Colman
> wrote:
>> I'll try to get some time to build a test to get some timings.
>>
>>>-Original Message-
>>>From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
>>>Sent: Sunday, 16 October 2011 11:55 AM
>>>To: users@wicket.apache.org
>>>Subject: Re: Efficiency of 1.5 MountMapper weighted/matching algorithm
>>>
>>>On Sat, Oct 15, 2011 at 8:28 PM, Chris Colman
>>>wrote:
>>>
 Obviously this isn't a problem during debug with a single user but
>> when
 1000s of pages need to be rendered each minute the time spent
>> performing
>>>the
 above operations may become significant. I haven't done any benchmark
 testing but from experience, the frequenct allocation and compiling
>> of
 collections and sorting can get CPU expensive and switching to a
>> caching
 alternative usually leads to significant performance
>> improvements.


>>>It'd definitely be worth optimizing if we can prove it's a bottle-neck.
>>>But
>>>we try to avoid premature optimization.  Can you put together some
>> numbers
>>>to see what kind of processing load we're talking about?  I'd be
>> interested
>>>in seeing % of overall processing time under load.  Something like
>> "with X
>>>clients browsing Y pages per minute, each page render took an average R
>>>milliseconds, and Z milliseconds of this was in creating link URLs".
>> Or
>>>something like that.
>>>
>>>--
>>>Jeremy Thomerson
>>>http://wickettraining.com
>>>*Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>>
>> -
>> 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


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



Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-17 Thread exl

Martin Grigorov-4 wrote:
> 
>> What do you think?
> I think this problem deserves a ticket to be discussed in more details.
> 

I'd like to see this resolved for the dynamic image case.  Example use case:
1. I have a form that I'd like to re-use between two roles - "Admin" and
"Read-only User". That is, the form is enabled for an "Admin" (full
permission to change things) and disabled for a "Read-only User" (not
allowed to change anything). 
2. The form allows for an ID text field to be changed, which seeds the
generation of a dynamic image to be displayed within the form next to the
text field.
3. Both roles should be allowed to see the image (i.e. regardless of whether
the parent form is enabled).

Pre-Wicket 1.5.1 (was on 1.4.9), this was never an issue for dynamic images
- i.e. images still appeared within disabled forms. 

Has anyone raised a ticket for this already?  And/or perhaps can offer a
workaround?

-

Eric is learning how to use Wicket and enjoying the experience so far...
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3914246.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: Validating in form returns always error but textfield has a value

2011-10-17 Thread rawe
Here are some code snippets.

When clicking on a tree node I validate the form..
If no errors I update the form component models.
The class MyMutableTreeNode extends DefaultMutableTreeNode.
Each node references an own panel component.
getNodeEntryDetail() returns the panel referenced by the node.

Where is the difference to a SubmitLink call. If calling SubmitLink
validation works fine and input values of the textfields in panel are
filled.
When calling validate() programmatic the input values are null.

??



ralph

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Validating-in-form-returns-always-error-but-textfield-has-a-value-tp3912361p3914396.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