Re: AttibuteModifier question

2011-04-05 Thread Ernesto Reinaldo Barreiro
use AttributeAppender?

Ernesto

On Wed, Apr 6, 2011 at 8:26 AM, drf  wrote:
> Just as one can use
>
> component.add(new AttributeModifier("class", new Model("")));
>
> to modify the css class for a component, is there a way to either
> 1. get the existing class value,
> 2. or alternativly to append a class to the existing css classes set for
> that component, rather than replacing the existing ones.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.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: AttibuteModifier question

2011-04-05 Thread Robert Dahlström

If you're outside of the onComponentTag you can do:
String cssClass = component.getMarkupAttributes().getString("class");

Regards
Robert

On 04/06/2011 08:36 AM, Wilhelmsen Tor Iver wrote:

1. get the existing class value,


Only when parsing the markup in onComponentTag().

- Tor Iver

-
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: AttibuteModifier question

2011-04-05 Thread vineet semwal
for 1) you can get that in oncomponenttag
for 2) use attribute appender

On Wed, Apr 6, 2011 at 11:56 AM, drf  wrote:
> Just as one can use
>
> component.add(new AttributeModifier("class", new Model("")));
>
> to modify the css class for a component, is there a way to either
> 1. get the existing class value,
> 2. or alternativly to append a class to the existing css classes set for
> that component, rather than replacing the existing ones.
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
thank you,

regards,
Vineet Semwal

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



RE: AttibuteModifier question

2011-04-05 Thread Wilhelmsen Tor Iver
> 1. get the existing class value, 

Only when parsing the markup in onComponentTag().

- Tor Iver

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



Re: AttributeModifier question

2011-04-05 Thread drf
Looks like I've found the answer - AttributeAppendor


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AttributeModifier-question-tp3429987p3429998.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



AttibuteModifier question

2011-04-05 Thread drf
Just as one can use 

component.add(new AttributeModifier("class", new Model("")));

to modify the css class for a component, is there a way to either 
1. get the existing class value, 
2. or alternativly to append a class to the existing css classes set for
that component, rather than replacing the existing ones.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AttibuteModifier-question-tp3429987p3429987.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: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread Alexander Morozov
Pedro,

should we notify multipleChoiceModel that model is changed ?
checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel  );
multipleChoiceModel.getObject().add( X );
multipleChoiceModel.modelChanged();


Pedro Santos wrote:
> 
> add X in the CheckBoxMultipleChoice model collection. e.g.
> 
> IModel multipleChoiceModel = (...);
> checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel  );
> multipleChoiceModel.getObject().add( X );
> 
> 
> On Tue, Apr 5, 2011 at 2:57 PM, eugenebalt 
> wrote:
> 
> > I have a CheckBoxMultipleChoice with some checkboxes.
> >
> > I also have a String, X. If there is a checkbox in the list whose
> title
> > matches X, then I have to pre-select it (select it in the model).
> >
> > Any idea how to do that? Thanks
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428739.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
> >
> >
> 
> 
> -- 
> Pedro Henrique Oliveira dos Santos
> 


-
--
http://www.linkedin.com/in/amorozov
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3429710.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket For Mobile

2011-04-05 Thread msj121

shetc wrote:
> 
> This is slightly off-topic but I have found one JavaScript issue with the
> latest BlackBerry called the Torch.
> The Torch has a bug in which a POST is not handled correctly but a GET is
> okay. This is specifically for
> form submits handled via JavaScript, which is typical for Wicket.
> 
> See 
> http://supportforums.blackberry.com/t5/Web-Development/Insufficient-Network-Coverage-error-on-form-submit/td-p/941679
> Insufficient Network Coverage error on form submit 
> 

 I wonder if Blackberry is changing their operating system anyways, as they
bought a company for the tablet to move to a better operating system. Just
making a note that this may not be a long term issue. But still worth
looking into.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-For-Mobile-tp3423644p3429591.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: JavaEEComponentInjector in Wicket 1.5

2011-04-05 Thread msj121
Haza! I had switched back to 1.4 momentarily after almost giving up hope.
Didn't realize there was a package on github, my mistake. And great wiki
available on using it in maven, was a quick solution.

Thank you so much!

Matthew

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JavaEEComponentInjector-in-Wicket-1-5-tp3426937p3429587.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket For Mobile

2011-04-05 Thread shetc
This is slightly off-topic but I have found one JavaScript issue with the
latest BlackBerry called the Torch.
The Torch has a bug in which a POST is not handled correctly but a GET is
okay. This is specifically for
form submits handled via JavaScript, which is typical for Wicket.

See 
http://supportforums.blackberry.com/t5/Web-Development/Insufficient-Network-Coverage-error-on-form-submit/td-p/941679
Insufficient Network Coverage error on form submit 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-For-Mobile-tp3423644p3429100.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: [VOTE] Behavior of CheckBox With Respect to setRequired(true)

2011-04-05 Thread Igor Vaynberg
+1 for option 2

-igor


On Fri, Apr 1, 2011 at 10:34 AM, James Carman
 wrote:
> This has been discussed before
> (https://issues.apache.org/jira/browse/WICKET-1221), but I can't find
> the old vote thread to see what folks think.  The problem is that a
> checkbox is a weird bird when it comes to HTTP.  If it's unchecked, it
> doesn't send a value which makes Wicket think you haven't provided a
> value for that input field.  Right now, if you call setRequired(true)
> on a CheckBox, it's going to require the user to actually check the
> box.  What do folks think the desired behavior should be?
>
> 1.  The current approach is correct, requiring a checkbox means
> requiring that it be checked.
>
> 2.  A checkbox shouldn't be able to be required.  You can't *not*
> provide a value (it's binary) for a checkbox, so therefore it always
> should satisfy the required requirement.
>
> -
> 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: Ajax onTimer() method not called when running from embedded Jetty

2011-04-05 Thread Martin Grigorov
you should set
init-param org.apache.wicket.protocol.http.WicketFilter.FILTER_MAPPING_PARAM
with value == the one you would put in web.xml -> url-pattern

On Tue, Apr 5, 2011 at 6:30 PM, Marek Šabo  wrote:

> Hi all,
>
> I would like to know whether any of you ran into similar issue: I need
> timer behaviour to repaint panel that displays some data/stats provided by a
> network engine. When I run my app in tomcat or via mvn jetty:run as common
> webapp it gets called.
>
> But in my setup it's feasible to start embedded jetty, add wicket servlet
> programatically (filter doesn't work, haven't investigated yet why) and
> provide wicket with network engine's guice injector. This way I can see
> pages, navigate and list active network session stats. But the javascript |
> onTimer() method  won't be called (chrome, opera, no errors in js console).
>
> Any suggestions?
>
> Regards,
>
> Marek
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread eugenebalt
Ok. thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428823.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket 1.5 RC3

2011-04-05 Thread Igor Vaynberg
there is Application.setExceptionMapperProvider()

also IRequestCycleListener impls can participate in exception handling.

-igor


On Tue, Apr 5, 2011 at 11:14 AM, Corbin, James  wrote:
> I am looking into converting my existing 1.4 project into 1.5RC3 and it's not 
> clear where the code that was previously handled in my overridden 
> WebRequestCycle.onRuntimeException(...) needs to go.
>
> The migration page talks about overriding Application.newExceptionMapper(), 
> but I don't see that method in the class hierarchy.
>
> Any help would be greatly appreciated.
>
> Thanks,
> J.D.
>

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



Wicket 1.5 RC3

2011-04-05 Thread Corbin, James
I am looking into converting my existing 1.4 project into 1.5RC3 and it's not 
clear where the code that was previously handled in my overridden 
WebRequestCycle.onRuntimeException(...) needs to go.

The migration page talks about overriding Application.newExceptionMapper(), but 
I don't see that method in the class hierarchy.

Any help would be greatly appreciated.

Thanks,
J.D.


Re: Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread Pedro Santos
add X in the CheckBoxMultipleChoice model collection. e.g.

IModel multipleChoiceModel = (...);
checkBoxMultipleChoiceComponent.setDefaultModel( multipleChoiceModel  );
multipleChoiceModel.getObject().add( X );


On Tue, Apr 5, 2011 at 2:57 PM, eugenebalt  wrote:

> I have a CheckBoxMultipleChoice with some checkboxes.
>
> I also have a String, X. If there is a checkbox in the list whose title
> matches X, then I have to pre-select it (select it in the model).
>
> Any idea how to do that? Thanks
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428739.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
>
>


-- 
Pedro Henrique Oliveira dos Santos


Pre-Select CheckBox in CheckBoxMultipleChoice?

2011-04-05 Thread eugenebalt
I have a CheckBoxMultipleChoice with some checkboxes.

I also have a String, X. If there is a checkbox in the list whose title
matches X, then I have to pre-select it (select it in the model).

Any idea how to do that? Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pre-Select-CheckBox-in-CheckBoxMultipleChoice-tp3428739p3428739.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: load list view when scroll

2011-04-05 Thread Michael O'Cleirigh

Hi Flori,

Have you considered using a DataTable with its automatic pagination?  I 
think using an ISortableDataProvider would be easier than an 
IModel> in terms of controlling the segmentation of the data.


You need to let the loadable detachability of wicket work by reducing 
the amount of data per page and also injecting page refeshes (either 
standard or ajax) to load the next set of data.


I think you need to look at your problem and understand that the page 
size is wickets way of constraining the data into processably chunks but 
your ever growing listview is essentially the same problem.  You need to 
find a way to segment that search into processable parts so as to not 
keep all the data in memory at the same time.


Another thing to look at is if you are detaching your models at the end 
of the request.


Using the datatable-autocomplete wicketstuff project we have an index of 
100,000 elements in memory and use a datatable to serve subsets to users 
without running out of memory (ok we do set -Xmx1024).


Regards,

Mike

ListView:
The current design is the following:
- a ListView is created with nr of items = nrOfdocuments/50; the ListView is
added to a scroller
- for each item of this ListView a new panel Batch is created (which
represents a batch of documents - max 50 documents);
- this Batch class creates another ListView with maximum 50 items (each item
representing a panel with a document's details - items are loaded only when
the scroll reaches them)
For ex:
- for a total number of 1000 documents: - 20 objects of type Batch will be
created =>  20 ListView objects will be created
The problem is that trying to load large amounts of documents (>  1) will
end with java out of memory exception.
I want to improve this design, by keeping only one Batch loaded in memory
once (so only max 50 documents) and to clear all the other ListView objects
previously created which are not used anymore.
Do you have any ideas that can help me?

Thank you!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-list-view-when-scroll-tp3428291p3428291.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 onTimer() method not called when running from embedded Jetty

2011-04-05 Thread Marek Šabo

Hi all,

I would like to know whether any of you ran into similar issue: I need 
timer behaviour to repaint panel that displays some data/stats provided 
by a network engine. When I run my app in tomcat or via mvn jetty:run as 
common webapp it gets called.


But in my setup it's feasible to start embedded jetty, add wicket 
servlet programatically (filter doesn't work, haven't investigated yet 
why) and provide wicket with network engine's guice injector. This way I 
can see pages, navigate and list active network session stats. But the 
javascript | onTimer() method  won't be called (chrome, opera, no errors 
in js console).


Any suggestions?

Regards,

Marek

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



Re: fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-05 Thread Hans Lesmeister 2
You can take a look at DataTable.onPageChanged()

-
-- 
Regards, 
Hans 

http://cantaa.de 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3428429.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



load list view when scroll

2011-04-05 Thread Flori
I have a problem with an aplication that displays a list of documents using
ListView:
The current design is the following:
- a ListView is created with nr of items = nrOfdocuments/50; the ListView is
added to a scroller
- for each item of this ListView a new panel Batch is created (which
represents a batch of documents - max 50 documents); 
- this Batch class creates another ListView with maximum 50 items (each item
representing a panel with a document's details - items are loaded only when
the scroll reaches them)
For ex: 
- for a total number of 1000 documents: - 20 objects of type Batch will be
created => 20 ListView objects will be created
The problem is that trying to load large amounts of documents (> 1) will
end with java out of memory exception. 
I want to improve this design, by keeping only one Batch loaded in memory
once (so only max 50 documents) and to clear all the other ListView objects
previously created which are not used anymore.
Do you have any ideas that can help me?

Thank you!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-list-view-when-scroll-tp3428291p3428291.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: fter 1 minute the Pagemap null is still locked by: Thread[[ACTIVE]

2011-04-05 Thread fachhoch
In other words

I have a panel called OrderPanel  this has a 
WebMarkupContainerajaxSpinner,
AjaxFallbackDefaultDataTable  orderConfirmation,

AjaxSelfUpdatingTimerBehavior  updateBehavior,

In the constructor of the panel
I instantiate all the above components and call set visible false on 
orderConfirmation,
here is the code

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

  add(ajaxSpinner = new WebMarkupContainer("ajaxSpinner"));
  add(orderConfirmation= new
AjaxFallbackDefaultDataTable("orderConfirmation",.));
  orderConfirmation.setVisible(false);

  add(updateBehavior = new AjaxSelfUpdatingTimerBehavior(Duration
.seconds(5));
  // updates my model   
  new OrderProcessThread(getSession()).start();
 }


I override the method  onBeforeRender()  here I check the status of thread
which I started in the  constructor .
becasue of  AjaxSelfUpdatingTimerBehavior with a duration of 5 seconds the
onBeforeRender is called  every 5 seconds.

here is the code for onBeforeRender

 @Override
 protected void onBeforeRender() {
super.onBeforeRender();

  if(((MySession)getSession()).isOrderProcessComplete(true)){
   // This means our worker thread has finished and updated the
session.
   // Now, we can update our view states to show the order
confirmation.
   ajaxSpinner.setVisible(false);
   orderConfirmation.setVisible(true);

   // update behavior
   updateBehavior.stop();
  }
 }




till here I am fine, I have no problems implementing   time consuming
selects .  

In case of   AjaxFallbackDefaultDataTable  It has sortable Headers  and
pagination links, when user 
clicks on any header or pagination link  the code in constructor is not
called so my thread is not started , so this time the method from
dataprovider is  called which is

 

 public Iterator iterator(int first, int count)

my actual implementation of this method   is it just returns the model which
is updated by  OrderProcessThread.

is there any method which I can override forAjaxFallbackDefaultDataTable   
when   user clicks on sortable header or paginations links so that I can
restart the thread and the timer  ?
 

 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/fter-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3423610p3428191.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket For Mobile

2011-04-05 Thread Bertrand Guay-Paquet
Be sure to check for usage of modal windows on Android. I tried using 
them on mine and for some reason it was impossible to close the window 
with the X in the upper right corner.


On 05/04/2011 6:27 AM, nino martinez wael wrote:

also works fine on android 2.2 using webkit..

2011/4/4 Pedro Santos:

I don't remember of Wicket JavaScript mobile compatibility thread. I tested
Wicket aplicaitons using AJAX on IE and Safari mobile versions, in both
works nice.

On Sun, Apr 3, 2011 at 11:33 AM, Ayodeji Aladejebiwrote:


Hi,
I like to find out the compatibility of wicket on mobile phones? especially
the wicket javascript
Have there been any publication or any project discussing wicket
compatibility on Mobile Devices

Thanks




--
Pedro Henrique Oliveira dos Santos


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



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



Re: Can i catch all urls ending with .php?

2011-04-05 Thread Mike Mander

Am 05.04.2011 14:08, schrieb Wilhelmsen Tor Iver:

i have to build a redirect page for urls ending with .php.
If i mount the page with "*.php" Path i get a 404.

Sounds like something that is better handled with a traditional ServletFilter 
than anything Wicket.

- Tor Iver

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


Thanks Tor for this great reply. You absolutely right. I've found an 
example on something similiar here.

http://viralpatel.net/blogs/2009/02/http-session-handling-tutorial-using-servlet-filters-session-error-filter-servlet-filter.html

Thanks again
Mike

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



RE: Can i catch all urls ending with .php?

2011-04-05 Thread Wilhelmsen Tor Iver
> i have to build a redirect page for urls ending with .php.
> If i mount the page with "*.php" Path i get a 404.

Sounds like something that is better handled with a traditional ServletFilter 
than anything Wicket.

- Tor Iver

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



Can i catch all urls ending with .php?

2011-04-05 Thread Mike Mander

Hi,

i have to build a redirect page for urls ending with .php.
If i mount the page with "*.php" Path i get a 404.

Is this possible?

Thanks
Mike

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



Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread nino martinez wael
sure thats true...

2011/4/5 Martin Grigorov :
> Nino,
>
> On Tue, Apr 5, 2011 at 12:25 PM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> mainly because it did'nt work this way in 1.4 or 1.3... Of course it
>> could be a deliberate change..
>>
>> What happens if I use bookmarkable pages to navigate around the website?
>>
>> Think about it.
> Making changes manually in the address bar is one thing, using java code to
> navigate to a page is another thing.
>
>
>> regards Nino
>>
>> 2011/4/5 Martin Grigorov :
>> > why not ?
>> >
>> > You used app.mountPage() (i.e. MountedMapper) to mount that page.
>> > if you use http://host:port/wicket/bookmarkable/com.mycompany.HomePage
>> then
>> > a new instance will be created every time and the params will be as you
>> > expect them
>> >
>> > On Tue, Apr 5, 2011 at 10:58 AM, nino martinez wael <
>> > nino.martinez.w...@gmail.com> wrote:
>> >
>> >> I dont think this is expected behaviour although ive noticed it too.
>> >> On Apr 5, 2011 10:50 AM, "nimmy"  wrote:
>> >> > Hi,
>> >> >
>> >> > I have a bookmarkable page that takes 2 page parameters. The page
>> >> parameters
>> >> > determine the content that is displayed. The URL to the page is of the
>> >> > format:
>> >> >
>> >> >
>> >>
>> >>
>> http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
>> >> >
>> >> > I manually modified the page parameters in the URL expecting to see
>> >> > different content but this does not happen. The content only changes
>> when
>> >> I
>> >> > delete the page version parameter.
>> >> >
>> >> > Is this expected behaviour? I would expect that changing the page
>> >> parameters
>> >> > would create a new version of the page. Is this not the case?
>> >> >
>> >> > Thanks,
>> >> > Nim
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> >>
>> http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.html
>> >> > Sent from the Users forum mailing list archive at Nabble.com.
>> >> >
>> >> > -
>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > Martin Grigorov
>> > jWeekend
>> > Training, Consulting, Development
>> > http://jWeekend.com 
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>

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



Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread Martin Grigorov
Nino,

On Tue, Apr 5, 2011 at 12:25 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> mainly because it did'nt work this way in 1.4 or 1.3... Of course it
> could be a deliberate change..
>
> What happens if I use bookmarkable pages to navigate around the website?
>
> Think about it.
Making changes manually in the address bar is one thing, using java code to
navigate to a page is another thing.


> regards Nino
>
> 2011/4/5 Martin Grigorov :
> > why not ?
> >
> > You used app.mountPage() (i.e. MountedMapper) to mount that page.
> > if you use http://host:port/wicket/bookmarkable/com.mycompany.HomePage
> then
> > a new instance will be created every time and the params will be as you
> > expect them
> >
> > On Tue, Apr 5, 2011 at 10:58 AM, nino martinez wael <
> > nino.martinez.w...@gmail.com> wrote:
> >
> >> I dont think this is expected behaviour although ive noticed it too.
> >> On Apr 5, 2011 10:50 AM, "nimmy"  wrote:
> >> > Hi,
> >> >
> >> > I have a bookmarkable page that takes 2 page parameters. The page
> >> parameters
> >> > determine the content that is displayed. The URL to the page is of the
> >> > format:
> >> >
> >> >
> >>
> >>
> http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
> >> >
> >> > I manually modified the page parameters in the URL expecting to see
> >> > different content but this does not happen. The content only changes
> when
> >> I
> >> > delete the page version parameter.
> >> >
> >> > Is this expected behaviour? I would expect that changing the page
> >> parameters
> >> > would create a new version of the page. Is this not the case?
> >> >
> >> > Thanks,
> >> > Nim
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> >>
> http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.html
> >> > Sent from the Users forum mailing list archive at Nabble.com.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> > For additional commands, e-mail: users-h...@wicket.apache.org
> >> >
> >>
> >
> >
> >
> > --
> > Martin Grigorov
> > jWeekend
> > Training, Consulting, Development
> > http://jWeekend.com 
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


Re: Wicket For Mobile

2011-04-05 Thread nino martinez wael
also works fine on android 2.2 using webkit..

2011/4/4 Pedro Santos :
> I don't remember of Wicket JavaScript mobile compatibility thread. I tested
> Wicket aplicaitons using AJAX on IE and Safari mobile versions, in both
> works nice.
>
> On Sun, Apr 3, 2011 at 11:33 AM, Ayodeji Aladejebi wrote:
>
>> Hi,
>> I like to find out the compatibility of wicket on mobile phones? especially
>> the wicket javascript
>> Have there been any publication or any project discussing wicket
>> compatibility on Mobile Devices
>>
>> Thanks
>>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>

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



Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread nino martinez wael
mainly because it did'nt work this way in 1.4 or 1.3... Of course it
could be a deliberate change..

What happens if I use bookmarkable pages to navigate around the website?

regards Nino

2011/4/5 Martin Grigorov :
> why not ?
>
> You used app.mountPage() (i.e. MountedMapper) to mount that page.
> if you use http://host:port/wicket/bookmarkable/com.mycompany.HomePage then
> a new instance will be created every time and the params will be as you
> expect them
>
> On Tue, Apr 5, 2011 at 10:58 AM, nino martinez wael <
> nino.martinez.w...@gmail.com> wrote:
>
>> I dont think this is expected behaviour although ive noticed it too.
>> On Apr 5, 2011 10:50 AM, "nimmy"  wrote:
>> > Hi,
>> >
>> > I have a bookmarkable page that takes 2 page parameters. The page
>> parameters
>> > determine the content that is displayed. The URL to the page is of the
>> > format:
>> >
>> >
>>
>> http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
>> >
>> > I manually modified the page parameters in the URL expecting to see
>> > different content but this does not happen. The content only changes when
>> I
>> > delete the page version parameter.
>> >
>> > Is this expected behaviour? I would expect that changing the page
>> parameters
>> > would create a new version of the page. Is this not the case?
>> >
>> > Thanks,
>> > Nim
>> >
>> >
>> >
>> > --
>> > View this message in context:
>>
>> http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.html
>> > Sent from the Users forum mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com 
>

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



Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread nimmy
If the same instance of the page is used then I supposed I could reset the
page model in the page's onBeforeRender method by using
getRequest().getQueryParameters().getParameterValue(...)  as you suggested.
Currently, all the work is being done in the constructor.

This is purely curiosity. I don't expect users to manually modify query
parameters. I stumbled on to this while trying to take a shortcut during
debugging.

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427509.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



[wicketstuff-annotation] Url displayed with alt MountPath

2011-04-05 Thread Mike Mander

Hi,

i have a strange behavior with the MountPath in wicketstuff-annotation. 
Annotated my page with
@MountPath(path="ShowWelcomePage.html", alt={"index", "index.html", 
"index.php", "index.jsp"})


If i call my welcome page (http://localhost:8080) i get 
http://localhost:8080/index.php
If i change alt to ("index", "index.html", "index.php", "index.zsp") i 
get http://localhost:8080/index.zsp

What i expected was http://localhost:8080/ShowWelcomePage.html.

Is it a bug or a feature? Can i achieve my goal?

Thanks
Mike

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



Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread Martin Grigorov
why not ?

You used app.mountPage() (i.e. MountedMapper) to mount that page.
if you use http://host:port/wicket/bookmarkable/com.mycompany.HomePage then
a new instance will be created every time and the params will be as you
expect them

On Tue, Apr 5, 2011 at 10:58 AM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> I dont think this is expected behaviour although ive noticed it too.
> On Apr 5, 2011 10:50 AM, "nimmy"  wrote:
> > Hi,
> >
> > I have a bookmarkable page that takes 2 page parameters. The page
> parameters
> > determine the content that is displayed. The URL to the page is of the
> > format:
> >
> >
>
> http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
> >
> > I manually modified the page parameters in the URL expecting to see
> > different content but this does not happen. The content only changes when
> I
> > delete the page version parameter.
> >
> > Is this expected behaviour? I would expect that changing the page
> parameters
> > would create a new version of the page. Is this not the case?
> >
> > Thanks,
> > Nim
> >
> >
> >
> > --
> > View this message in context:
>
> http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
>



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


Re: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread nino martinez wael
I dont think this is expected behaviour although ive noticed it too.
On Apr 5, 2011 10:50 AM, "nimmy"  wrote:
> Hi,
>
> I have a bookmarkable page that takes 2 page parameters. The page
parameters
> determine the content that is displayed. The URL to the page is of the
> format:
>
>
http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
>
> I manually modified the page parameters in the URL expecting to see
> different content but this does not happen. The content only changes when
I
> delete the page version parameter.
>
> Is this expected behaviour? I would expect that changing the page
parameters
> would create a new version of the page. Is this not the case?
>
> Thanks,
> Nim
>
>
>
> --
> View this message in context:
http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.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: 1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread Martin Grigorov
No.
You use the same page instance.
To get the current request's parameters use:
getRequest().getQueryParameters().getParameterValue(...)

On Tue, Apr 5, 2011 at 10:50 AM, nimmy  wrote:

> Hi,
>
> I have a bookmarkable page that takes 2 page parameters. The page
> parameters
> determine the content that is displayed. The URL to the page is of the
> format:
>
>
> http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa
>
> I manually modified the page parameters in the URL expecting to see
> different content but this does not happen. The content only changes when I
> delete the page version parameter.
>
> Is this expected behaviour? I would expect that changing the page
> parameters
> would create a new version of the page. Is this not the case?
>
> Thanks,
> Nim
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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


1.5RC2 - URL question - Is this expected behaviour?

2011-04-05 Thread nimmy
Hi,

I have a bookmarkable page that takes 2 page parameters. The page parameters
determine the content that is displayed. The URL to the page is of the
format:

http://localhost:8080/view?2&gid=2&authKey=776bbb3e-83d1-4452-a7df-ff18b46169aa

I manually modified the page parameters in the URL expecting to see
different content but this does not happen. The content only changes when I
delete the page version parameter.

Is this expected behaviour? I would expect that changing the page parameters
would create a new version of the page. Is this not the case?

Thanks,
Nim



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5RC2-URL-question-Is-this-expected-behaviour-tp3427453p3427453.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: JavaEEComponentInjector in Wicket 1.5

2011-04-05 Thread Major Péter
It has been upgraded (with some help for which I'm thankful :) ), and 
although I'm not using it atm, it should be working. ;)


Regards,
Peter

On 2011-04-05 09:01, Martin Grigorov wrote:

are you talking about
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent
  ?
because this has been upgraded to support Wicket 1.5 and is used by its
maintainer (Peter Major)

On Tue, Apr 5, 2011 at 2:42 AM, msj121  wrote:


I am not sure if this is a bug or intentional.

But seemingly
"getComponentInstantiationListeners().add((IComponentInstantiationListener)
new JavaEEComponentInjector(this));" No longer works in Wicket 1.5 (any
version I tried), but perfectly works in Wicket 1.4.5.

In Wicket 1.5 it states: "cannot access
org.apache.wicket.injection.ComponentInjector" I only changed the
version of wicket in my pom file


I will open a bug, but I have a feeling others ran into this, and I googled
for a solution (mostly people without wicket-ioc), but nothing yet, anyone
have any help or advice?

Matthew

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/JavaEEComponentInjector-in-Wicket-1-5-tp3426937p3426937.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: JavaEEComponentInjector in Wicket 1.5

2011-04-05 Thread Martin Grigorov
are you talking about
https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent
 ?
because this has been upgraded to support Wicket 1.5 and is used by its
maintainer (Peter Major)

On Tue, Apr 5, 2011 at 2:42 AM, msj121  wrote:

> I am not sure if this is a bug or intentional.
>
> But seemingly
> "getComponentInstantiationListeners().add((IComponentInstantiationListener)
> new JavaEEComponentInjector(this));" No longer works in Wicket 1.5 (any
> version I tried), but perfectly works in Wicket 1.4.5.
>
> In Wicket 1.5 it states: "cannot access
> org.apache.wicket.injection.ComponentInjector" I only changed the
> version of wicket in my pom file
>
>
> I will open a bug, but I have a feeling others ran into this, and I googled
> for a solution (mostly people without wicket-ioc), but nothing yet, anyone
> have any help or advice?
>
> Matthew
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/JavaEEComponentInjector-in-Wicket-1-5-tp3426937p3426937.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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