Re: File upload using REST API

2016-10-24 Thread Andrea Del Bene

Hi,

I haven't any code that does file upload, but I think you need to 
implement a custom IWebSerialDeserial that extracts file (or a list of 
them) from request an then you can pass this value to your REST resource 
with annotation @RequestBody. Files can be extracted from request in the 
usual way:


http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet

On 24/10/2016 08:13, James Selvakumar wrote:

Dear friends,

I want to upload a file using REST API.
I'm already using WicketStuff REST library.
I searched and couldn't see any example based on Wicket.
Can anyone guide me to understand how to do this in Wicket?




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



Re: 7.3 : javascript attached to extended AjaxButton

2016-10-24 Thread Martin Grigorov
panel.setBody("")

This seems to create an  HTML element with JavaScript with src that is
relative to the current url in the address bar, i.e. the page url.

Wicket behaves properly.
Probably you need to mount the page at a specific url to make it working.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Oct 21, 2016 at 12:47 AM, sorinev  wrote:

> 1. We extend AjaxButton.
> 2. In renderHead(), we do a JavaScriptReferenceHeaderItem with a
> JavaScriptResourceReference that has a javascript file that is local to our
> class.
> 3. Inside the javascript file there is a yahoo widget panel that does this:
> panel.setBody(" <\"images/ajax-loader.gif\"> ").
>
> So it appears to be resolved relative to the page. I've tried many
> different
> ways to load an image, but they mostly seem to rely on manually adding a
> html tag in the file and giving it a wicket:id, but this image is not
> loaded
> in the standard wicket component way.
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/7-3-javascript-attached-to-extended-
> AjaxButton-tp4675692p4675858.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: 8.0.0-M1 MarkupNotFoundException

2016-10-24 Thread Martin Grigorov
Hi Greg,


   Some Text
 

doesn't make much sense.
 is supposed to be used around  and  elements.
In your demo application it is around . I hope your real application
makes good use of it.

Also the marku of the Page is not really a page, i.e. it doesn't have
, .  It starts with a .

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Oct 21, 2016 at 12:18 AM, Greg Johnson  wrote:

> Hi Martin,
>
> This is supposed to be a trivial menu/content replacement system that runs
> http://www.willinge.com.au, the architecture may very well be flawed :-)
>
> The quickstart at  http://anekol.com/pub/myproject2.zip is a cutdown
> version of the website (images removed etc) for you to see the big picture.
>
> Even if the architecture is flawed, it's still been running this trivial
> website successfully for years, a testament to Wicket :-)
>
> I would of course appreciate your advice on what the architecture should
> look like if you ever ran out of more important things on your list to do
> :-)
>
> With many years of IT experience, the very early versions of Wicket came
> to our notice as a high integrity framework and it continues to be a
> delight to watch the continuing success fo those who truly understand what
> it takes to build and deploy critical enterprise infrastructure.
> Congratulations.
>
> Regards,
> Greg Johnson
>
> > On 18 Oct. 2016, at 05:58, Martin Grigorov  wrote:
> >
> > Hi Greg,
> >
> > What is the idea behind:
> >
> > com/mycompany/AboutMenu$Overview.html (a Panel) containing just:
> >
> > 
> >Some Text
> > 
> >
> >
> > The full HTML produced by the home page is:
> >
> > 
> > 
> > 
> > http://localhost:8080/?5-1.-menu-items-0-item-link>">
> > Overview
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > Some Text
> > 
> > 
> > 
> > 
> >
> >
> > It is totally incorrect!
> >
> >
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Oct 17, 2016 at 1:19 AM, Greg Johnson <
> greg.john...@saltaire.com.au>
> > wrote:
> >
> >> Hi, the example is a very basic “menu” example where on menu select main
> >> content is changed.
> >>
> >> From the attached quickstart …
> >> * run Start.java
> >> * localhost:8080/ - Home Page displays
> >> * Press browser refresh - Home Page displays
> >> * Press browser refresh - MarkupNotFoundException: Markup not found for
> >> Component: [TransparentWebMarkupContainer [Component id = wicket_link1]]
> >>
> >> if the  tags are removed there is no problem. Note that
> there
> >> are no links, it is just the mere presence of the  tags
> that
> >> seems to cause the problem.
> >> Perhaps the architecture is flawed, however it is not clear to me why it
> >> only fails on the 3rd render.
> >>
> >> Any help would be appreciated, thanks.
> >>
> >> Regards, Greg Johnson
> >>
> >>
> >>
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: WICKET-6249

2016-10-24 Thread Martijn Dashorst
The releases are now in vote, probably today or tomorrow I'll push the
release buttons.

Martijn


On Sat, Oct 15, 2016 at 9:40 PM, Martin Grigorov  wrote:
> Hi Jonas,
>
> Looking at the changes at WICKET-6249 I think the problem is fixed and the
> ticket could be closed.
> AFAIK Martijn has some hardware problems and that's why he is not able to
> release 6.x, 7.x and 8.x.
> I hope he will release them soon. I also wait for some fixes in 7.5.0.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Oct 13, 2016 at 8:20 PM, Martin Grigorov 
> wrote:
>>
>> /cc Martijn
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Thu, Oct 13, 2016 at 1:26 PM, Jonas  wrote:
>>>
>>> Hello,
>>>
>>> we recently had trouble with LoadableDetachableModel remaining in
>>> 'attaching' state after a RuntimeException during #load. I noticed the
>>> problem is already tracked in WICKET-6249. While there seems to be a fix
>>> for wicket 7.x, the issue itself is still marked as open/unresolved.
>>> That's
>>> why I wanted to ask if it will be fixed in Wicket 7.5.0 and if there are
>>> plans to build 7.5.0 anytime soon.
>>>
>>> Thanks
>>>
>>> Jonas
>>
>>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com

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



File upload using REST API

2016-10-24 Thread James Selvakumar
Dear friends,

I want to upload a file using REST API.
I'm already using WicketStuff REST library.
I searched and couldn't see any example based on Wicket.
Can anyone guide me to understand how to do this in Wicket?

-- 
Thanks in advance,
James Selvakumar