RE: Single Page Applications (SPA), Wicket and the history ajax back issue

2016-07-07 Thread Anup Gokhale


Hi.

Even I am struggling with similar issues. A demo app would definitely go a long 
way in sorting this out.

Regards,

Anup

-Original Message-
From: Martin Grigorov [mailto:martin.grigo...@gmail.com]
Sent: 08 July 2016 03:59
To: users@wicket.apache.org
Subject: Re: Single Page Applications (SPA), Wicket and the history ajax back 
issue

Hi,

It seems you use Wicket for several years now and you have no idea how to use 
it!

On Jul 7, 2016 3:13 PM, "Wayne W" <waynemailingli...@gmail.com> wrote:
>
> Hi Sven,
>
> of course: Ok so this is simplified somewhat: lets say we have 4 main
> tab areas of the application: Contacts, Files, Calendar, Tasks. When a
> user navigates from one area to the next we need to currently do a
> whole page refresh, where in fact all we really need to do is refresh
> a sub panel via

This is a no-brainer with Wicket Ajax.

> ajax. This already is more 'old school' as I put it in the fact the
> user experiences the whole page refreshing rather than say a
> loading/spinner in the main panel. We want to make the web pp fell
> more 'app like' rather
than
> a succession of web pages. Another example is say we are in the "File"
> tab and we want to drill down through some folders, at the moment we
> need to refresh the page if we want to support the back button rather
> than load
via
> ajax.

I have done this for a client of mine 4 years ago.
And I have explained how to do it few times in the mailing lists.
You could use HTML5 History API to manipulate the browser url on each Ajax 
call. If you need to support old browsers (why?! almost no one does these
days) then you should use some JS library that falls back to using the location 
fragment/hash.
The support of "back/forward" buttons is just registering an AjaxEventBehavior 
that listens for "popState"/"hashchange" event.

>
> It just gives a much less slick experience as the page reloads
> visually, and there is more data sent over the wire - slower page
> loads. But ultimately it about the users impression of the app and
> feeling like an
app
> rather than a bunch of pages.

I will try to find time to write a blog article with a demo app at 
wicketinaction.com soon.

>
>
> On Thu, Jul 7, 2016 at 1:01 PM, Sven Meier <s...@meiers.net> wrote:
>
> > Hi,
> >
> > it would be interesting to hear what limitations you're fighting
against.
> > As a server-side rendered framework Wicket surely isn't the new kid
> > on
the
> > block, but I can't think of anything forcing your application to be
> > 'old school'.
> >
> > Can you be more specific?
> >
> > Sven
> >
> >
> >
> > Am 7. Juli 2016, 13:23, um 13:23, Wayne W
> > <waynemailingli...@gmail.com>
> > schrieb:
> > >Hi,
> > >
> > >we're been using wicket for some time now and we have a very
> > >established application used by many clients. It is however feeling
> > >some what dated, due to the fact the we have to constantly reload
> > >pages to access different functionality/areas if the app. We use
> > >ajax fairly heavily within each functional area.
> > >
> > >The problem is we are starting to 'feel' old school and we're
> > >loosing out to the competition that are based on the lasted SPA
> > >type JS frameworks talking to APIs. They just feel more slick and
> > >more responsive.
> > >
> > >Doing some research it seems thats it not possible to transform our
> > >current wicket app into this form, mainly due to the issues around
> > >wicket ajax state storage and history URL support in older
> > >browsers.
> > >
> > >Is this something the Wicket is never going to to attempt to
> > >support? I cannot find anything around this subject.
> > >
> > >Having a huge investment in our Wicket based application, its going
> > >to be very very painful to move away from which we must do if we
> > >cannot keep up with the competition due to framework limitations.
> > >
> > >many thanks
> >


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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



DataTable Selected Row And Paging

2016-02-17 Thread Anup Gokhale
Hi,

 

I have a couple of use cases for DataTable for which I have not been able to
find a solution. Both use cases are pretty common and I am sure that the
solution is something very simple, but somehow I am struggling to get it
working.

 

1.   How to highlight/color differently the currently 'selected' row in
the data table. I have implemented the select functionality by using the
AjaxEventBehavior as shown the snippet below.

 

dataTable = new DataTable( "dataTable", columns, employeeListDataProvider,
20) {

@Override

protected Item
newRowItem(String id, int index, final IModel model) {

rowItem.add(
new AjaxEventBehavior( "click") {

 
@Override

 
protected void onEvent(AjaxRequestTarget target) {

 
selectedEmployee = (Employee) model.getObject( );

 
}

} );

 

return
rowItem;

}

 

};

The select functionality is working just fine, but now I want to show the
row corresponding to the selected employee in a different color. The
selected row should display as 'selected' even when the user navigates to
another page (page means the datatable page using paging navigator and not
WebPage) and then navigates back to the original datatable page.

 

2.   My list of employees is pretty large and I am using a
BootstrapAjaxPagingNavigator along with the datatable. Now in some cases I
want to programmatically show a particular employee as selected. So for
this, I need some means to find the datatable page number which will have
the desired employee,  I then need to programmatically display that
particular datatable page and then I need to show the row corresponding to
the desired employee as highlighted/selected. To complicate matters further,
my datatable is styled to display vertical scroll bars. So if possible,
after displaying the correct datatable page, the datatable should
automatically scroll-up or scroll-down to ensure that the row corresponding
to the desired employee, is always visible to the user.

 

Any pointers to get the above two use cases working ?

 

 

Warm regards,

 

Anup 

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


RE: Wicket need Votes! :-)

2016-02-16 Thread Anup Gokhale
+ 1

Anup Gokhale

-Original Message-
From: Francois Meillet [mailto:francois.meil...@gmail.com]
Sent: 16 February 2016 18:38
To: users@wicket.apache.org
Subject: Re: Wicket need Votes! :-)

+1

François









Le 16 févr. 2016 à 14:06, andrea del bene <an.delb...@gmail.com> a écrit :

>
>
> No need to say it :)
>> Done too!
>>
>> On Tue, Feb 16, 2016 at 1:25 PM, Thomas Jarnot <tho...@jarnot.de> wrote:
>>
>>> Am 16.02.2016 10:10, schrieb Tobias Soloschenko:
>>>
>>>> Hi all,
>>>>
>>>> take some minutes and vote for Apache Wicket! :-)
>>>>
>>>> (German)
>>>>
>>>>
>>>> https://jaxenter.de/jaxenter-umfrage-diese-web-frameworks-liegen-20
>>>> 16-im-fokus-34892
>>>>
>>>> (English)
>>>>
>>>> https://jaxenter.de/survey-32999
>>>>
>>>> The survey is in english.
>>>>
>>> done ;-)
>>>
>>>
>>>
>>> 
>>> - 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



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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



Re: Wicket-Bootsrap

2015-10-07 Thread Anup Gokhale
I have not yet created the WAR. I am getting this error while running in
debug mode in eclipse.

Regards,
Anup
On Oct 8, 2015 3:57 AM, "shetc" <sh...@bellsouth.net> wrote:

> How are you creating the WAR and where is it running?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Bootsrap-tp4672100p4672162.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
>
>


Wicket-Bootsrap

2015-10-05 Thread Anup
Hi.

I have downloaded wicket bootstrap from GitHub. I have built and imported
the projects in Eclipse following the instructions in  this post
<http://nixmash.com/java/up-and-running-with-wicket-bootstrap-in-eclipse/>  
. The projects import just fine. However when I run the samples project I
get a java.lang.ClassNotFoundException for class
de.agilecoders.wicket.core.settings.IBootstrapSettings  . I have cross
checked my project build path and it appears to be setup properly. Strange
part is CTRL + Clicking IBootstrapSettings in the configureBootsrap() method
of WicketApplication also opens up the class file. Any ideas why the class
is not being found at runtime?

Thanks and regards,

Anup

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Bootsrap-tp4672100.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 Tree - Getting The Selected Node

2015-09-25 Thread Anup
Sven Meier wrote
> a NestedTree does not have any notion of 'selection'.
> But the set of expanded nodes is kept in the tree's model object, see 
> AbstractTree#expand() and #collapse().
> 
> You decide how to represent each node's content, for this you'll have to 
> override AbstractTree#newContentComponent(). The default will just 
> expand and collapse the tree branches on each click, see
> 
> org.apache.wicket.extensions.markup.html.repeater.tree.content.Folder
> 
> You can override Folder's methods or use any other component to 
> represent your nodes.

Thanks Sven. I have understood the above as I can see the expanded nodes by
inspecting tree.getModel(). What still foxes me is how do I take some
action, when the user clicks a particular node? For example if each node is
representing an employee, then how can I display the details of the desired
employee when the user clicks/selects on the corresponding employee node?

Regards,
Anup

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Tree-Getting-The-Selected-Node-tp4672040p4672042.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



Wicket Tree - Getting The Selected Node

2015-09-25 Thread Anup Gokhale
Hi.

 

Am a complete noob to Wicket and am currently learning Wicket by writing
small example applications. Have worked my way through all the basic
components like TextField, Links, Labels, Buttons, ListView, DataTable etc.
Have now reached DefaultNestedTree and it's many avatars. Am totally stuck
in fetching the currently selected nodes. How do our models know which
node(s) the user has currently selected in the tree? Also are there any
events that get fired when the user clicks on a tree node?

 

This is my very first post to the wicket user group, and I must say that
Wicket developers and committers have done a commendable job. Thanks for
developing such a wonderful framework.

 

Warm regards,

 

Anup Gokhale

 



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Re: Wicket Tree - Getting The Selected Node

2015-09-25 Thread Anup
Thanks Sven. Things are clear to me now.

Regards,

Anup

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Tree-Getting-The-Selected-Node-tp4672040p4672044.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