Re: Model is null after submit, using FormComponentPanel

2012-12-05 Thread Paul Borș
Take a look at https://cwiki.apache.org/WICKET/working-with-wicket-models.html

Okay so Account is the type of the model object and your FormComponentPanel 
seem to work off a CustomerAccountCodeModel:
>> CustomerAccountCodeModel ccc = getModelObject();


If I'm understanding this right, what does your CustomerAccountCodeModel's 
getObject() and setObject() do?

I would switch to a CompundPropertyModel and I would leave the models null for 
the form fields. This way you won't need any your own implementation of 
onModelChange().

~ Thank you,
Paul Bors

On Dec 4, 2012, at 1:48 PM, Joachim Schrod  wrote:

> Raul wrote:
>> Thank Col, But I have no validation, my component code is the code of the
>> component is
>> 
>> public class CustomerAccountCode extends
>>FormComponentPanel {
>> 
>>private FormComponent entity;
>>private FormComponent office;
>>private FormComponent dc;
>>private FormComponent number;
>> 
>> 
>>public CustomerAccountCode(String id, Model model) {
>>super(id, model);
>>
>>entity = new TextField("entity", new Model());
>>office = new TextField("office", new Model());
>>dc = new TextField("dc", new Model());
>>number = new TextField("number", new Model());
>> 
>>onModelChanged();
>>add(entity);
>>add(office);
>>add(dc);
>>add(number);
>> //add(CustomerAccountCodeValidator.getInstance());
>> 
>>}
>> 
>>protected void onModelChanged() {
>>super.onModelChanged();
>>CustomerAccountCodeModel ccc = getModelObject();
>>if (ccc != null) {
>>entity.setModelObject(ccc.getEntity());
>>office.setModelObject(ccc.getOffice());
>>dc.setModelObject(ccc.getDc());
>>number.setModelObject(ccc.getAccount());
>>} else {
>>entity.setModelObject(null);
>>office.setModelObject(null);
>>dc.setModelObject(null);
>>number.setModelObject(null);
>>}
>>}
> 
> Did you try to use PropertyModels of your account object, maybe a
> CompoundPropertyModel instead of setting the TextField's model
> objects in the constructor that way?
> 
>Joachim
> 
> -- 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Joachim Schrod, Roedermark, Germany
> Email: jsch...@acm.org
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


Re: Returning XML or HTML

2012-12-05 Thread Sven Meier

You'll have to let Wicket know that you wrote the response by yourself.

With |RestartResponseException| you can switch to another response. In 
your case you could direct the request to a resource first (since your 
XML doesn't seem be component-based) and switch to a page in case of 
missing parameters.


Sven


On 12/06/2012 04:49 AM, McDonough, Jonathan wrote:

Hi all,
I am trying to create a WebPage that returns either XML or HTML depending upon 
if a parameter is supplied. If the parameter is supplied, return a custom XML 
document. Otherwise return an HTML page with an error message. The code I wrote 
produces these results, which is great. But it is also throwing an exception 
(below) to the console. Does anyone know how to go about fixing this?

I am using Java 6 and Wicket 6.2.0

Thanks
Jon

Here is the code for DocumentPage.java:
 public DocumentPage(final PageParameters parameters) {
 setStatelessHint(true);

 // Get the ID
 final org.apache.wicket.util.string.StringValue idStringValue 
= parameters.get(0);
 if (idStringValue == null || idStringValue.isEmpty()) {
 add(new Label("errorMsg", "Please supply an ID"));
 return;
 }


 // Get the CTS2 XML from the database
 final String id = idStringValue.toString();


 // Send the output
 add(new Label("errorMsg", ""));
 String content = "" + id + "";

 RequestCycle.get().getOriginalResponse().write(content);
 }


DocumentPage.html:

 
 Error
 

 
 
 



2012-12-05 22:36:32,976 ERROR  [RequestCycle] Error during processing error 
message
java.lang.IllegalStateException: Header was already written to response!
 at 
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.checkHeader(HeaderBufferingWebResponse.java:64)
 at 
org.apache.wicket.protocol.http.HeaderBufferingWebResponse.sendError(HeaderBufferingWebResponse.java:105)
 at 
org.apache.wicket.request.http.handler.ErrorCodeRequestHandler.respond(ErrorCodeRequestHandler.java:77)
 at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:830)
 at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:302)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.executeExceptionRequestHandler(RequestCycle.java:311)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:225)
 at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281)
 at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188)
 at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at 
org.apache.catalina.connector.CoyoteAdapte

Select2Choice dropdown box is not appeared in correct position

2012-12-05 Thread Madasamy mcruncher
   we are using wicket-select2 2.0 in our application. A form
having a Select2Choice field when click this field the search
dropdown box is not appeared in correct position. But this is
work fine on my quick start. our application is depending on
bootstrap css and js.

My observation , select2choice field html code look like in

 * myQuickstart

  
  
  
  
  

 * our application,

  
  
  
  
  

The Css class " *select2-with-searchbox*" is not added in our application
html code.

can you give suggestion to solve this problem?


Re: How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers
The link here is actually an AjaxSubmitLink and not an AjaxLink.  I am 
trying to get back to the onSubmit on the server side.  I saw 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Ajax-Behaviors-td4654398.html, 
but $(mylink).triggerHandler('click') doesn't seem to be working. Do I 
treat the trigger on an AjaxSubmitLink different from a regular AjaxLink?


On 12/05/2012 03:28 PM, Jered Myers wrote:

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and 
after I run some JavaScript, I want to pragmatically click the link 
with JavaScript.  This broke when updating from Wicket 1.5 to 6.  It 
appears that the onclick attribute is no longer on my link and I am 
not sure how to call the events that Wicket has registered in the head.






How to call a Wicket Ajax click event

2012-12-05 Thread Jered Myers

Wicket 6.3

How do I call a click event on an AjaxLink from via jQuery or 
JavaScript?  I have an AjaxLink that I have added to the page and after 
I run some JavaScript, I want to pragmatically click the link with 
JavaScript.  This broke when updating from Wicket 1.5 to 6.  It appears 
that the onclick attribute is no longer on my link and I am not sure how 
to call the events that Wicket has registered in the head.


--
Jered Myers


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



Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
UPDATE,

your solution works fine with weblogic 9 , i just had to put a string
without dashes like you did. ex. "path" works, "path/something" does not
work. Thanx a lot


On Wed, Dec 5, 2012 at 5:04 PM, Dimitris Asvestis <
dimitris.asves...@gmail.com> wrote:

> Nope, tried it. Works for the Page url but Weblogic 9 messes up content in
> consecutive ajax calls.
>
> I have a Page with many AjaxTabs that render panels . Each tab panel
> includes a modal window also and has a form that submits with an
> AjaxSubmitLink. On weblogic 9 only there seems to be a request for
> wicket-event.js that fails with 404 after each ajax response.
>
>
> On Wed, Dec 5, 2012 at 2:46 PM, Dimitris Asvestis <
> dimitris.asves...@gmail.com> wrote:
>
>> many thanx, I ll try this and see
>>
>>
>>
>> On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] <
>> ml-node+s1842946n4654515...@n4.nabble.com> wrote:
>>
>>> I'm not sure what is the reason for the problem but I think it will
>>> disappear if you explicitly mount this page at some path.
>>>
>>> I.e.: MyApp:
>>> mountPage("path", ThePage.class)
>>>
>>> In MyOtherPage.java:
>>> setResponsePage(thePageInstance)
>>>
>>>
>>> On Wed, Dec 5, 2012 at 2:39 PM, sitseva <[hidden 
>>> email]>
>>> wrote:
>>>
>>> > I am not sure if this is what you mean but when i first load the page
>>> the
>>> > url requested is just:
>>> >
>>> > [server]/[context-path]/wicket/page?12.
>>> >
>>> > I use an subclass of a simple Link to get there with
>>> > setResponsePage(pageInstance);
>>> >
>>> >
>>> > On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket]
>>> <
>>> > [hidden email] >
>>> wrote:
>>> >
>>> > > What is the url/mount of the of the page where this error happens ?
>>> > >
>>> > >
>>> > > On Wed, Dec 5, 2012 at 2:22 PM, sitseva <[hidden email]<
>>> > http://user/SendEmail.jtp?type=node&node=4654513&i=0>>
>>> > > wrote:
>>> > >
>>> > > > Hello,
>>> > > >
>>> > > > I recently migrated an application from wicket 1.4.13 to 1.5.8.
>>> > > Everything
>>> > > > was fine in development and test environment (Tomcat 6/7 ,
>>> Weblogic 11g
>>> > > )
>>> > > > but when i deployed my app to acceptance-testing environment
>>> (Weblogic
>>> > > 9),
>>> > > > i
>>> > > > have some issues with consecutive ajax calls (ex. navigating
>>> through
>>> > > Page
>>> > > > with many AjaxTabs). Weblogic seems to be trying to load resources
>>> (ex.
>>> > > > wicket-event.js) but i get 404 because for some reason the
>>> '/wicket'
>>> > > word
>>> > > > is
>>> > > > added in the context-path twice after the ajax response for the
>>> > specific
>>> > > > resource.  ex. the first time the page is rendered i see on the
>>> FireBug
>>> > > Net
>>> > > > :
>>> > > >
>>> > > >
>>> > > >
>>> > >
>>> >
>>> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
>>>
>>> > >
>>> > > >
>>> > > > after the tab is pressed the resource is requested again but
>>> through
>>> > the
>>> > > > path:
>>> > > >
>>> > > >
>>> > > >
>>> > >
>>> >
>>> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
>>>
>>> > >
>>> > > >
>>> > > >
>>> > > > Any ideas? Can i work around this somehow?
>>> > > >
>>> > > >
>>> > > >
>>> > > >
>>> > > >
>>> > > > --
>>> > > > View this message in context:
>>> > > >
>>> > >
>>> >
>>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
>>> > > > Sent from the Users forum mailing list archive at Nabble.com.
>>> > > >
>>> > > >
>>> -
>>> > > > To unsubscribe, e-mail: [hidden email]<
>>> > http://user/SendEmail.jtp?type=node&node=4654513&i=1>
>>> > > > For additional commands, e-mail: [hidden email]<
>>> > http://user/SendEmail.jtp?type=node&node=4654513&i=2>
>>> > > >
>>> > > >
>>> > >
>>> > >
>>> > > --
>>> > > Martin Grigorov
>>> > > jWeekend
>>> > > Training, Consulting, Development
>>> > > http://jWeekend.com 
>>> > >
>>> > >
>>> > > --
>>> > >  If you reply to this email, your message will be added to the
>>> discussion
>>> > > below:
>>> > >
>>> > >
>>> >
>>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
>>> > >  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here<
>>> >
>>> >
>>> > > .
>>> > > NAML<
>>> >
>>> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>>

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
true, but you can override writereplace() and readresolve() to keep it
a singleton. further, even though it is no longer a singleton within a
given page there will be only one instance of it even when
serialized/deserialized, so you still get some memory savings.

-igor

On Wed, Dec 5, 2012 at 9:37 AM, Dan Retzlaff  wrote:
> Might be worth noting that as soon as it goes through a serialization
> round-trip it's no longer a singleton. Not a concern for a trivial
> AttributeAppender, but it's a Wicket+static+serialization gotcha we learned
> the hard way. :)
>
> On Wed, Dec 5, 2012 at 4:40 PM, Igor Vaynberg wrote:
>
>> yes, you can use singleton instances as long as they are threadsafe.
>>
>> -igor
>>
>> On Wed, Dec 5, 2012 at 2:40 AM, Davli  wrote:
>> > Well as the title says...
>> > Would this be possible assuming that they have have no real relation to a
>> > value in a session?
>> > For example:
>> >
>> > An AttributeAppender that always appends the same value.
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Dan Retzlaff
Might be worth noting that as soon as it goes through a serialization
round-trip it's no longer a singleton. Not a concern for a trivial
AttributeAppender, but it's a Wicket+static+serialization gotcha we learned
the hard way. :)

On Wed, Dec 5, 2012 at 4:40 PM, Igor Vaynberg wrote:

> yes, you can use singleton instances as long as they are threadsafe.
>
> -igor
>
> On Wed, Dec 5, 2012 at 2:40 AM, Davli  wrote:
> > Well as the title says...
> > Would this be possible assuming that they have have no real relation to a
> > value in a session?
> > For example:
> >
> > An AttributeAppender that always appends the same value.
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Syncing files with designers

2012-12-05 Thread Jan Riehn

Hello Edgar,

> I think I'm missing something: since every WebPage in wicket has 
straight access to resources located in the web root  (that is, every 
path reference in the page's markup is relative to the web root)


Wicket is able to locate resources outside of the web application: This 
could be done by implementing an own IResourceFinder:


public final class FileSystemResourceFinder implements IResourceFinder {
private final Resource resource;

public FileSystemResourceFinder(Resource resource) {
this.resource = resource;
}

@Override
public IResourceStream find(Class clazz, String pathname) {
try {
final File file = new File(resource.getFile(), pathname);
if (file.exists()) {
return new FileResourceStream(file);
}
} catch (final IOException e) {
// ignore, file couldn't be found
}
return null;
}
}

At least you've to add the resource finder to the resource finders list 
with getResourceSettings().setResourceFinders(resourceFinderList) in 
your applications init method. Alternatively, implement a custom 
ResourceStreamLocator. At first the Locator should use the 
FileSystemResourceFinder - if there's no match the locator should 
fallback to wicket's default resource finder. So far, your application 
is able to locate resources from the local file system.


> I would like to avoid using folders to organise html files so the 
designers can put all the resources they need in their root folder. The 
mechanism you describe, seems to use folders, how are you managing this 
for the designers?


We thought the same - but this not 
manageable with 
more than 50 files in one folder. So we decide to use folders - as 
already mentioned. Perhaps I'll write a tutorial...



Best regards,

Jan


On 12/05/2012 02:49 PM, Edgar Merino wrote:
Hello Jan, that seems like a good approach. However, I think I'm 
missing something: since every WebPage in wicket has straight access 
to resources located in the web root (that is, every path reference in 
the page's markup is relative to the web root), I would like to avoid 
using folders to organize html files so the designers can put all the 
resources they need in their root folder. The mechanism you describe, 
seems to use folders, how are you managing this for the designers?



Edgar Merino


On 04/12/12 04:15, Jan Riehn wrote:

Hello Edgar,

Yes, this is how it works.

For the best separation of the responsibilities, you may store the 
resources outside of the web application (Think about a complete 
physical separation).
We've made a good experience to break-off with wicket's given package 
structure - wicket’s resource localization does not fit with a 
separation of the responsibilities: the web designer has no knowledge 
about the internal package  structure and it's not resistant against 
refactoring. Therefore, we use a more technical mechanism based on 
style, variation locale and the filename.


1. /

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
yes, you can use singleton instances as long as they are threadsafe.

-igor

On Wed, Dec 5, 2012 at 2:40 AM, Davli  wrote:
> Well as the title says...
> Would this be possible assuming that they have have no real relation to a
> value in a session?
> For example:
>
> An AttributeAppender that always appends the same value.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
Nope, tried it. Works for the Page url but Weblogic 9 messes up content in
consecutive ajax calls.

I have a Page with many AjaxTabs that render panels . Each tab panel
includes a modal window also and has a form that submits with an
AjaxSubmitLink. On weblogic 9 only there seems to be a request for
wicket-event.js that fails with 404 after each ajax response.


On Wed, Dec 5, 2012 at 2:46 PM, Dimitris Asvestis <
dimitris.asves...@gmail.com> wrote:

> many thanx, I ll try this and see
>
>
>
> On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n4654515...@n4.nabble.com> wrote:
>
>> I'm not sure what is the reason for the problem but I think it will
>> disappear if you explicitly mount this page at some path.
>>
>> I.e.: MyApp:
>> mountPage("path", ThePage.class)
>>
>> In MyOtherPage.java:
>> setResponsePage(thePageInstance)
>>
>>
>> On Wed, Dec 5, 2012 at 2:39 PM, sitseva <[hidden 
>> email]>
>> wrote:
>>
>> > I am not sure if this is what you mean but when i first load the page
>> the
>> > url requested is just:
>> >
>> > [server]/[context-path]/wicket/page?12.
>> >
>> > I use an subclass of a simple Link to get there with
>> > setResponsePage(pageInstance);
>> >
>> >
>> > On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] <
>> > [hidden email] >
>> wrote:
>> >
>> > > What is the url/mount of the of the page where this error happens ?
>> > >
>> > >
>> > > On Wed, Dec 5, 2012 at 2:22 PM, sitseva <[hidden email]<
>> > http://user/SendEmail.jtp?type=node&node=4654513&i=0>>
>> > > wrote:
>> > >
>> > > > Hello,
>> > > >
>> > > > I recently migrated an application from wicket 1.4.13 to 1.5.8.
>> > > Everything
>> > > > was fine in development and test environment (Tomcat 6/7 , Weblogic
>> 11g
>> > > )
>> > > > but when i deployed my app to acceptance-testing environment
>> (Weblogic
>> > > 9),
>> > > > i
>> > > > have some issues with consecutive ajax calls (ex. navigating
>> through
>> > > Page
>> > > > with many AjaxTabs). Weblogic seems to be trying to load resources
>> (ex.
>> > > > wicket-event.js) but i get 404 because for some reason the
>> '/wicket'
>> > > word
>> > > > is
>> > > > added in the context-path twice after the ajax response for the
>> > specific
>> > > > resource.  ex. the first time the page is rendered i see on the
>> FireBug
>> > > Net
>> > > > :
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
>>
>> > >
>> > > >
>> > > > after the tab is pressed the resource is requested again but
>> through
>> > the
>> > > > path:
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
>>
>> > >
>> > > >
>> > > >
>> > > > Any ideas? Can i work around this somehow?
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > View this message in context:
>> > > >
>> > >
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
>> > > > Sent from the Users forum mailing list archive at Nabble.com.
>> > > >
>> > > >
>> -
>> > > > To unsubscribe, e-mail: [hidden email]<
>> > http://user/SendEmail.jtp?type=node&node=4654513&i=1>
>> > > > For additional commands, e-mail: [hidden email]<
>> > http://user/SendEmail.jtp?type=node&node=4654513&i=2>
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Martin Grigorov
>> > > jWeekend
>> > > Training, Consulting, Development
>> > > http://jWeekend.com 
>> > >
>> > >
>> > > --
>> > >  If you reply to this email, your message will be added to the
>> discussion
>> > > below:
>> > >
>> > >
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
>> > >  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here<
>> >
>> >
>> > > .
>> > > NAML<
>> >
>> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>>
>> > >
>> > >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.html
>>
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: [hidden 
>> > email]

Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Davli
Well as the title says... 
Would this be possible assuming that they have have no real relation to a
value in a session?
For example:

An AttributeAppender that always appends the same value.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Possible-to-use-static-IBehavior-ReadOnlyModels-tp4654507.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: Syncing files with designers

2012-12-05 Thread Edgar Merino
Hello Jan, that seems like a good approach. However, I think I'm missing 
something: since every WebPage in wicket has straight access to 
resources located in the web root (that is, every path reference in the 
page's markup is relative to the web root), I would like to avoid using 
folders to organize html files so the designers can put all the 
resources they need in their root folder. The mechanism you describe, 
seems to use folders, how are you managing this for the designers?



Edgar Merino


On 04/12/12 04:15, Jan Riehn wrote:

Hello Edgar,

Yes, this is how it works.

For the best separation of the responsibilities, you may store the 
resources outside of the web application (Think about a complete 
physical separation).
We've made a good experience to break-off with wicket's given package 
structure - wicket's resource localization does not fit with a 
separation of the responsibilities: the web designer has no knowledge 
about the internal package structure and it's not resistant against 
refactoring. Therefore, we use a more technical mechanism based on 
style, variation locale and the filename.


1. /

Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
many thanx, I ll try this and see


On Wed, Dec 5, 2012 at 2:43 PM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n4654515...@n4.nabble.com> wrote:

> I'm not sure what is the reason for the problem but I think it will
> disappear if you explicitly mount this page at some path.
>
> I.e.: MyApp:
> mountPage("path", ThePage.class)
>
> In MyOtherPage.java:
> setResponsePage(thePageInstance)
>
>
> On Wed, Dec 5, 2012 at 2:39 PM, sitseva <[hidden 
> email]>
> wrote:
>
> > I am not sure if this is what you mean but when i first load the page
> the
> > url requested is just:
> >
> > [server]/[context-path]/wicket/page?12.
> >
> > I use an subclass of a simple Link to get there with
> > setResponsePage(pageInstance);
> >
> >
> > On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] <
> > [hidden email] >
> wrote:
> >
> > > What is the url/mount of the of the page where this error happens ?
> > >
> > >
> > > On Wed, Dec 5, 2012 at 2:22 PM, sitseva <[hidden email]<
> > http://user/SendEmail.jtp?type=node&node=4654513&i=0>>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I recently migrated an application from wicket 1.4.13 to 1.5.8.
> > > Everything
> > > > was fine in development and test environment (Tomcat 6/7 , Weblogic
> 11g
> > > )
> > > > but when i deployed my app to acceptance-testing environment
> (Weblogic
> > > 9),
> > > > i
> > > > have some issues with consecutive ajax calls (ex. navigating through
> > > Page
> > > > with many AjaxTabs). Weblogic seems to be trying to load resources
> (ex.
> > > > wicket-event.js) but i get 404 because for some reason the '/wicket'
> > > word
> > > > is
> > > > added in the context-path twice after the ajax response for the
> > specific
> > > > resource.  ex. the first time the page is rendered i see on the
> FireBug
> > > Net
> > > > :
> > > >
> > > >
> > > >
> > >
> >
> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
>
> > >
> > > >
> > > > after the tab is pressed the resource is requested again but through
> > the
> > > > path:
> > > >
> > > >
> > > >
> > >
> >
> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
>
> > >
> > > >
> > > >
> > > > Any ideas? Can i work around this somehow?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
> > > > Sent from the Users forum mailing list archive at Nabble.com.
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: [hidden email]<
> > http://user/SendEmail.jtp?type=node&node=4654513&i=1>
> > > > For additional commands, e-mail: [hidden email]<
> > http://user/SendEmail.jtp?type=node&node=4654513&i=2>
> > > >
> > > >
> > >
> > >
> > > --
> > > Martin Grigorov
> > > jWeekend
> > > Training, Consulting, Development
> > > http://jWeekend.com 
> > >
> > >
> > > --
> > >  If you reply to this email, your message will be added to the
> discussion
> > > below:
> > >
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
> > >  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here<
> >
> >
> > > .
> > > NAML<
> >
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
>
> > >
> > >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.html
>
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654515.html
>  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click 
> here

Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread Martin Grigorov
I'm not sure what is the reason for the problem but I think it will
disappear if you explicitly mount this page at some path.

I.e.: MyApp:
mountPage("path", ThePage.class)

In MyOtherPage.java:
setResponsePage(thePageInstance)


On Wed, Dec 5, 2012 at 2:39 PM, sitseva  wrote:

> I am not sure if this is what you mean but when i first load the page the
> url requested is just:
>
> [server]/[context-path]/wicket/page?12.
>
> I use an subclass of a simple Link to get there with
> setResponsePage(pageInstance);
>
>
> On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n4654513...@n4.nabble.com> wrote:
>
> > What is the url/mount of the of the page where this error happens ?
> >
> >
> > On Wed, Dec 5, 2012 at 2:22 PM, sitseva <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4654513&i=0>>
> > wrote:
> >
> > > Hello,
> > >
> > > I recently migrated an application from wicket 1.4.13 to 1.5.8.
> > Everything
> > > was fine in development and test environment (Tomcat 6/7 , Weblogic 11g
> > )
> > > but when i deployed my app to acceptance-testing environment (Weblogic
> > 9),
> > > i
> > > have some issues with consecutive ajax calls (ex. navigating through
> > Page
> > > with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
> > > wicket-event.js) but i get 404 because for some reason the '/wicket'
> > word
> > > is
> > > added in the context-path twice after the ajax response for the
> specific
> > > resource.  ex. the first time the page is rendered i see on the FireBug
> > Net
> > > :
> > >
> > >
> > >
> >
> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
> >
> > >
> > > after the tab is pressed the resource is requested again but through
> the
> > > path:
> > >
> > >
> > >
> >
> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
> >
> > >
> > >
> > > Any ideas? Can i work around this somehow?
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4654513&i=1>
> > > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=4654513&i=2>
> > >
> > >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
> >
> > --
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
> >  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click here<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4654512&code=ZGltaXRyaXMuYXN2ZXN0aXNAZ21haWwuY29tfDQ2NTQ1MTJ8NTMwNTY1NTk0
> >
> > .
> > NAML<
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.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 


Re: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
I am not sure if this is what you mean but when i first load the page the
url requested is just:

[server]/[context-path]/wicket/page?12.

I use an subclass of a simple Link to get there with
setResponsePage(pageInstance);


On Wed, Dec 5, 2012 at 2:28 PM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n4654513...@n4.nabble.com> wrote:

> What is the url/mount of the of the page where this error happens ?
>
>
> On Wed, Dec 5, 2012 at 2:22 PM, sitseva <[hidden 
> email]>
> wrote:
>
> > Hello,
> >
> > I recently migrated an application from wicket 1.4.13 to 1.5.8.
> Everything
> > was fine in development and test environment (Tomcat 6/7 , Weblogic 11g
> )
> > but when i deployed my app to acceptance-testing environment (Weblogic
> 9),
> > i
> > have some issues with consecutive ajax calls (ex. navigating through
> Page
> > with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
> > wicket-event.js) but i get 404 because for some reason the '/wicket'
> word
> > is
> > added in the context-path twice after the ajax response for the specific
> > resource.  ex. the first time the page is rendered i see on the FireBug
> Net
> > :
> >
> >
> >
> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
>
> >
> > after the tab is pressed the resource is requested again but through the
> > path:
> >
> >
> >
> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
>
> >
> >
> > Any ideas? Can i work around this somehow?
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654513.html
>  To unsubscribe from Wicket 1.5.8 + Weblogic 9, click 
> here
> .
> NAML
>




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512p4654514.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: Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread Martin Grigorov
What is the url/mount of the of the page where this error happens ?


On Wed, Dec 5, 2012 at 2:22 PM, sitseva  wrote:

> Hello,
>
> I recently migrated an application from wicket 1.4.13 to 1.5.8. Everything
> was fine in development and test environment (Tomcat 6/7 , Weblogic 11g )
> but when i deployed my app to acceptance-testing environment (Weblogic 9),
> i
> have some issues with consecutive ajax calls (ex. navigating through Page
> with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
> wicket-event.js) but i get 404 because for some reason the '/wicket' word
> is
> added in the context-path twice after the ajax response for the specific
> resource.  ex. the first time the page is rendered i see on the FireBug Net
> :
>
>
> [server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
>
> after the tab is pressed the resource is requested again but through the
> path:
>
>
> [server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js
>
>
> Any ideas? Can i work around this somehow?
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.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 


Wicket 1.5.8 + Weblogic 9

2012-12-05 Thread sitseva
Hello, 

I recently migrated an application from wicket 1.4.13 to 1.5.8. Everything
was fine in development and test environment (Tomcat 6/7 , Weblogic 11g )
but when i deployed my app to acceptance-testing environment (Weblogic 9), i
have some issues with consecutive ajax calls (ex. navigating through Page
with many AjaxTabs). Weblogic seems to be trying to load resources (ex.
wicket-event.js) but i get 404 because for some reason the '/wicket' word is
added in the context-path twice after the ajax response for the specific
resource.  ex. the first time the page is rendered i see on the FireBug Net
: 

[server]/[context-path]/wicket/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js.
 

after the tab is pressed the resource is requested again but through the
path:

[server]/[context-path]/wicket//wicket/*wicket*/resource/org.apache.wicket.markup.html.WicketEventReference/wicket-event-ver-B0439F858745C84EA46792F9AC42B6CF.js


Any ideas? Can i work around this somehow?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-8-Weblogic-9-tp4654512.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: Upload file and display its contents using AJAX

2012-12-05 Thread pureza
Thanks Martin, I had just found
https://issues.apache.org/jira/browse/WICKET-2420 before reading your reply!

I guess that clears things.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654510.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: Upload file and display its contents using AJAX

2012-12-05 Thread Martin Grigorov
Wicket uses an iframe internally for Ajax file uploads.


On Wed, Dec 5, 2012 at 11:55 AM, pureza  wrote:

> I was able to get rid of the submit button, but I don't understand why it
> works (maybe some wicket magic?).
>
> I have a Form object and in the onSubmit() method I read the uploaded file
> and store it in a model. I also added an AjaxFormSubmitBehavior to the form
> that updates the textarea with the contents of the file via ajax.
>
> The markup is simply:
>
>
> This works fine (i.e. when I choose a file to upload the textarea is
> updated
> with the file's contents), but I don't understand why. The form submission
> does not refresh the whole page, but I was told that the only way I could
> do
> this was using an iframe, which I'm not doing. Please note that I am also
> not using any kind of upload library such as jquery-file-upload.
>
> Do you have any idea as to why this works the way it does? I'm clueless...
>
> Thanks!
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654508.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 


Re: Upload file and display its contents using AJAX

2012-12-05 Thread pureza
I was able to get rid of the submit button, but I don't understand why it
works (maybe some wicket magic?).

I have a Form object and in the onSubmit() method I read the uploaded file
and store it in a model. I also added an AjaxFormSubmitBehavior to the form
that updates the textarea with the contents of the file via ajax.

The markup is simply:


This works fine (i.e. when I choose a file to upload the textarea is updated
with the file's contents), but I don't understand why. The form submission
does not refresh the whole page, but I was told that the only way I could do
this was using an iframe, which I'm not doing. Please note that I am also
not using any kind of upload library such as jquery-file-upload.

Do you have any idea as to why this works the way it does? I'm clueless...

Thanks!





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Upload-file-and-display-its-contents-using-AJAX-tp4654473p4654508.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: wicket-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread Martin Grigorov
6.4.0 will be build at Dec 14


On Wed, Dec 5, 2012 at 11:23 AM, hsteisjo  wrote:

> Thanks Martin, it looks like my problem I'll give it a try. Do you know if
> a
> Wicket release is planned in the near future?
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469p4654505.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 


Re: wicket-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread hsteisjo
Thanks Martin, it looks like my problem I'll give it a try. Do you know if a
Wicket release is planned in the near future?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469p4654505.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: DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Thanks




On Wed, Dec 5, 2012 at 11:46 AM, Martin Grigorov wrote:

> s/handler/target/
>
>
> On Wed, Dec 5, 2012 at 10:44 AM, Altuğ Bilgin Altıntaş  >wrote:
>
> > Our Wicket version is 1.4.x
> >
> >
> >
> >
> > On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro <
> > reier...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > See
> > >
> > >
> > >
> >
> https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
> > >
> > > On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş <
> alt...@gmail.com
> > > >wrote:
> > >
> > > > Hi;
> > > >
> > > > Is it possible to trigger form submit before DownloadLink execution.
> > > >
> > > > We need to get some values from the form in order to process pdf.
> > > >
> > > > Any suggestions ?
> > > >
> > > > Thanks.
> > > >
> > >
> > >
> > >
> > > --
> > > Regards - Ernesto Reinaldo Barreiro
> > > Antilia Soft
> > > http://antiliasoft.com/ 
> > >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>


Re: DownloadLink

2012-12-05 Thread Martin Grigorov
s/handler/target/


On Wed, Dec 5, 2012 at 10:44 AM, Altuğ Bilgin Altıntaş wrote:

> Our Wicket version is 1.4.x
>
>
>
>
> On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
> > Hi,
> >
> > See
> >
> >
> >
> https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
> >
> > On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş  > >wrote:
> >
> > > Hi;
> > >
> > > Is it possible to trigger form submit before DownloadLink execution.
> > >
> > > We need to get some values from the form in order to process pdf.
> > >
> > > Any suggestions ?
> > >
> > > Thanks.
> > >
> >
> >
> >
> > --
> > Regards - Ernesto Reinaldo Barreiro
> > Antilia Soft
> > http://antiliasoft.com/ 
> >
>



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


Re: DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Our Wicket version is 1.4.x




On Wed, Dec 5, 2012 at 11:42 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Hi,
>
> See
>
>
> https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
>
> On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş  >wrote:
>
> > Hi;
> >
> > Is it possible to trigger form submit before DownloadLink execution.
> >
> > We need to get some values from the form in order to process pdf.
> >
> > Any suggestions ?
> >
> > Thanks.
> >
>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>


Re: DownloadLink

2012-12-05 Thread Martin Grigorov
Hi,

See the code in DownloadLink. It just schedules an additional request
handler.
You can do the same in your #onSubmit() method.


On Wed, Dec 5, 2012 at 10:38 AM, Altuğ Bilgin Altıntaş wrote:

> Hi;
>
> Is it possible to trigger form submit before DownloadLink execution.
>
> We need to get some values from the form in order to process pdf.
>
> Any suggestions ?
>
> Thanks.
>



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


DownloadLink

2012-12-05 Thread Altuğ Bilgin Altıntaş
Hi;

Is it possible to trigger form submit before DownloadLink execution.

We need to get some values from the form in order to process pdf.

Any suggestions ?

Thanks.


stateless AjaxLazyLoadPanel wicket 1.4.21

2012-12-05 Thread Karsten Gaul

Hi,

I'm trying to use the functionality of an AjaxLazyLoadPanel in a 
stateless page but this doesn't seem to work as the injected content is 
not a container and the following exception is thrown:


java.lang.IllegalArgumentException: Component is not a container and so does 
not contain the path componentid:containedcomponentid:

[Component id = content]

 at org.apache.wicket.Component.get(Component.java:4500)
 at org.apache.wicket.MarkupContainer.get(MarkupContainer.java:354)


I wrote a StatelessAbstractDefaultAjaxBehavior overriding geCallbackUrl which I 
use in my StatelessAjaxLazyLoadPanel.

This doesn't seem to be the way. Anyone have any hints?

Thanks,
Karsten


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



Re: wicket-stuff progressbar problem in Wicket 6.3

2012-12-05 Thread Martin Grigorov
Hi,

I think this issue is fixed with WICKET-4886.
Please try with 6.4.0-SNAPSHOT.
If it still breaks then please create a quickstart and attach it to a new
ticket in Jira.
Thanks!


On Tue, Dec 4, 2012 at 3:54 PM, hsteisjo  wrote:

> Hi all,
>
> I've really banged my head with this problem for some time now, and
> hopefully someone can point me in the right direction.
>
> I have a base popup class which is extended from ModalWindow. Most actions
> requires some sort of visual response to the user that actions are taking
> place so this popup class holds switchable panels where one is the content
> panel and one a progressbar panel.
>
> The idea was to send in whatever content is needed for an action and then
> start the progressbar. This has worked very well based upon the wicketstuff
> progressbar and their taskservice running on Wicket 1.4.20.
>
> It was time to upgrade Wicket and I did so to 6.3 via 1.5.9. Unfortunately
> I
> never tested this exact functionality when the port to 1.5.9 was completed
> so I can't say whether it worked or not in 1.5.9. With Wicket 6.3 it
> doesn't
> work. The popup is displayed fine and the task gets going as expected, but
> then when the AjaxSelfUpdatingTimerBehavior of the progressbar finishes
> things break apart with a WicketRuntimeException saying there's no page
> found for the component (the panel holding the progressbar in the base
> popup
> class).
>
> We end up in the getPage() function of the Component class via several
> function calls in AbstractAjaxTimerBehavior, AbstractDefaultAjaxBehavior
> and
> AbstractAjaxBehavior. It all starts off with the
> AbstractAjaxTimerBehavior's
> respond() and getJsTimeoutCall() functions, and eventually the
> AbstractAjaxBehavior's getCallbackUrl() function is called which takes us
> to
> the getPage() function, and once there the panel, holding the progressbar
> in
> the popup class, is not attached to a page and I can't figure out why.
>
> I realize a lot has happened in Wicket since 1.4.20, especially in Wicket 6
> and the new jQuery back-end and I was hoping someone could give me some
> pointers where I should start looking when it comes to these types of
> problems with ajax updates.
>
> Thanks.
>
> -Håkan
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/wicket-stuff-progressbar-problem-in-Wicket-6-3-tp4654469.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