Re: Preventing double-clicking of Ajax-Buttons

2010-09-16 Thread Ernesto Reinaldo Barreiro
Martin,

Wicket will take care of the nasty details for you:-) Take a look at
[1] or search the list for different solutions.

Ernesto

References,

1-http://wicketinaction.com/tag/veil/




On Fri, Sep 17, 2010 at 8:46 AM, MattyDE  wrote:
>
> Mhmm okay.
>
> But how can i react on "form-validation" fails and hide the vail?
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543428.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



SV: Preventing double-clicking of Ajax-Buttons

2010-09-16 Thread Wilhelmsen Tor Iver
> any ideas how i could disable (client-side) an ajax-button after
> clicking
> them once?

Override getAjaxCallDecorator() and return an IAjaxCallDecorator which returns 
"getElementById('"+yourButton.getId()+"').disabled = true;"+script for 
decorateScript(). You also need to enable it in the success/failure methods.

- Tor Iver

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



Re: Preventing double-clicking of Ajax-Buttons

2010-09-16 Thread MattyDE

Mhmm okay.

But how can i react on "form-validation" fails and hide the vail?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543428.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: Preventing double-clicking of Ajax-Buttons

2010-09-16 Thread Ernesto Reinaldo Barreiro
Use a veil to block the page while AJAX is executing?

Ernesto

On Fri, Sep 17, 2010 at 8:36 AM, MattyDE  wrote:
>
> Hi,
>
> any ideas how i could disable (client-side) an ajax-button after clicking
> them once?
>
> How should i process Form-Validation too? If the validation fails, the
> button have to be enabled again to change some values, and re-submit the
> form afterwards.
>
> Any hints?
>
> Thanks :)
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543415.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



Preventing double-clicking of Ajax-Buttons

2010-09-16 Thread MattyDE

Hi,

any ideas how i could disable (client-side) an ajax-button after clicking
them once?

How should i process Form-Validation too? If the validation fails, the
button have to be enabled again to change some values, and re-submit the
form afterwards.

Any hints?

Thanks :)
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Preventing-double-clicking-of-Ajax-Buttons-tp2543415p2543415.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: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Arjun Dhar

@Richard

"Apache Roller is a Java based blogging system, if you're looking for
something. "
--- I've used Roller and like it a lot functionally. But am circumspect of
its integration capabilities with other CMS, and also integration of its
Admin module to be a plugin-component into another CMS instead of a stand
alone system. Their Wiki isnt that insightful to tell me all this. So beyond
functionally what it does stand alone I'd like to understand its integration
capabilities more. If you guys know and are doing something in Lenya for
that, please share it. I'd love to understand first..and then possibly
contribute about things I've mentioned.

I think the basic point it to allow *integration*, scripting, plug-in 
capabilities and not have to provide everything under one roof. I like BRIX
for this reason; simple CORE and extend anywhere.. but it suffers from other
things I've mentioned above. Will give Leya a shot too.

thanks a lot.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2543399.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: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Arjun Dhar

@Brian - 

"but there's a lot of fragmented development and not a lot of investment
going back in." 
--- yes, this is what I sense. I'm not even aware of the Brix community
unlike Wicket which is more active. If you see the Brix architecture page i
put some comments but Looks pretty dead which is pretty de-motivating.

"I would challenge you to create needs in the core by demonstrating those
needs" 
--- No, I dont think the core needs to be changed as such, Simple is better
& should remain preserved. However we can upgrade the Wicket dependencies
from time to time? :) ?!
I ALSO like the idea it does NOT have a custom workflow etc built into core,
coz I'm a fan of Drools work flow & Rules Engines to allocate business logic
and workflows; Apache Camel & Spring Integration.

"If you are worried about people having access to your assets"
--- No sir, the more the merrier. I'd love to get into it once i'm sure to
commit time & effort.

>From a "using for commercial web sites" perspective, issue is from a UI
perspective the Admin module has a poor finish compared to Alfresco and say
Hippo; its not just the CSS but the general layout sucks. ...I cant sell a
website & present that to the customer without significant effort. Something
I can look to contribute on.

thank you.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2543378.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: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Arjun Dhar

Earlier I had written it off, but on you suggestion I am taking a fresh look
at it. It seems well supported and documented. Am studying it... will get
back on my findings. thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2543363.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: Asynchronous File Uploads

2010-09-16 Thread nivs

Thanks for the time. Will give that a shot. Many thanks (will keep it simple)
Niv 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p2543362.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



Complicated master-detail form

2010-09-16 Thread devnullable

Hi!

I am evaluating different Java frameworks for complete rewriting of old
jsp-based web extranet system and now checking Wicket. I have studied Wicket
before but now one major obstacle is slowing me down.

I need to implement many master-detail forms like order-order lines. Screen
would have order related fields on top, below that a grid of order lines and
bottommost fields of order line. Selecting a row from grid should update
values of the currently selected line to fields.

I found an article
http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ but
that is not similar to my case because it's showing all lines, not just one
selected.

So how should I advance? Is my example doable only with Wicket or should I
use for example jQuery also? Any advice much appreciated!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Complicated-master-detail-form-tp2543354p2543354.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: Form values are not submitted if form-component is initially not visible

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 5:17 PM, Joachim Rohde  wrote:

> I have a listview which is displaying in each row some data within a form,
> among other things a date (as a label which is initially shown)
> and a Panel containing a (wiquery-)datepicker (which is initially hiding).
> Each row also has an edit-link (AjaxLink) and a save-link (SubmitLink).
> After clicking the edit-link I'm hiding the date-label and display my panel
> with the datepicker.
>
> My problem is now that after clicking the SubmitLink I'm getting a
> null-value from my datePicker.
>
> If I am setting the visibility of my panel from the very beginning to
> "true" and omit adding my panel to the AjaxRequestTarget within my AjaxLink,
> everything
> works as expected: the datepicker is returning the selected value.
>
> What am I doing wrong here? How can I display my panel via Ajax and getting
> anyway my form-values submitted?
>
> I tried already several hours to find a solution, searched the mailing list
> and web but I don't find any solution. So thanks in advance for any
> suggestion.
>
> Joachim
>
>
> PS:
> Here are the relevant pieces of code:
>
> My Listview:
>
>ListView tiltos = new ListView("myList", myList)
>{
>
>@Override
>protected void populateItem(final ListItem listItem)
>{
>
>Form form = new Form("form");
>listItem.add(form);
>
>// the actual date is set later in the code
>final Label dateToBuy = new Label("dayToBuy", "keine
> Angabe");
>dateToBuy.setOutputMarkupId(true);
>dateToBuy.setOutputMarkupPlaceholderTag(true);
>form.add(dateToBuy)
>
>final EditDatePanel editDate = new
> EditDatePanel("editDate");
>
>// if i set this to true and ommit the line later,
> everything works
>editDate.setVisible(false);
>
>editDate.setOutputMarkupId(true);
>editDate.setOutputMarkupPlaceholderTag(true);
>form.add(editDate);
>
>final SubmitLink saveLink = new SubmitLink("saveLink")
>{
>
>@Override
>public void onSubmit()
>{
>// the output here is always null if the
> editDatePanel
>// is added to the AjaxRequestTarget (see following
> lines)
>System.out.println("test = " + editDate.getTest());
>}
>}
>
>final AjaxLink editLink = new AjaxLink("editLink")
>{
>
>@Override
>public void onClick(AjaxRequestTarget target)
>{
>dateToBuy.setVisible(false);
>editDate.setVisible(true);
>target.addComponent(dateToBuy);
>
>// this one causes my form not to submit any values
>   // if I ommit it everything works
>target.addComponent(editDate,
> editDate.getMarkupId());
>}
>};
>
>form.add(editLink);
>}
>
>}
>
>
> The markup to my listview:
>
> 
> 
> 
> 
> 
> 
> 01.06.2010
> 
> 
> 
> 
> 
>
>
>
> My panel (which is, at least I think so, irrelevant to my problem):
>
> public final class EditDatePanel extends Panel
> {
>
>private Date test;
>
>public EditDatePanel(String id)
>{
>super(id);
>
>DatePicker datePicker = new
> DatePicker("datePicker", new PropertyModel(this, "test")) {
>public void onModelChanging()
>{
>System.out.println("geht los jetzt!");
>}
>};
>datePicker.setNumberOfMonths(new
> DatePickerNumberOfMonths(new Short((short) 1)));
>datePicker.setShowButtonPanel(false);
>datePicker.setShowOn(ShowOnEnum.FOCUS);
>
>datePicker.setOutputMarkupId(true);
>datePicker.setOutputMarkupPlaceholderTag(true);
>
>datePicker.setVisible(true);
>add(datePicker);
>}
>
>public Date getTest()
>{
>return test;
>}
>
>public void setTest(Date test)
>{
>this.test = test;
>System.out.println("test   x: " +test);
>}
> }
>
> The markup to my panel:
>
> 
> 
> 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
Add the entire form to the AjaxRequestTarget.  The form's action URL is
out-of-date and pulls up the old version of the page.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Looking for inspiration/suggestions

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 11:19 PM, Emmanouil Batsis (Manos)
wrote:

>
> Consider the task of building a wicket-based UI that allows users to map
> properties between entities (e.g. a mapping between InventoryAsset to
> SupportTicket properties), how would you do it? Some considerations are
> datatype mappings but that may or may not be relevant to the wicket layer.
> The UI will probably produce an XML file as a serialization of the mapping
> between the two entities.
>
> I'm new to wicket and just looking on suggestions on components to use etc.
> Wouldn't say no to any time saver :-)


Tons of possibilities, but obviously you'll be using Forms, DropDownChoice
and maybe even a Palette.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Asynchronous File Uploads

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 11:20 PM, nivs  wrote:

>
> Thanks mate, I will investigate more on this, but can you elaborate it a
> little bit?
>
> I can think of the following
>
> 1. When the application starts up, the servlet will be loaded up.
> 2. In its init(), I would have to create a process that is more like a
> daemon and waits for it to be requested or invoked.
> 3. From the GUI, actor uploads a file - this has to delegate the request to
> the servlet.Which then does the job
>
> Am i on the right track?
> Cheers
>

You're over-complicating things.  He meant just write a regular ol' servlet.
 Servlets already respond to HTTP requests - there's no daemon junk to worry
about.  Write a servlet, put it in your web.xml and make your upload form
submit to it instead of Wicket.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Asynchronous File Uploads

2010-09-16 Thread nivs

Thanks mate, I will investigate more on this, but can you elaborate it a
little bit? 

I can think of the following

1. When the application starts up, the servlet will be loaded up.
2. In its init(), I would have to create a process that is more like a
daemon and waits for it to be requested or invoked.
3. From the GUI, actor uploads a file - this has to delegate the request to
the servlet.Which then does the job

Am i on the right track?
Cheers

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p2543316.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



Looking for inspiration/suggestions

2010-09-16 Thread Emmanouil Batsis (Manos)


Consider the task of building a wicket-based UI that allows users to map 
properties between entities (e.g. a mapping between InventoryAsset to 
SupportTicket properties), how would you do it? Some considerations are 
datatype mappings but that may or may not be relevant to the wicket 
layer. The UI will probably produce an XML file as a serialization of 
the mapping between the two entities.


I'm new to wicket and just looking on suggestions on components to use 
etc. Wouldn't say no to any time saver :-)


--
Manos Batsis, Chief Technologist

 ___
   _/ /_  (_)_  __
 / __ `/ __ \/ / ___/ ___// __ `/ ___/
/ /_/ / /_/ / (__  |__  )/ /_/ / /
\__,_/_.___/_//(_)__, /_/
//
http://www.Abiss.gr
19, Kalvou Street,
14231, Nea Ionia,
Athens, Greece

Tel: +30 211-1027-900
Fax: +30 211-1027-999

http://gr.linkedin.com/in/manosbatsis


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



Re: Wicket pages are invalid XHTML

2010-09-16 Thread Ichiro Furusato
Thanks Emond, that looks very helpful. I'm a bit overwhelmed at
this point, having started learning Wicket on Wednesday and by
now almost having a bare bones application. Nice little surprises
along the way...

On 9/17/10, Emond Papegaaij  wrote:
> Hi Ichiro,
>
> If you want to enforce valid XHTML, take a look at the WicketStuff HTML
> Validator: http://github.com/dashorst/wicket-stuff-markup-validator
>
> It automatically validates all pages served by the application and shows an
> error report for invalid markup.
>
> Best regards,
> Emond Papegaaij
>
> On Thursday 16 September 2010 03:50:35 Ichiro Furusato wrote:
>> Hi Jeremy,
>>
>> Thanks for the quick reply. Is the reason I'm seeing the wicket:id
>> in my output then that I'm working in development mode? If so,
>> I'd say that was a nice design decision (not surprising from what
>> else I've seen in Wicket).
>>
>> Cheers,
>>
>> Ichiro
>>
>> On 9/16/10, Jeremy Thomerson  wrote:
>> > On Wed, Sep 15, 2010 at 8:11 PM, Ichiro Furusato
>> >
>> > wrote:
>> >> Hi,
>> >>
>> >> I'm a new Wicket user and am unclear about a couple of things regarding
>> >> what type of markup Wicket delivers to clients. Because some of the
>> >> clients
>> >> I work with have government guidelines restricting what document types
>> >> are permitted (typically XHTML 1.0 Strict or Transitional), I'm
>> >> concerned I might not be able to use Wicket for those projects.
>> >>
>> >> What I'll call "the Wicket XHTML DTD" is referenced as the XML
>> >> namespace
>> >> URI for wicket documents. As (from what I've seen) there is no stated
>> >> DOCTYPE declaration, Wicket pages are expressed as well-formed XML
>> >> only,
>> >> even though they could likely validate according to the Wicket XHTML
>> >> DTD. Unfortunately, for my applications I have a requirement to declare
>> >> and be valid according to a W3C XHTML 1.0 DTD.
>> >>
>> >> It would seem from the unmodified comments found at the top of the
>> >> Wicket
>> >>
>> >> XHTML DTD that the schema used at first glance is XHTML 1.0 Strict,
>> >> e.g.:
>> >>   This DTD module is identified by the PUBLIC and SYSTEM identifiers:
>> >> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> >> SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
>> >>
>> >> but on further investigation there have been modifications to the
>> >> schema: the addition of some "wicket:" prefixed attributes to
>> >> %coreattrs;.
>> >>
>> >> It's not industry practice to do that kind of thing, i.e., the header
>> >> comments should identify the schema being expressed. If a DTD is
>> >> modified the comments should be modified to relabel the schema. Any
>> >> reference to the FPI (formal public identifier) for XHTML 1.0 would
>> >> likewise be inappropriate since the Wicket schema has modified it. Even
>> >> if the changes occur in a new XML namespace the schema is no longer
>> >> XHTML 1.0 Strict and will not validate according to that DTD.
>> >>
>> >> There are a few questions/comments that come from the above:
>> >>   1. Are the wicket attributes required for Wicket-based processing?
>> >>
>> >>  Would removing them break existing functionality?
>> >>
>> >>   2. If the answer to #1 is no, could the web pages be run through a
>> >>
>> >>  simple XSLT transform to remove the non-XHTML attributes?
>> >>
>> >>   3. If the answer to #2 is yes, I'm willing to supply the XSLT
>> >>
>> >>  stylesheet, but I'm not on the developer team and couldn't based
>> >>  on my current workload volunteer, so I wouldn't be able to supply
>> >>  the code supporting that feature.
>> >>
>> >>   4. I am familiar with the XHTML modular DTDs and would be willing to
>> >>
>> >>  supply an XHTML 1.0 DTD based on a new Wicket module, then
>> >>  "flattened" (converted into one file) based on some tools I've
>> >>
>> >> written.
>> >>
>> >>  This would be a replacement for the existing Wicket XHTML DTD and
>> >>  be appropriately named, e.g.,
>> >>
>> >>-//Apache.org//DTD XHTML 1.0 Strict for Wicket 1.4//EN
>> >>
>> >>  This DTD could of course be used to validate Wicket-produced web
>> >>  pages, but wouldn't be needed if the wicket: attributes were
>> >>  stripped from generated web pages. Ideally, Wicket would produce
>> >>  valid XHTML 1.0 Strict. I don't know if this is possible.
>> >>
>> >> Some clarification on this would be most appreciated,
>> >>
>> >> Thanks,
>> >>
>> >> Ichiro
>> >>
>> >> PS. on the whole I'm liking what I see with Wicket, esp. compared to
>> >> Spring's increasingly complex, arcane and fragile approach to what
>> >> should not be rocket science.
>> >>
>> >> -
>> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> > Wicket only generates whatever HTML you want it to generate.  The only
>> > wicket tag (or actually, attribute) you are required to use

[announce] wicketstuff-core 1.4.12 released

2010-09-16 Thread Michael O'Cleirigh

Hello,

I've cut a matching release for wicket 1.4.12 that has just shown up in 
the maven central repositories.


The stable branch for 1.4.12.1-SNAPSHOT is located here: 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicketstuff-core-1.4.12 



I will plan on releasing the 1.4.12.1 point release within one Month 
from today.  If you commit code and want a release sooner let me know as 
one month is the worst case target.


And the release tag: 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.12


The artifacts have been promoted and are available through maven central 
like this:



org.wicketstuff
jasperreports
1.4.12


Regards,

Mike

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



Re: Mouse click position

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 9:23 PM, nazeem  wrote:

> Yes, I agree it is more of javascript. But in my code I am trying to use
> only
> java scripts bundled in wicket. Did not want to add more java script
> libraries to keep it simple. I use attribute modifier for all dynamic
> behaviour's,


This is the right way to go.


> similarly I am trying to open a window popup but instead of
> positioning in middle, would like to position just next to the mouse click.
>
> Any clue to get the mouse click position will be great.
>

This is all JS.  If you need to get it passed into Wicket, you'll need to
grab it with JS and then add it as a query parameter (or similar) to a
Wicket AJAX request.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Mouse click position

2010-09-16 Thread nazeem

Yes, I agree it is more of javascript. But in my code I am trying to use only
java scripts bundled in wicket. Did not want to add more java script
libraries to keep it simple. I use attribute modifier for all dynamic
behaviour's, similarly I am trying to open a window popup but instead of
positioning in middle, would like to position just next to the mouse click.

Any clue to get the mouse click position will be great.


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mouse-click-position-tp2543125p2543257.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: Mouse click position

2010-09-16 Thread Jeremy Thomerson
On Thu, Sep 16, 2010 at 6:40 PM, nazeem  wrote:

>
> Hi,
>
> I would like to show small popup relative to the position of mouse click.
> Especially when user click a link, I need to show list of options and allow
> user to click on one of them. For this I need to know the position of the
> link and mouse click so that I can position the popup accordingly. Please
> advice how we do this using wicket.
>

This is just JavaScript - not really Wicket-specific.  There are a lot of JS
libraries out there to help with this.

-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Ajax "Target"

2010-09-16 Thread James Carman
It might help to look at the hierarchy for AjaxRequestTarget.  Notice
that it implements IRequestTarget.  So, it's a request target, or the
target of a particular servlet/http request.

On Thu, Sep 16, 2010 at 9:02 PM, Chris Colman
 wrote:
> I'm just wondering what the 'target' is in the term Ajax target. From my
> desktop days I was lead to think that 'target' meant a specific
> component but I'm not sure if that's what is intended in the Wicket
> context.
>
> In the wicket context what is the actual target? A JSON packet, the
> browser? Something else?
>
> There's some confusion about the whole target concept that my brain
> would be much happier with if it knew what we were targeting :)
>
>
> -
> 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: Mouse click position

2010-09-16 Thread James Carman
Have you looked at using overlib?

On Thu, Sep 16, 2010 at 7:40 PM, nazeem  wrote:
>
> Hi,
>
> I would like to show small popup relative to the position of mouse click.
> Especially when user click a link, I need to show list of options and allow
> user to click on one of them. For this I need to know the position of the
> link and mouse click so that I can position the popup accordingly. Please
> advice how we do this using wicket.
>
> Regards.
> Naz
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Mouse-click-position-tp2543125p2543125.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



Ajax "Target"

2010-09-16 Thread Chris Colman
I'm just wondering what the 'target' is in the term Ajax target. From my
desktop days I was lead to think that 'target' meant a specific
component but I'm not sure if that's what is intended in the Wicket
context.

In the wicket context what is the actual target? A JSON packet, the
browser? Something else?

There's some confusion about the whole target concept that my brain
would be much happier with if it knew what we were targeting :)


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



Mouse click position

2010-09-16 Thread nazeem

Hi,

I would like to show small popup relative to the position of mouse click.
Especially when user click a link, I need to show list of options and allow
user to click on one of them. For this I need to know the position of the
link and mouse click so that I can position the popup accordingly. Please
advice how we do this using wicket.

Regards.
Naz
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Mouse-click-position-tp2543125p2543125.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



Form values are not submitted if form-component is initially not visible

2010-09-16 Thread Joachim Rohde
I have a listview which is displaying in each row some data within a 
form, among other things a date (as a label which is initially shown)

and a Panel containing a (wiquery-)datepicker (which is initially hiding).
Each row also has an edit-link (AjaxLink) and a save-link (SubmitLink).
After clicking the edit-link I'm hiding the date-label and display my 
panel with the datepicker.


My problem is now that after clicking the SubmitLink I'm getting a 
null-value from my datePicker.


If I am setting the visibility of my panel from the very beginning to 
"true" and omit adding my panel to the AjaxRequestTarget within my 
AjaxLink, everything

works as expected: the datepicker is returning the selected value.

What am I doing wrong here? How can I display my panel via Ajax and 
getting anyway my form-values submitted?


I tried already several hours to find a solution, searched the mailing 
list and web but I don't find any solution. So thanks in advance for any 
suggestion.


Joachim


PS:
Here are the relevant pieces of code:

My Listview:

ListView tiltos = new ListView("myList", myList)
{

@Override
protected void populateItem(final ListItem listItem)
{

Form form = new Form("form");
listItem.add(form);

// the actual date is set later in the code
final Label dateToBuy = new Label("dayToBuy", "keine 
Angabe");

dateToBuy.setOutputMarkupId(true);
dateToBuy.setOutputMarkupPlaceholderTag(true);
form.add(dateToBuy)

final EditDatePanel editDate = new 
EditDatePanel("editDate");


// if i set this to true and ommit the line later, 
everything works

editDate.setVisible(false);

editDate.setOutputMarkupId(true);
editDate.setOutputMarkupPlaceholderTag(true);
form.add(editDate);

final SubmitLink saveLink = new SubmitLink("saveLink")
{

@Override
public void onSubmit()
{
// the output here is always null if the 
editDatePanel
// is added to the AjaxRequestTarget (see 
following lines)

System.out.println("test = " + editDate.getTest());
}
}

final AjaxLink editLink = new AjaxLink("editLink")
{

@Override
public void onClick(AjaxRequestTarget target)
{
dateToBuy.setVisible(false);
editDate.setVisible(true);
target.addComponent(dateToBuy);

// this one causes my form not to submit any values
   // if I ommit it everything works
target.addComponent(editDate, 
editDate.getMarkupId());

}
};

form.add(editLink);
}

}


The markup to my listview:







01.06.2010








My panel (which is, at least I think so, irrelevant to my problem):

public final class EditDatePanel extends Panel
{

private Date test;

public EditDatePanel(String id)
{
super(id);

DatePicker datePicker = new 
DatePicker("datePicker", new PropertyModel(this, "test")) {

public void onModelChanging()
{
System.out.println("geht los jetzt!");
}
};
datePicker.setNumberOfMonths(new 
DatePickerNumberOfMonths(new Short((short) 1)));

datePicker.setShowButtonPanel(false);
datePicker.setShowOn(ShowOnEnum.FOCUS);

datePicker.setOutputMarkupId(true);
datePicker.setOutputMarkupPlaceholderTag(true);

datePicker.setVisible(true);
add(datePicker);
}

public Date getTest()
{
return test;
}

public void setTest(Date test)
{
this.test = test;
System.out.println("test   x: " +test);
}
}

The markup to my panel:





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



Re: how Translate SingIn panel...

2010-09-16 Thread Victor_Trapiello

Thank you very much i will try to do that and i will reply to you with my
feedback cheer
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-Translate-SingIn-panel-tp2541131p2542979.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: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi Martin!

>> Thanks Martin for your time and help!
>>
>> The problem with M2.1 is that some functionality is missing/hidden:
>> E.g. I need
>> getWebRequestCycle().getWebRequest()
>> to guess the user language and set some caching stuff to workaround an
>> ajax+backbutton problem in 1.4.9.
>>
>> 
> In components you can use org.apache.wicket.Component.getRequest()
> Otherwise: RequestCycle.get().getRequest() and WebRequest,
> ServletWebRequest, custom
ok, I will take a look at this.

> See wicket-examples > Guice (
> http://wicketstuff.org/wicket/guice/wicket/bookmarkable/org.apache.wicket.examples.guice.HomePage
> )
> They work. Find the differences ;-)
>   

Hmmh, the example doesn't use modules, setters for injection or
providers ... I will digg into and raise another Jira issue if it's not
my fault ;-)

>> I found the migration guide but could not solve the problems above
>> https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5
>>
>> 
> If you find something to add there don't hesitate to press the "Edit" link
> at the top ;-)

If I only could provide a solution :-)

Regards,
Peter.

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



Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 9:11 PM, Peter Karich  wrote:

> Thanks Martin for your time and help!
>
> The problem with M2.1 is that some functionality is missing/hidden:
> E.g. I need
> getWebRequestCycle().getWebRequest()
> to guess the user language and set some caching stuff to workaround an
> ajax+backbutton problem in 1.4.9.
>
In components you can use org.apache.wicket.Component.getRequest()
Otherwise: RequestCycle.get().getRequest() and WebRequest,
ServletWebRequest, custom

>
> Is this the correct way to use MountedMapper
> getRootRequestMapperAsCompound().add(new MountedMapper("search",
> HomePage.class));
> ?
>
Yes.

>
> But the blocker was guice, it seems to be broken (does not inject my
> Provider => NPE) when using the 1.4.9 approach:
> addComponentInstantiationListener(
>new GuiceComponentInjector(this, Guice.createInjector(new
> DefaultModule(;
>
See wicket-examples > Guice (
http://wicketstuff.org/wicket/guice/wicket/bookmarkable/org.apache.wicket.examples.guice.HomePage
)
They work. Find the differences ;-)

>
> I found the migration guide but could not solve the problems above
> https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5
>
If you find something to add there don't hesitate to press the "Edit" link
at the top ;-)

>
> Regards,
> Peter.
>
>
> > On Thu, Sep 16, 2010 at 4:05 PM, Peter Karich  wrote:
> >
> >
> >> Hi Martin!
> >>
> >>
>  The answer here is to use HybridUCS. It preserves the 'nice' url.
> 
> 
> >>> Or use Wicket 1.5 (M2.1). There the URL handling is much easier.
> >>>
> >>>
> >> did you mean this one:
> >>
> >> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.5-M2/
> >>
> >>
> > Yes, see
> > Artifacts:
> > http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/dist
> 
> > Maven repo:
> > http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/m2-repo
> 
> >
> >
> >> are there any major problems with that version?
> >>
> >>
> > Probably, it is not final yet. But I don't know of anything major.
> >
> >
> >>
> >>> There the URL handling is much easier.
> >>>
> >> What in detail is better with URL handling? It works better 'out of the
> >> box'?
> >>
> >> The UrlCodingStrategies are replaced with IReuqestHandlers which are
> much
> >>
> > more easier to extend, read, write, ...
> > For your case see MountedMapper.
> >
> >
> >>> I'm not sure where is the problem here. I'll need to try it myself ...
> >>> Please create a ticket in Jira with a quickstart. Maybe it is a bug.
> >>>
> >>>
> >> ok, I can reproduce it with 1.4.9. see:
> >> https://issues.apache.org/jira/browse/WICKET-3052
> >>
> >> Please let me know if you can reproduce it too or if I did something
> >> other wrong.
> >>
> >>
> > Ok. Some of us will take a look.
> > Thanks!
> >
> >
> >> Regards,
> >> Peter.
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Thanks Martin for your time and help!

The problem with M2.1 is that some functionality is missing/hidden:
E.g. I need
getWebRequestCycle().getWebRequest()
to guess the user language and set some caching stuff to workaround an
ajax+backbutton problem in 1.4.9.

Is this the correct way to use MountedMapper
getRootRequestMapperAsCompound().add(new MountedMapper("search",
HomePage.class));
?

But the blocker was guice, it seems to be broken (does not inject my
Provider => NPE) when using the 1.4.9 approach:
addComponentInstantiationListener(
new GuiceComponentInjector(this, Guice.createInjector(new
DefaultModule(;

I found the migration guide but could not solve the problems above
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5

Regards,
Peter.


> On Thu, Sep 16, 2010 at 4:05 PM, Peter Karich  wrote:
>
>   
>> Hi Martin!
>>
>> 
 The answer here is to use HybridUCS. It preserves the 'nice' url.

 
>>> Or use Wicket 1.5 (M2.1). There the URL handling is much easier.
>>>
>>>   
>> did you mean this one:
>>
>> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.5-M2/
>>
>> 
> Yes, see
> Artifacts:
> http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/dist
> Maven repo:
> http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/m2-repo
>
>   
>> are there any major problems with that version?
>>
>> 
> Probably, it is not final yet. But I don't know of anything major.
>
>   
>> 
>>> There the URL handling is much easier.
>>>   
>> What in detail is better with URL handling? It works better 'out of the
>> box'?
>>
>> The UrlCodingStrategies are replaced with IReuqestHandlers which are much
>> 
> more easier to extend, read, write, ...
> For your case see MountedMapper.
>
>   
>>> I'm not sure where is the problem here. I'll need to try it myself ...
>>> Please create a ticket in Jira with a quickstart. Maybe it is a bug.
>>>
>>>   
>> ok, I can reproduce it with 1.4.9. see:
>> https://issues.apache.org/jira/browse/WICKET-3052
>>
>> Please let me know if you can reproduce it too or if I did something
>> other wrong.
>>
>> 
> Ok. Some of us will take a look.
> Thanks!
>
>   
>> Regards,
>> Peter.
>> 


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



Re: Export Excel file containing string and rendered component

2010-09-16 Thread Altuğ Bilgin Altıntaş
Hi;

After using  WebResponse to export excel then clicking a Link gives *Page
expired* error.

Any suggestion ?


2009/6/4 Igor Vaynberg 

> you have the webresponse, can you not simply write into it?
>
> -igor
>
> On Thu, Jun 4, 2009 at 9:49 AM, Frank Silbermann
>  wrote:
> >
> > I, too, am trying to have my application download MS Excel files.  Until
> now,
> > mine have contained the content of a DataTable, using the code I received
> > from the mailing list three years ago:
> >
> > Button button = new Button("excelExport") {
> >public void onSubmit() {
> >getRequestCycle().setRequestTarget(
> >new ComponentRequestTarget(dataTable)
> >);
> >WebResponse wr = (WebResponse)getResponse();
> >wr.setContentType( "excel/ms-excel; name="+getMSExcelFilename() );
> >wr.setHeader( "content-disposition",
> > "attachment;filename="+getMSExcelFilename() );
> >}
> > };
> >
> > The file downloaded contains an HTML fragment that both MS Excel and MS
> Word
> > can interpret, if one opens the resulting file in those applications.
> >
> > Now my users told me they would like the download to contain not just the
> > data, but the date of its creation.  Is there an easy way to pre-pend an
> > arbitrary string to that HTML fragment?  I don't really understand the
> > details of Wicket's page rendering process, and looking at the classes
> I've
> > been using there don't seem to be any obvious hooks.
> >
> >
> >
> >
> >stream = class AbstractResourceStreamWriter()
> >{
> >  public void write(OutputStream output)
> > {
> >   // do your writing
> > }
> >}
> >
> > getRequestCycle().setRequestTarget(
> > new ResourceStreamRequestTarget( stream
> ).setFileName(
> > "file.xls" )
> >);
> >
> > johan
> >
> >
> > On Tue, Apr 1, 2008 at 9:31 AM,  wrote:
> >
> >> Hello:
> >> I am trying to export dynamically generated excel file.
> >> The generator would send the file.xls to an OutputStream.
> > ...
> >
> > --
> > View this message in context:
> http://www.nabble.com/export-excel-file-via-an-OutputStream-tp16416239p23873774.html
> > Sent from the Wicket - User 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
>
>


Can I implment this with Wicket table components?

2010-09-16 Thread gouthamrv

I have below requirements, I would like to know how feasible it is to
implement this with Wicket table components.

1. A web page should contain a table initially with one row. 
2. On the bottom of the table there should be some links to add row in AJAX
way(No page refresh) 
3. I should be able to clone a selected row when I click a link on the
bottom of the table. 
4. Some of the table cells should be editable 
5. Each row should contain a button on the last row, when I click this I
should be able to send the row 
values to server and update some cells. (In ajax way) 

I know Wicket has something called "AjaxFallbackDataTable". Is this solves
all these requirements? if not are there any other table implementations
available?  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Can-I-implment-this-with-Wicket-table-components-tp2542690p2542690.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: How to add footer section using DataTable

2010-09-16 Thread gouthamrv

Yes you are right, we can do that. 

Thanks!
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-footer-section-using-DataTable-tp2541058p2542678.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: Ajax and updating DropDownChoice model object

2010-09-16 Thread jcgarciam

I dont think you may want to do that with witcket, each html has a 1:1
relation with a corresponding Java file, having said so the Java file is
very tight to the DOM hierarchy that are wicket component (wicket:id).

It seems like you are trying to build an application with a CMS like
approach.

On Thu, Sep 16, 2010 at 12:30 PM, Eric Reagan [via Apache Wicket] <
ml-node+2542429-664652022-65...@n4.nabble.com
> wrote:

> Hello,
>  I'm having some problems getting ajax to work with a updating the data
>
> contained in the DropDownChoice default model object. My drop down choices
> are dependent upon what is entered in a text box. I can get/update the text
>
> box just fine but when I go and shove the list of choices into the
> DropDownChoice default model object on ajax update the choices are are not
> displayed. If in eclipse I do an inspect of my default model object after I
>
> set it, the proper values are returned.
>
> target.addComponent(getForm().get("contractChoices").setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true));
>
>
> where right now S is a list that I just created with a value of
> abc,
> 123.
>
> Thank you,
>
> --
> Eric Reagan
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542429.html
> To unsubscribe from Apache Wicket, click 
> here.
>
>
>


-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542655.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: Ajax and updating DropDownChoice model object

2010-09-16 Thread jcgarciam

I believe the problem goes that [setOutputMarkupId(true)] is called on very
late step.

Try setting the [setOutputMarkupId(true)] just right after when the
component is constructed, so the initial HTML have the id already set. After
that the wicket js should be able to locate the DOM id later on any ajax
response.


On Thu, Sep 16, 2010 at 12:30 PM, Eric Reagan [via Apache Wicket] <
ml-node+2542429-664652022-65...@n4.nabble.com
> wrote:

> Hello,
>  I'm having some problems getting ajax to work with a updating the data
>
> contained in the DropDownChoice default model object. My drop down choices
> are dependent upon what is entered in a text box. I can get/update the text
>
> box just fine but when I go and shove the list of choices into the
> DropDownChoice default model object on ajax update the choices are are not
> displayed. If in eclipse I do an inspect of my default model object after I
>
> set it, the proper values are returned.
>
> target.addComponent(getForm().get("contractChoices").setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true));
>
>
> where right now S is a list that I just created with a value of
> abc,
> 123.
>
> Thank you,
>
> --
> Eric Reagan
>
>
> --
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542429.html
> To unsubscribe from Apache Wicket, click 
> here.
>
>
>


-- 
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-and-updating-DropDownChoice-model-object-tp2542429p2542647.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: What happened to the Constructor with propertyType in PropertyModel?

2010-09-16 Thread Igor Vaynberg
conversion is done by components not by models. you can override the
converter on your component.

-igor

On Thu, Sep 16, 2010 at 9:38 AM, Baschir Jaghoori
 wrote:
> Hi,
>
> I want to output the width and height fields of a java.awt.Dimension
> object (which are integers) and tried to use the PropertyModel, but
> because PropertyModel calls getWidth() / getHeight() (which return
> doubles), the result is displayed as 100.0 instead of 100
>
> It seems, that there was a constructor in PropertyModel for this case,
> but it seems to have disappeared - wonder why? And is there any other
> "nice" way to convert the double to int - other than to implement my own
> model?
>
> PropertyModel(java.lang.Object modelObject, java.lang.String expression,
> java.lang.Class propertyType)
>
> Cheers,
> Baschir
>
> -
> 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-auth annotations to hide a link problem

2010-09-16 Thread James Carman
try overriding isEnabled() or isVisible() and look for the role.

On Thu, Sep 16, 2010 at 10:57 AM, Mike Dee  wrote:
>
> I am trying to hide a link based on a user's role.  Using the example in
> Wicket in Action (book), it suggests annotations can be used to do this.
> Here is what I'm doing:
>
> public class HomePage extends WebPage
> {
>        public HomePage()
>        {
>                add( new ExampleLink( "exampleLink", ExamplePage.class ) );
>        }
>
>
>       �...@authorizeinstantiation("ADMIN")
>        private class ExampleLink extends BookmarkablePageLink
>        {
>                public ExampleLink( String id, Class pageClass )
>                {
>                        super( id, pageClass );
>                }
>        }
> }
>
> That doesn't seem to work, however.  Now the HomePage doesn't load at all -
> almost as if the annotation were on HomePage.
>
> Any suggestions?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-annotations-to-hide-a-link-problem-tp2542360p2542360.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



What happened to the Constructor with propertyType in PropertyModel?

2010-09-16 Thread Baschir Jaghoori
Hi,

I want to output the width and height fields of a java.awt.Dimension
object (which are integers) and tried to use the PropertyModel, but
because PropertyModel calls getWidth() / getHeight() (which return
doubles), the result is displayed as 100.0 instead of 100

It seems, that there was a constructor in PropertyModel for this case,
but it seems to have disappeared - wonder why? And is there any other
"nice" way to convert the double to int - other than to implement my own
model?

PropertyModel(java.lang.Object modelObject, java.lang.String expression,
java.lang.Class propertyType)

Cheers,
Baschir

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



Re: Logging sessionId for every log event

2010-09-16 Thread Igor Vaynberg
wrap a filter around wicket filter

-igor

On Thu, Sep 16, 2010 at 9:07 AM, Jeffrey Schneller
 wrote:
> I am trying to log the session id with every log event so that I can
> trace a visitors steps in the log file.  I am using log4j and was hoping
> I could use either the NDC or MDC.  I am not able to figure out where to
> push the session id into the context and pop it out of the context when
> using NDC.  If I wanted to use MDC, where could I put the session id in
> to the map for each request?  Is there a particular wicket method to
> override and put this in?  Should this be done as a servlet filter
> instead [before or after OSIV filter]?
>
>
>
> Thanks for any help.
>
>
>
>
>
>

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



Logging sessionId for every log event

2010-09-16 Thread Jeffrey Schneller
I am trying to log the session id with every log event so that I can
trace a visitors steps in the log file.  I am using log4j and was hoping
I could use either the NDC or MDC.  I am not able to figure out where to
push the session id into the context and pop it out of the context when
using NDC.  If I wanted to use MDC, where could I put the session id in
to the map for each request?  Is there a particular wicket method to
override and put this in?  Should this be done as a servlet filter
instead [before or after OSIV filter]?

 

Thanks for any help.

 

 



Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger

I'll try, thanks!!!

Natalie
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542493.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: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 5:32 PM, N. Metzger  wrote:

>
> For a quick fix (hopefully), I can remove the modal window from my
> application.
>
> Generally speaking, though: how do I define my modal window then if I
> should
> not reference the underlying page directly?
>
Try to re-work it to use Panel instead of Page for its content.

>
> Natalie
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542433.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: Asynchronous File Uploads

2010-09-16 Thread Igor Vaynberg
use a servlet

-igor

On Thu, Sep 16, 2010 at 2:42 AM, Nivedan Nadaraj  wrote:
> Hi All
>
> Has anyone had a requirement to upload huge files in an asynchronous mode? I
> want to be able to upload some files which are on avg 4G plus.
> I read some posts that wicket does fine with 50 plus megs. Since these are
> huge files, we dont want the user to be blocked. Instead was thinking
> kicking off a Job that takes these files and then notifies the user.
>
> If wicket application can be configured to upload these files makes it easy
> with just the file upload without a-synching, But if there is an elegant
> solution can someone share their experiences?
>
> Many thanks
> Niv
>

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



Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread N. Metzger

For a quick fix (hopefully), I can remove the modal window from my
application.

Generally speaking, though: how do I define my modal window then if I should
not reference the underlying page directly?

Natalie



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ERROR-Session-java-1406-Exception-when-detaching-serializing-page-tp2542370p2542433.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



Ajax and updating DropDownChoice model object

2010-09-16 Thread Eric Reagan
Hello,
 I'm having some problems getting ajax to work with a updating the data
contained in the DropDownChoice default model object. My drop down choices
are dependent upon what is entered in a text box. I can get/update the text
box just fine but when I go and shove the list of choices into the
DropDownChoice default model object on ajax update the choices are are not
displayed. If in eclipse I do an inspect of my default model object after I
set it, the proper values are returned.

target.addComponent(getForm().get("contractChoices").setDefaultModelObject(s).setEnabled(true).setOutputMarkupId(true));

where right now S is a list that I just created with a value of abc,
123.

Thank you,

-- 
Eric Reagan


Re: ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread Martin Grigorov
I have seen something like this when there are direct references between two
or more pages.
Very probably ModalWindow backed by Page is involved.

On Thu, Sep 16, 2010 at 5:01 PM, nmetzger  wrote:

>
> Hi all,
>
> this is rather urgent. The following error is flooding my application.
> Below
> is just the essential part of it, it's repeating itself and seems to go
> deep
> into recursion. I don't see it calling any of my pages.
>
> Any ideas?
>
> Natalie
>
> (wicket 1.4.10)
>
> 2010-09-16 10:36:32,829 ERROR (Session.java:1406) - Exception when
> detaching/serializing page
> java.lang.StackOverflowError
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at
> java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:977)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1030)
>at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
>at
>
> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
>at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
>at
> org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
>at
>
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:285)
>at org.apache.wicket.Page.writeReplace(Page.java:1382)
>at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at
> java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:977)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1030)
>at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
>at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
>at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
>at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
>at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
>at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
>at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
>at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
>at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
>at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
>at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
>at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
>at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
>at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
>at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
>at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
>at
>
> org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
>at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
> at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
>at
>
> org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
>at
>
> org.apache.wicket.protocol.http.pagestore.DiskPageStore.prepareForSerialization(DiskPageStore.java:1190)
>at
>
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.writeObject(SecondLevelCacheSessionStore.java:38
> 6)
>at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at
> java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
>at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
>at
>
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
>at
> j

Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 4:05 PM, Peter Karich  wrote:

> Hi Martin!
>
> >> The answer here is to use HybridUCS. It preserves the 'nice' url.
> >>
> > Or use Wicket 1.5 (M2.1). There the URL handling is much easier.
> >
>
> did you mean this one:
>
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.5-M2/
>
Yes, see
Artifacts:
http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/dist
Maven repo:
http://people.apache.org/~ivaynberg/wicket-1.5-M2.1/m2-repo

>
> are there any major problems with that version?
>
Probably, it is not final yet. But I don't know of anything major.

>
> > There the URL handling is much easier.
>
> What in detail is better with URL handling? It works better 'out of the
> box'?
>
> The UrlCodingStrategies are replaced with IReuqestHandlers which are much
more easier to extend, read, write, ...
For your case see MountedMapper.

> > I'm not sure where is the problem here. I'll need to try it myself ...
> > Please create a ticket in Jira with a quickstart. Maybe it is a bug.
> >
>
> ok, I can reproduce it with 1.4.9. see:
> https://issues.apache.org/jira/browse/WICKET-3052
>
> Please let me know if you can reproduce it too or if I did something
> other wrong.
>
Ok. Some of us will take a look.
Thanks!

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


Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Richard Frovarp

On 09/15/2010 11:52 PM, Arjun Dhar wrote:


Summary::
This conversation is about Java in the CMS space, comparison to PHP and is
there a future to reduce turn around time with Java. Are we as a community
too elitist to be stuck on masturbating on frameworks rather than solutions
that affect direct outcome? ..and then technically I've centered this around
Brix&  wicket.


Hi,
  I've been exploring lot of Java CMS solutions and also frameworks. BRIX,
Alfresco I feel are good for different reasons.

 From a Web framework point of view, I feel Wicket&  I guess Sling  cut the
mark pretty well (not much experience yet with Sling).

However, with Java Community the solutions (beyond framework) finish is not
comparable to the likes of PHP giants like Drupal, Wordpress etc. I operate
in the small business market a lot , and this really hurts. I really feel
the Java.

With earlier version of Java it would get tedious and too boilerplate to
produce anything quickly fast. But with the advent of scripting languages
galore, be it Server JavaScript, Groovy, Scala ... and so many wonderful
frameworks we have not taken it to the next level to producing quality CMS.

Brix apparently will not be evolved further. which is fine; for its intent
it does a good job but what about taking this to the next level. Also,
problem with most CMS is they are content centric (ok hence they are called
CMS) may seem dumb at a glance.
..but I dont want my business model to go into a JCR repository. Perhaps the
intent of the site is to reflect the actual product&  business model in a
neat way with WebDav. Lets call it PMS (hah) for lack of a better
abbreviation. Also the ability to customize the admin module to give a
Product centric view instead of Content centric view. This allows for
greater analytic s and also then using java as an integration platform to
integrate the business model with infinite things at the back end with
pluggable extensions.

I liked BRIX for many reasons. Am wondering if people are thinking about
what I mentioned above ..also if we can take Brix further (not core) but by
adding extensions and delivering a quality complete solution that could
rival something like Drupal in the near future ...or maybe eventually!


..sorry i don't have my own Blog. You see WordPress is in PHP *wink hehe.
Get the point?! :)




Apache Lenya is working on designing our next version. We're leaning 
towards Sling and possibly using Wicket as well. If you're interested, 
we're always looking for people to help out.


Apache Roller is a Java based blogging system, if you're looking for 
something.


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



ERROR (Session.java:1406) - Exception when detaching/serializing page

2010-09-16 Thread nmetzger

Hi all,

this is rather urgent. The following error is flooding my application. Below
is just the essential part of it, it's repeating itself and seems to go deep
into recursion. I don't see it calling any of my pages.

Any ideas?

Natalie

(wicket 1.4.10)

2010-09-16 10:36:32,829 ERROR (Session.java:1406) - Exception when
detaching/serializing page
java.lang.StackOverflowError
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:977)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1030)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
at
org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore$PageSerializer.getPageReplacementObject(AbstractPageStore.java:285)
at org.apache.wicket.Page.writeReplace(Page.java:1382)
at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:977)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1030)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at
org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:121)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1124)
at
org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:203)
at
org.apache.wicket.protocol.http.pagestore.DiskPageStore.prepareForSerialization(DiskPageStore.java:1190)
at
org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.writeObject(SecondLevelCacheSessionStore.java:38
6)
at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at java.util.LinkedList.writeObject(LinkedList.java:755)
at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at

Wicket-auth annotations to hide a link problem

2010-09-16 Thread Mike Dee

I am trying to hide a link based on a user's role.  Using the example in
Wicket in Action (book), it suggests annotations can be used to do this. 
Here is what I'm doing:

public class HomePage extends WebPage
{
public HomePage()
{
add( new ExampleLink( "exampleLink", ExamplePage.class ) );
}


@AuthorizeInstantiation("ADMIN")
private class ExampleLink extends BookmarkablePageLink
{
public ExampleLink( String id, Class pageClass )
{
super( id, pageClass );
}
}
}

That doesn't seem to work, however.  Now the HomePage doesn't load at all -
almost as if the annotation were on HomePage.

Any suggestions?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-auth-annotations-to-hide-a-link-problem-tp2542360p2542360.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: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi Martin!

>> The answer here is to use HybridUCS. It preserves the 'nice' url.
>> 
> Or use Wicket 1.5 (M2.1). There the URL handling is much easier.
>   

did you mean this one:

http://svn.apache.org/repos/asf/wicket/branches/wicket-1.5-M2/

are there any major problems with that version?

> There the URL handling is much easier.

What in detail is better with URL handling? It works better 'out of the
box'?

> I'm not sure where is the problem here. I'll need to try it myself ...
> Please create a ticket in Jira with a quickstart. Maybe it is a bug.
>   

ok, I can reproduce it with 1.4.9. see:
https://issues.apache.org/jira/browse/WICKET-3052

Please let me know if you can reproduce it too or if I did something
other wrong.

Regards,
Peter.


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



Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread Brian Topping
Have you thought about getting more involved with Brix?  

One of the great things about it is it isn't too centered on any one area.  It 
would be easy for you to help with a suite of plugins for doing the kind of 
stuff that you're talking about.  There are people on the Brix list that are 
talking about shopping carts right now, for instance.  Brix was originally 
designed for a company doing this kind of thing.  It's all possible, but 
there's a lot of fragmented development and not a lot of investment going back 
in.

Regarding the core, a lot of the features in core are going to be driven by 
needs in the plugins.  Hence, I would challenge you to create needs in the core 
by demonstrating those needs in the plugins.

Sometimes it's challenging on a small project to get the feedback that helps 
make development fun.  On the other hand, if the development isn't there, the 
community never grows to provide the feedback.

If you are worried about people having access to your assets, I'm sure you 
could find others that are working on things with the same feelings and you 
could start off privately.

Let's build some stuff!

Brian

On Sep 16, 2010, at 12:52 AM, Arjun Dhar wrote:

> 
> Summary:: 
> This conversation is about Java in the CMS space, comparison to PHP and is
> there a future to reduce turn around time with Java. Are we as a community
> too elitist to be stuck on masturbating on frameworks rather than solutions
> that affect direct outcome? ..and then technically I've centered this around
> Brix & wicket.
> 
> 
> Hi,
> I've been exploring lot of Java CMS solutions and also frameworks. BRIX,
> Alfresco I feel are good for different reasons.
> 
> From a Web framework point of view, I feel Wicket & I guess Sling  cut the
> mark pretty well (not much experience yet with Sling).
> 
> However, with Java Community the solutions (beyond framework) finish is not
> comparable to the likes of PHP giants like Drupal, Wordpress etc. I operate
> in the small business market a lot , and this really hurts. I really feel
> the Java.
> 
> With earlier version of Java it would get tedious and too boilerplate to
> produce anything quickly fast. But with the advent of scripting languages
> galore, be it Server JavaScript, Groovy, Scala ... and so many wonderful
> frameworks we have not taken it to the next level to producing quality CMS.
> 
> Brix apparently will not be evolved further. which is fine; for its intent
> it does a good job but what about taking this to the next level. Also,
> problem with most CMS is they are content centric (ok hence they are called
> CMS) may seem dumb at a glance. 
> ..but I dont want my business model to go into a JCR repository. Perhaps the
> intent of the site is to reflect the actual product & business model in a
> neat way with WebDav. Lets call it PMS (hah) for lack of a better
> abbreviation. Also the ability to customize the admin module to give a
> Product centric view instead of Content centric view. This allows for
> greater analytic s and also then using java as an integration platform to
> integrate the business model with infinite things at the back end with
> pluggable extensions.
> 
> I liked BRIX for many reasons. Am wondering if people are thinking about
> what I mentioned above ..also if we can take Brix further (not core) but by
> adding extensions and delivering a quality complete solution that could
> rival something like Drupal in the near future ...or maybe eventually!
> 
> 
> ..sorry i don't have my own Blog. You see WordPress is in PHP *wink hehe.
> Get the point?! :)
> 
> 
> -- 
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2541542.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 pages are invalid XHTML

2010-09-16 Thread Emond Papegaaij
Hi Ichiro,

If you want to enforce valid XHTML, take a look at the WicketStuff HTML 
Validator: http://github.com/dashorst/wicket-stuff-markup-validator

It automatically validates all pages served by the application and shows an 
error report for invalid markup.

Best regards,
Emond Papegaaij

On Thursday 16 September 2010 03:50:35 Ichiro Furusato wrote:
> Hi Jeremy,
> 
> Thanks for the quick reply. Is the reason I'm seeing the wicket:id
> in my output then that I'm working in development mode? If so,
> I'd say that was a nice design decision (not surprising from what
> else I've seen in Wicket).
> 
> Cheers,
> 
> Ichiro
> 
> On 9/16/10, Jeremy Thomerson  wrote:
> > On Wed, Sep 15, 2010 at 8:11 PM, Ichiro Furusato
> > 
> > wrote:
> >> Hi,
> >> 
> >> I'm a new Wicket user and am unclear about a couple of things regarding
> >> what type of markup Wicket delivers to clients. Because some of the
> >> clients
> >> I work with have government guidelines restricting what document types
> >> are permitted (typically XHTML 1.0 Strict or Transitional), I'm
> >> concerned I might not be able to use Wicket for those projects.
> >> 
> >> What I'll call "the Wicket XHTML DTD" is referenced as the XML namespace
> >> URI for wicket documents. As (from what I've seen) there is no stated
> >> DOCTYPE declaration, Wicket pages are expressed as well-formed XML only,
> >> even though they could likely validate according to the Wicket XHTML
> >> DTD. Unfortunately, for my applications I have a requirement to declare
> >> and be valid according to a W3C XHTML 1.0 DTD.
> >> 
> >> It would seem from the unmodified comments found at the top of the
> >> Wicket
> >> 
> >> XHTML DTD that the schema used at first glance is XHTML 1.0 Strict, e.g.:
> >>   This DTD module is identified by the PUBLIC and SYSTEM identifiers:
> >> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> >> SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
> >> 
> >> but on further investigation there have been modifications to the
> >> schema: the addition of some "wicket:" prefixed attributes to
> >> %coreattrs;.
> >> 
> >> It's not industry practice to do that kind of thing, i.e., the header
> >> comments should identify the schema being expressed. If a DTD is
> >> modified the comments should be modified to relabel the schema. Any
> >> reference to the FPI (formal public identifier) for XHTML 1.0 would
> >> likewise be inappropriate since the Wicket schema has modified it. Even
> >> if the changes occur in a new XML namespace the schema is no longer
> >> XHTML 1.0 Strict and will not validate according to that DTD.
> >> 
> >> There are a few questions/comments that come from the above:
> >>   1. Are the wicket attributes required for Wicket-based processing?
> >>   
> >>  Would removing them break existing functionality?
> >>   
> >>   2. If the answer to #1 is no, could the web pages be run through a
> >>   
> >>  simple XSLT transform to remove the non-XHTML attributes?
> >>   
> >>   3. If the answer to #2 is yes, I'm willing to supply the XSLT
> >>   
> >>  stylesheet, but I'm not on the developer team and couldn't based
> >>  on my current workload volunteer, so I wouldn't be able to supply
> >>  the code supporting that feature.
> >>   
> >>   4. I am familiar with the XHTML modular DTDs and would be willing to
> >>   
> >>  supply an XHTML 1.0 DTD based on a new Wicket module, then
> >>  "flattened" (converted into one file) based on some tools I've
> >> 
> >> written.
> >> 
> >>  This would be a replacement for the existing Wicket XHTML DTD and
> >>  be appropriately named, e.g.,
> >>  
> >>-//Apache.org//DTD XHTML 1.0 Strict for Wicket 1.4//EN
> >>  
> >>  This DTD could of course be used to validate Wicket-produced web
> >>  pages, but wouldn't be needed if the wicket: attributes were
> >>  stripped from generated web pages. Ideally, Wicket would produce
> >>  valid XHTML 1.0 Strict. I don't know if this is possible.
> >> 
> >> Some clarification on this would be most appreciated,
> >> 
> >> Thanks,
> >> 
> >> Ichiro
> >> 
> >> PS. on the whole I'm liking what I see with Wicket, esp. compared to
> >> Spring's increasingly complex, arcane and fragile approach to what
> >> should not be rocket science.
> >> 
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> > 
> > Wicket only generates whatever HTML you want it to generate.  The only
> > wicket tag (or actually, attribute) you are required to use is
> > "wicket:id", which will automatically be removed from your HTML in
> > deployment mode.  So, use strict XHTML in your *.html files and strict
> > XHTML is what will be rendered.
> > 
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> 
> -
>

Re: retrieving HTML-templates via HTTP

2010-09-16 Thread Martin Grigorov
Also see the examples at:
http://wicketstuff.org/wicket14/customresourceloading/

On Thu, Sep 16, 2010 at 2:42 PM, Ernesto Reinaldo Barreiro <
reier...@gmail.com> wrote:

> Maybe [1] will be of some help?
>
> Ernesto
>
> 1-
> https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html
>
>
> On Thu, Sep 16, 2010 at 2:34 PM, hermanhorsten 
> wrote:
> >
> > HTML templates are by default stored side-by-side with the Java code. But
> is
> > it possible to retrieve the HTML-templates from another server via HTTP?
> In
> > the project I'm currently working on HTML-templates are published to a
> > dedicated template-server and the wicket-stuff is running on another
> server.
> > The templates are dynamically loaded so that changes to the template are
> > immediately visible. Is this feasible with Wicket and does it take a lot
> > work? How can I accomplish this?
> >
> > Herman
> >
> > -
> > www.hermanhorsten.be
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/retrieving-HTML-templates-via-HTTP-tp2542090p2542090.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: retrieving HTML-templates via HTTP

2010-09-16 Thread Ernesto Reinaldo Barreiro
Maybe [1] will be of some help?

Ernesto

1-https://cwiki.apache.org/WICKET/control-where-html-files-are-loaded-from.html


On Thu, Sep 16, 2010 at 2:34 PM, hermanhorsten  wrote:
>
> HTML templates are by default stored side-by-side with the Java code. But is
> it possible to retrieve the HTML-templates from another server via HTTP? In
> the project I'm currently working on HTML-templates are published to a
> dedicated template-server and the wicket-stuff is running on another server.
> The templates are dynamically loaded so that changes to the template are
> immediately visible. Is this feasible with Wicket and does it take a lot
> work? How can I accomplish this?
>
> Herman
>
> -
> www.hermanhorsten.be
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/retrieving-HTML-templates-via-HTTP-tp2542090p2542090.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



retrieving HTML-templates via HTTP

2010-09-16 Thread hermanhorsten

HTML templates are by default stored side-by-side with the Java code. But is
it possible to retrieve the HTML-templates from another server via HTTP? In
the project I'm currently working on HTML-templates are published to a
dedicated template-server and the wicket-stuff is running on another server.
The templates are dynamically loaded so that changes to the template are
immediately visible. Is this feasible with Wicket and does it take a lot
work? How can I accomplish this?

Herman

-
www.hermanhorsten.be
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/retrieving-HTML-templates-via-HTTP-tp2542090p2542090.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



Mapping DropDownChoice values?

2010-09-16 Thread Benedikt Schlegel
I have a DataTable to show a list of domain objects (named "DocumentLink").
These objects consist of a few attributes and some nested objects (e.g.
"Application").
So im displaying data mixed up from different "levels". For example, some
expressions configured in FilteredPropertyColumns are:

"name",
"application.name",
"postbox.id", ...

For filter functionality i implemented another POJO named
"DocumentLinkFilter" which doesnt have these nested objects i mentioned
above. Its just a plain object, consisting of string attributes. Now i have
the following question:

How can i set up a ChoiceFilter, which is essentially a DropDownChoice, to
write the value of the "name" property of the selected Application object
into the appropriate field of the DocumentLinkFilter object? Ist that even
possible? Or do i have to re-model the DocumentLinkFilter so it has the same
object hierarchy?

I just dont know how to go on right now.. any help is appreciated.

So long,
Benedikt*
*


Re: Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Martin Grigorov
On Thu, Sep 16, 2010 at 11:30 AM, Peter Karich  wrote:

> Hi,
>
> two questions:
>
> 1. If I do the following all url parameters will be replaced with
> ?wicket:interface=:6:1:::
>
> e.g. in the main wicket application class I do:
> mount(new MixedParamUrlCodingStrategy("search", HomePage.class, new
> String[]{"q"}));
>
> in HomePage.java i do without ajax:
> add(new Link("nextPage") {
>  public void onClick() {
> // update some components
>  }});
>
> How can I avoid that search?q=test which correctly appears after a
> search [1], will be overwritten with search?wicket:interface=:6:1::: ?
> I would like that the user can copy and paste the url to a friend and he
> can use the search (of course a new session is created + some parameters
> lost but the q parameter is ok). So why not:
> search?wicket:interface=:6:1:::&q=test
>
> The answer here is to use HybridUCS. It preserves the 'nice' url.
Or use Wicket 1.5 (M2.1). There the URL handling is much easier.

>
> 2. How can I use the HybridUrlCodingStrategy?
> I am doing:
> mount(new HybridUrlCodingStrategy("search", HomePage.class, true)); and
> the problem is that searches containing hashes destroy the url or the
> encoding does not work properly. So it writes the following url:
>
>  search/q/#wicket.2
>  instead of
>  search/q/%23wicket.4
>
> I searched through the code of that strategy but I think, that the
> strategy works ok (it calls encode() when adding to url).
> In the search form I am doing the appended code [1] and this works
> correctly for other strategies.
>
I'm not sure where is the problem here. I'll need to try it myself ...
Please create a ticket in Jira with a quickstart. Maybe it is a bug.

>
> Where could be my mistake? Wicket version: 1.4.9
>
> Regards,
> Peter.
>
>
>
> [1]
> Form form = new Form("searchform") {
>   public void onSubmit() {
>  PageParameters params = new PageParameters();
>  if (query != null && !query.isEmpty())
>   params.add("q", query);
>
>  setResponsePage(HomePage.class, params);
>   }};
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Styling pagination

2010-09-16 Thread Benedikt Schlegel
The easiest and also the most obvious way to do this is to extend the
PagingNavigator and provide your own markup.

But if you dont want to remove all components added by PagingNavigator, you
should use the same wicket:ids and component hierarchie, just change what
you need to change (replace '<' by previous or maybe a Label())

So long

2010/9/16 Josh Kamau 

> Hi team,
>
> How can i style the
> org.apache.wicket.markup.html.navigation.paging.PagingNavigator component?
>
> I would also like to replace the << < and >>> with words like previous and
> next.
>
> I tried to use PagingNavigation instead but i dont understand how its
> markup
> is supposed to be.
>
> Thanks always for your support.
>
> regards.
>
> Josh
>


Styling pagination

2010-09-16 Thread Josh Kamau
Hi team,

How can i style the
org.apache.wicket.markup.html.navigation.paging.PagingNavigator component?

I would also like to replace the << < and >>> with words like previous and
next.

I tried to use PagingNavigation instead but i dont understand how its markup
is supposed to be.

Thanks always for your support.

regards.

Josh


Re: Java in CMS arena,..wicket to lead the way?!

2010-09-16 Thread james yong

How about Hippo CMS?

-james


Arjun Dhar wrote:
> 
> Summary:: 
> This conversation is about Java in the CMS space, comparison to PHP and is
> there a future to reduce turn around time with Java. Are we as a community
> too elitist to be stuck on masturbating on frameworks rather than
> solutions that affect direct outcome? ..and then technically I've centered
> this around Brix & wicket.
> 
> 
> Hi,
>  I've been exploring lot of Java CMS solutions and also frameworks. BRIX,
> Alfresco I feel are good for different reasons.
> 
> From a Web framework point of view, I feel Wicket & I guess Sling  cut the
> mark pretty well (not much experience yet with Sling).
> 
> However, with Java Community the solutions (beyond framework) finish is
> not comparable to the likes of PHP giants like Drupal, Wordpress etc. I
> operate in the small business market a lot , and this really hurts. I
> really feel that Java which has evolved into a wonderful platform with
> many frameworks ..n yet thats where it stops.
> 
> With earlier version of Java it would get tedious and too boilerplate to
> produce anything quickly fast. But with the advent of scripting languages
> galore, be it Server JavaScript, Groovy, Scala ... and so many wonderful
> frameworks we have not taken it to the next level to producing quality
> CMS.
> 
> Brix apparently will not be evolved further. which is fine; for its intent
> it does a good job but what about taking this to the next level. Also,
> problem with most CMS is they are content centric (ok hence they are
> called CMS) may seem dumb at a glance. 
> ..but I dont want my business model to go into a JCR repository. Perhaps
> the intent of the site is to reflect the actual product & business model
> in a neat way with WebDav. Lets call it PMS (hah) for lack of a better
> abbreviation. Also the ability to customize the admin module to give a
> Product centric view instead of Content centric view. This allows for
> greater analytic s and also then using java as an integration platform to
> integrate the business model with infinite things at the back end with
> pluggable extensions.
> 
> I liked BRIX for many reasons. Am wondering if people are thinking about
> what I mentioned above ..also if we can take Brix further (not core) but
> by adding extensions and delivering a quality complete solution that could
> rival something like Drupal in the near future ...or maybe eventually!
> 
> 
> ..sorry i don't have my own Blog. You see WordPress is in PHP *wink hehe.
> Get the point?! :)
> 
> 
> 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Java-in-CMS-arena-wicket-to-lead-the-way-tp2541542p2541877.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



Asynchronous File Uploads

2010-09-16 Thread Nivedan Nadaraj
Hi All

Has anyone had a requirement to upload huge files in an asynchronous mode? I
want to be able to upload some files which are on avg 4G plus.
I read some posts that wicket does fine with 50 plus megs. Since these are
huge files, we dont want the user to be blocked. Instead was thinking
kicking off a Job that takes these files and then notifies the user.

If wicket application can be configured to upload these files makes it easy
with just the file upload without a-synching, But if there is an elegant
solution can someone share their experiences?

Many thanks
Niv


Re: Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz

Ah, I found https://issues.apache.org/jira/browse/WICKET-2629

   -Tom

On 16.09.2010 10:52, Thomas Götz wrote:

In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10):

Session.get().bind();

With the comment that the session needs to be persisted before
redirecting to https. But this is called before checking if a redirect
is necessary or not (line 217, request could already be https). Result:
no temporary sessions.

In our scenario this causes severe trouble:
we have a Tomcat cluster consisting of 3 different nodes, every request
to a page is loadbalanced between these 3 nodes (loading of resource
files for that page, i.e. images/css/js). The Tomcats are configured to
use jsessionid for session management. As requests to resources
referenced from within css files (images) do not contain jsessionid, a
new session is created upon every single call to an image resource. With
the Session.get().bind() as mentioned above (we use https for
everything), this results in several new (not temporary) sessions for
every single page ...

My proposal would be to call Session.get().bind() in line 200, where you
are sure that a redirect is needed.

Or am I getting something wrong here?

Cheers,
-Tom



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



Url parameters: removed onClick + wrong url encoding

2010-09-16 Thread Peter Karich
Hi,

two questions:

1. If I do the following all url parameters will be replaced with
?wicket:interface=:6:1:::

e.g. in the main wicket application class I do:
mount(new MixedParamUrlCodingStrategy("search", HomePage.class, new
String[]{"q"}));

in HomePage.java i do without ajax:
add(new Link("nextPage") {
  public void onClick() {
 // update some components
  }});

How can I avoid that search?q=test which correctly appears after a
search [1], will be overwritten with search?wicket:interface=:6:1::: ?
I would like that the user can copy and paste the url to a friend and he
can use the search (of course a new session is created + some parameters
lost but the q parameter is ok). So why not:
search?wicket:interface=:6:1:::&q=test


2. How can I use the HybridUrlCodingStrategy?
I am doing:
mount(new HybridUrlCodingStrategy("search", HomePage.class, true)); and
the problem is that searches containing hashes destroy the url or the
encoding does not work properly. So it writes the following url:

  search/q/#wicket.2
  instead of
  search/q/%23wicket.4

I searched through the code of that strategy but I think, that the
strategy works ok (it calls encode() when adding to url).
In the search form I am doing the appended code [1] and this works
correctly for other strategies.

Where could be my mistake? Wicket version: 1.4.9

Regards,
Peter.



[1]
Form form = new Form("searchform") {
   public void onSubmit() {
  PageParameters params = new PageParameters();
  if (query != null && !query.isEmpty())
   params.add("q", query);

  setResponsePage(HomePage.class, params);
   }};

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



Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz

In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10):

Session.get().bind();

With the comment that the session needs to be persisted before 
redirecting to https. But this is called before checking if a redirect 
is necessary or not (line 217, request could already be https). Result: 
no temporary sessions.


In our scenario this causes severe trouble:
we have a Tomcat cluster consisting of 3 different nodes, every request 
to a page is loadbalanced between these 3 nodes (loading of resource 
files for that page, i.e. images/css/js). The Tomcats are configured to 
use jsessionid for session management. As requests to resources 
referenced from within css files (images) do not contain jsessionid, a 
new session is created upon every single call to an image resource. With 
the Session.get().bind() as mentioned above (we use https for 
everything), this results in several new (not temporary) sessions for 
every single page ...


My proposal would be to call Session.get().bind() in line 200, where you 
are sure that a redirect is needed.


Or am I getting something wrong here?

Cheers,
   -Tom





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



Re: A bug in CryptedUrlWebRequestCodingStrategy

2010-09-16 Thread Erik van Oosten

Bjorn,

Please open a Jira issue so that the Wicket core team can track this issue.

Regards,
Erik.


Op 15-09-10 11:24, Bjorn S schreef:

Wicket version: 1.4.9 (rolled back due to AJAX problems in later release)

I've detected some odd behaviour with CryptedUrlWebRequestCodingStrategy,
specifically CryptedUrlWebRequestCodingStrategy.DecodedUrlRequest;

When using a QueryStringStrategy for mounting a page and passing certain
specific strings I was getting them back with characters missing. It appears
that CryptedUrlWebRequestCodingStrategy performs double-decoding.


We have a search system which uses + as a means of denoting requirements,
this is what happened;
When entering a search string like "car +red" it was correctly encoded to
"car+%2Bred" and passed along.

When decoding I saw that this became "car +red" and then was decoded again
to "car  red" [note double space].

I fixed this by extending CryptedUrlWebRequestCodingStrategy, overloading
the decode method and implementing my own copy of DecodedUrlRequest where I
removed the following line from the constructor;
decodedParamReplacement =
WicketURLDecoder.QUERY_INSTANCE.decode(decodedParamReplacement);

This seems to have fixed our problem though I won't guarantee that it hasn't
introduced new ones.

Hope this can get a better resolution.

Regards,
Bjørn Soldal
   


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



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



Re: repaint content of modalwindow

2010-09-16 Thread Ernesto Reinaldo Barreiro
I would use a div.





---

context = new WebMarkupContainer("context");
context.setOutputMarkupId(true);
add(context);
context.add(new YourContentsPanel("contents"));

You can have a  inside a . So, why would it not work?

Regards,

Ernesto


On Thu, Sep 16, 2010 at 9:48 AM, Chris Colman
 wrote:
> Do I need to create a wicket tag in the markup corresponding to the 
> WebMarkupContainer? If so should I put it in a span or div? (or other?)
>
> Should this WebMarkupContainer work if I place it inside a ?
>
>>-Original Message-
>>From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
>>Sent: Thursday, 16 September 2010 4:43 PM
>>To: users@wicket.apache.org
>>Subject: Re: repaint content of modalwindow
>>
>>Isn't it enough to:
>>
>>1-put a the contents of your modal A in a WebMapkupContainer X (with
>>X.setOutputMarkupId(true))
>>2-update the contents of X (X.addOrReplace(new content))
>>3- and do ajaxRequestTarget.addComponent(X)
>>
>>?
>>
>>Regards,
>>
>>Ernesto
>>
>>On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
>> wrote:

I am using modalwindow its content is a fragment. On ajxaRequest I want
>>> to
repaint the content of modal window please tell me   how can I do this
>>> ?

>>>
>>> I have a similar request:
>>>
>>> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
>>> repaint the contents of Form A because they can change with the changes
>>> made in form B.
>>>
>>> Any ideas?
>>>
>>>
>>> -
>>> 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
>
>

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



How to add footer section using DataTable

2010-09-16 Thread gouthamrv

I am using DataTable to display a table. I want to add some buttons to footer
section. How do I do that? Currently it just shows empty tfoot elements in
my html. Here is the sample code of the DataTable:

DataTable table = new DataTable("datatable", columns, new
CalculationInfoProvider(), 1);
add(table);
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-add-footer-section-using-DataTable-tp2541058p2541058.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: repaint content of modalwindow

2010-09-16 Thread Chris Colman
Do I need to create a wicket tag in the markup corresponding to the 
WebMarkupContainer? If so should I put it in a span or div? (or other?)

Should this WebMarkupContainer work if I place it inside a ?

>-Original Message-
>From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com]
>Sent: Thursday, 16 September 2010 4:43 PM
>To: users@wicket.apache.org
>Subject: Re: repaint content of modalwindow
>
>Isn't it enough to:
>
>1-put a the contents of your modal A in a WebMapkupContainer X (with
>X.setOutputMarkupId(true))
>2-update the contents of X (X.addOrReplace(new content))
>3- and do ajaxRequestTarget.addComponent(X)
>
>?
>
>Regards,
>
>Ernesto
>
>On Thu, Sep 16, 2010 at 4:26 AM, Chris Colman
> wrote:
>>>
>>>I am using modalwindow its content is a fragment. On ajxaRequest I want
>> to
>>>repaint the content of modal window please tell me   how can I do this
>> ?
>>>
>>
>> I have a similar request:
>>
>> Modal Form A opens Modal Form B. When B is Ok'd and closes I want to
>> repaint the contents of Form A because they can change with the changes
>> made in form B.
>>
>> Any ideas?
>>
>>
>> -
>> 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: how Translate SingIn panel...

2010-09-16 Thread Martin Grigorov
1. Override SignInPanel => MySignInPanel.java. No modifications in the
methods here, just simple extend is needed.
2. Copy original SignInPanel.html to MySignInPanel.html and place it next to
MySignInPanel.java
3. Modify MySignInPanel.html however you want.

You can also create a ticket in Jira for this problem and describe what
exaclty cannot be translated.

On Wed, Sep 15, 2010 at 11:55 PM, Victor_Trapiello wrote:

>
> Ey thank you very much with your reply but, can you be more specific¿?, I
> do
> not know how to do that, what you mean?, do I need to download the sources
> of the wicket framework and then inside of the sigin panel modify
> something¿? mmm Im quite lost with this sort of thing I´m afraid...
>
> thank you very much
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-Translate-SingIn-panel-tp2541131p2541276.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
>
>