CryptoMapper ignores original queryString parameters

2012-12-08 Thread LauraZ
Hi, I'm having troubles with CryptoMapper. 
When an AjaxRequest (with parameters) arrives and CryptoMapper decrypts it,
original queryString parameters dissapears.

Debugging CryptoMapper, I've checked that this method:

private Url decryptUrl(final Request request, final Url encryptedUrl) {
...
}

receives querystrings parameters (on field url.parameter from "request"
parameter) and the new Url returned by the method never adds them to its own
list.

Am i doing something wrong, or it's a bug?

Regards, Laura




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CryptoMapper-ignores-original-queryString-parameters-tp4654617.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



TinyMCE ImageUploadPlugin problem

2012-12-08 Thread Sandor Feher
Hi,

I have a form with a textarea TinyMceBehavior attached. I would like to
provide users to upload and include images in their articles. I did the
following method:

ImageUploadPanel imageUploadPanel = new ImageUploadPanel("uploadPanel");
TinyMCeAdvancedSettings settings = new TinyMCeAdvancedSettings();
ImageUploadPlugin plugin = new
ImageUploadPlugin(imageUploadPanel.getImageUploadBehavior());
settings.add(plugin.getImageUploadButton(),
TinyMCESettings.Toolbar.first,TinyMCESettings.Position.after);
add(imageUploadPanel);
article.add(new TinyMceBehavior(settings));

The result is that upload button's icon is missing but the upload function
works. I can upload files but have two problems.
First is I'm not able to control where to put uploaded files (Not even know
where are they now. I suppose somewhere tmp dir). The second one is that
after upload img inserted in the article  the following  way:

If anyone could point to what I'm wrong I really would appreciate that!

thnx, Sandor





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TinyMCE-ImageUploadPlugin-problem-tp4654616.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: WebSockets questions

2012-12-08 Thread Maxim Solodovnik
Hello Martin,

Thanks for the quick reply
The issue is created with quickstart attached:
https://issues.apache.org/jira/browse/WICKET-4917


On Fri, Dec 7, 2012 at 3:26 PM, Martin Grigorov wrote:

> Hi Maxim,
>
> Please create a quickstart and attach it to a ticket in Jira.
> Try to expose as many problems as you can with it.
>
>
> On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik  >wrote:
>
> > Hello,
> >
> > I'm trying to add WebSocketBehavior to our project (Apache Openmeetings
> > Incubating)
> >
> > Unfortunately my first attempts were unsuccessful :(
> >
> > Configuration:
> > 1) custom Tomcat7 (Red5 server on the top of Servlet Engine: Apache
> > Tomcat/7.0.32 embedded)
> > 2) Sun JDK 1.7.09
> > 3) Ubuntu 12.10
> > 4) Wicket 6.3.0
> > 5) Google Chrome 24.0.1312.32 beta
> > 6) One page architecture with custom HomePageMapper
> >
> >
> https://svn.apache.org/repos/asf/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/web/app/Application.java
> >
> > What I did:
> > 1) set org.apache.wicket.protocol.http.Tomcat7WebSocketFilter
> > 2) add new WebSocketBehavior() to the page
> >
> > Errors:
> > 1) if the page is accessed via
> > http://localhost:5080/openmeetings/html/#admin/configs URL I get "URL
> has
> > fragment component
> > ws://localhost:5080/openmeetings/html/#admin/configs&pageId=8" error
> >
> > 2) if the page is accessed via http://localhost:5080/openmeetings/html/I
> > get
> > java.lang.IllegalStateException: Request parameter 'pageId' is required!
> > in the error log
> >
> > I believe error 1) above is bug, I'm I right?
> > Maybe anybody can suggest how to handle error 2) ?
> >
> > I would really appreciate any help :)
> >
> > --
> > WBR
> > Maxim aka solomax
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>



-- 
WBR
Maxim aka solomax


Re: a question on different data grid components available for wicket

2012-12-08 Thread Ernesto Reinaldo Barreiro
This seems to be the problem.

https://issues.apache.org/jira/browse/WICKET-4916

With patch applied to my local wicket branch tree grid works as expected.

On Sat, Dec 8, 2012 at 11:27 AM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Martin,
>
> I think what is happening with tree-grid "edit" is that no "onclick"
> handlers are generated for newly added rows (when a node is expanded).  Any
> pointers on what might be causing that?
>
> On Tue, Dec 4, 2012 at 9:07 PM, Ernesto Reinaldo Barreiro <
> reier...@gmail.com> wrote:
>
>> Fixed "return" and "ESC" on edit both for YUI and jquery.
>>
>>
>> On Tue, Dec 4, 2012 at 8:27 PM, Martin Grigorov wrote:
>>
>>> I compared it against
>>> http://www.wicket-library.com/inmethod-grid/data-grid/simple?0 - this
>>> uses
>>> InMethod Grid 1.5 though
>>>
>>>
>>> On Tue, Dec 4, 2012 at 8:24 PM, Ernesto Reinaldo Barreiro <
>>> reier...@gmail.com> wrote:
>>>
>>> > Martin,
>>> >
>>> > On Tue, Dec 4, 2012 at 9:28 AM, Martin Grigorov >> > >wrote:
>>> >
>>> > > Great work, Ernesto !
>>> > >
>>> > > I just tried the samples application and the only problem that I've
>>> found
>>> > > is related to the editable grids.
>>> > > In both Editable Grid and Editable TreeGrid the 'ESC' keypress
>>> doesn't
>>> > > work.
>>> > >
>>> >
>>> > 'Esc' Keypress does not work either with YUI. It gives JS error.
>>> >
>>> > TypeError: elements[0].onclick is null
>>> >
>>> > row = findParent(row, "TR");
>>> >
>>> >
>>> >  I will also fix that.
>>> >
>>> >
>>> > > In Editable TreeGrid I can edit only folders but I can't edit leafs.
>>> > >
>>> > >
>>> > You can't edit leafs (also) with YUI based version (just checked
>>> that). So,
>>> > this might be a regression on YUI version?
>>> >
>>> > --
>>> > Regards - Ernesto Reinaldo Barreiro
>>> > Antilia Soft
>>> > http://antiliasoft.com/ 
>>> >
>>>
>>>
>>>
>>> --
>>> Martin Grigorov
>>> jWeekend
>>> Training, Consulting, Development
>>> http://jWeekend.com 
>>>
>>
>>
>>
>> --
>> Regards - Ernesto Reinaldo Barreiro
>> Antilia Soft
>> http://antiliasoft.com/ 
>>
>>
>
>
> --
> Regards - Ernesto Reinaldo Barreiro
> Antilia Soft
> http://antiliasoft.com/ 
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ 


Re: what is Wicket 2.x?

2012-12-08 Thread Lucio Crusca
In data venerdì 7 dicembre 2012 20:06:45, Jeremy Thomerson ha scritto:
> Yep.  There was a big change to constructors IIRC, although I can't
> remember exactly what the change was.  Next came 1.3.0 with generics.
> 

Can I (we, you, ...) edit that sentence from the wiki pages then? It's 
confusing for newcomers like me. Does the IModel interface work as described 
in that page also in 6.x, except for generics?

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



Re: what is Wicket 2.x?

2012-12-08 Thread Martijn Dashorst
Instead of adding components to their parents, you provide a child
with their parent at construction time. The idea was that it would
help in parsing, component construction and better feedback when
creating pages. The burden it imposed outweighed the benefits be a
great margin.

Martijn

On Fri, Dec 7, 2012 at 8:06 PM, Jeremy Thomerson
 wrote:
> Yep.  There was a big change to constructors IIRC, although I can't
> remember exactly what the change was.  Next came 1.3.0 with generics.
>
>
>
> --
> Jeremy Thomerson
> http://wickettraining.com
> *Need a CMS for Wicket?  Use Brix! http://brixcms.org*
>
>
> On Fri, Dec 7, 2012 at 12:55 PM, Pierre Goupil wrote:
>
>> Good evening,
>>
>> It's an old experiment which was due to go to "ready for prime-time" but
>> never succeeded. If I remember correctly, it was before what became Wicket
>> 1.3.
>>
>> Regards,
>>
>> Pierre
>>
>>
>> On Fri, Dec 7, 2012 at 7:47 PM, Lucio Crusca  wrote:
>>
>> > Hello *,
>> >
>> > while reading this page
>> >
>> > https://cwiki.apache.org/WICKET/working-with-wicket-models.html
>> >
>> > I stumbled upon the following sentence:
>> >
>> > «NOTE: this page is about models like they exist for Wicket 1.x. The
>> IModel
>> > interface is slightly changed in Wicket 2.x»
>> >
>> > What version of Wicket is 2.x? I'm aware of 1.x and 6.x, but never heard
>> > about
>> > 2.x...
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>>
>> --
>> Le bonheur n'est pas une destination, mais une façon de voyager.
>>
>> Papa d'une petite Lou-Ann depuis le 30 juin.
>>



-- 
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



pageparameters in link onclick

2012-12-08 Thread Kurt Sys
Hey, I'm having some issues with pageparameters. I'm upgrading from wicket
1.4.x to 1.6.x. Most is done, however, I can't get pageparameters to work
properly. 

-- MainApp defines how I mount the pages, i.e. with two optional parameters
(type and id):


-- HomePage.java is nothing special but just loads a bunch of stuff,
including BlogPanel (yeah, it's for a blog, how did you guess?) which
includes a BlogDataView

-- BlogDataView, if in the url I have somthing like /post/50, it should load
the page with post 50 and scroll to the right post, hence the 'if (blogid >
0)':



All this works fine, but I have included in my homepage some panels with
links to specific posts. In that case, the right page/post must be loaded.
So I have stuff like this:



However, the PageParameters are not set. The URL isn't updated properly and
always ends with: '/post/62' (followed by '?2' or something, but that
doesn't matter a lot). I, as a test, changed 'pars.add("type","post")'
'pars.add("type","test")', but still get '/post/62'. I must be missing
something, but I just can't get to it. 

Oh yeah, the links in the source code of the generated webpage:


or, depending how the page was loaded (/post/xx or without parameters):


Should I implement some kind of ILinkListener or how can I generate the URL
properly (so it gets to /post/xx)? Or maybe just: why are the pageparameters
not right? (That might be enough to get to the right answer, I suppose - it
used to work in Wicket 1.4.x).

Thanks, Kurt




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/pageparameters-in-link-onclick-tp4654611.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: Listview Checkbox checked by default and disapearing after submit

2012-12-08 Thread Pat
Thank you so much, I would never have found that! Everything works perfectly
now

cheers



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Listview-Checkbox-checked-by-default-and-disapearing-after-submit-tp4654605p4654610.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