Re: Wicket 'hook' point for page render timing

2012-02-11 Thread robert.mcguinness
Chris,


Have you looked into 

RenderPerformanceListener.java?

added by

getComponentInstantiationListeners().add(new RenderPerformanceListener());

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-hook-point-for-page-render-timing-tp4378230p4379127.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: HTML5 offline storage

2012-02-09 Thread robert.mcguinness
nino,

i'm about to start a coding effort with offline storage and wicket.  i'll
keep you posted with any findings.

rob

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/HTML5-offline-storage-tp4372779p4372803.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: Stateless and Ajax

2012-01-31 Thread robert.mcguinness
straight copy from jolira but for 6.0.  basically just keep overriding the
ajax components and returning getStatelessHint to true and passing page
parameters to ajax components as needed.

Code is buggy so just use as reference.

https://github.com/robmcguinness/wicket-stateless/blob/master/src/main/java/com/robmcguinness/stateless/StatelessAjaxButton.java

http://wicket-stateless.herokuapp.com/

*martin,*

would the core devs consider pulling some of jolira's ajax components or
some variant of it into the wicket-core?  seems that over the years a the
demand for stateless ajax components is pretty reasonable.

rob

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-and-Ajax-tp4344007p4345686.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-Source: Click-through from browser back to Java source

2012-01-31 Thread robert.mcguinness
looks awesome.  can't wait to try it.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Source-Click-through-from-browser-back-to-Java-source-tp4346532p4346698.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: handling request to component - the wicket way

2012-01-27 Thread robert.mcguinness
threw it up on heroku in case you didn't' want to use gradle too see
examples.  last two components (dropdown, session login button) are
incomplete at the moment.

http://wicket-stateless.herokuapp.com/?counter=8

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332848.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: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
what version of wicket are you using?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332046.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: handling request to component - the wicket way

2012-01-26 Thread robert.mcguinness
i asked which version because stateless components are easier in wicket 
1.5.x.  i currently have an example stateless components using wicket 6.0.x
at https://github.com/robmcguinness/wicket-stateless.  i had 1.5.x examples
but i think i lost that history when i rebased in git.  use gradle to build
(sorry don't use maven) and you can see the examples running live on local
host (examples built with Twitter Bootstrap).  you should be able to port
them to 1.5.x easily.  

this github branch is based off jolira work just refactored for testing
purposes (i haven't seen activity in jolira branch as of late).  

if you have issues send me questions or even code so I can help.  my
ultimate goal is to integrate with history api to get full back button
support.

rob



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/handling-request-to-component-the-wicket-way-tp4331722p4332148.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 refresh frame2 with an Ajax submit button in frame1 for a page using frameset?

2012-01-25 Thread robert.mcguinness
Example of monkey patching wicket 1.3 javascript to support dom
find/replacement across iFrames and window.opener, maybe this will give you
some ideas.


https://github.com/robmcguinness/wicket-events/blob/master/src/main/java/com/robmcguinness/pages/rm3.js#L17

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-refresh-frame2-with-an-Ajax-submit-button-in-frame1-for-a-page-using-frameset-tp4326014p4327268.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 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-08 Thread robert.mcguinness
done.  thank martin.

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

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4276477.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 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-07 Thread robert.mcguinness
in my BasePage.html, i have a meta tag in the header:

  /meta wicket:id=metaAuthor content=Rob McGuinness name=author/

which is created by something like:

  /WebComponent metaKeywords = new WebComponent(id); 
  metaKeywords.add(new AttributeModifier(content, new
ResourceModel(key)));/

after applying /JavaScriptFilteredIntoFooterHeaderResponse/, the meta tag(s)
get filtered to bottom of the page because it is not of type CssHeaderItem.

looks like i can override/create my own filter to footer, but i didn't see
that behavior in 1.5 so I just wanted to point it out. 

rob








--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4274687.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 6.0 + JavaScriptFilteredIntoFooterHeaderResponse + CssHeaderItem

2012-01-07 Thread robert.mcguinness
kk, got it working again by overriding
/CssAcceptingHeaderResponseFilter#accepts/

  /item instanceof CssHeaderItem || item instanceof PageHeaderItem/

also, for some js frameworks like *modernizr.js* and *respond.js*, they
require these libs to live in the in the head tag.   to target the head
bucket for for these js libs, i created a new
JavaScriptReference*In*HeaderItem that is used to accept these type of libs
in the head.  

if i'm wrong about my assumptions let me know.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-6-0-JavaScriptFilteredIntoFooterHeaderResponse-CssHeaderItem-tp4274687p4275033.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: Back button showing a page with stale data

2011-12-25 Thread robert.mcguinness
1. use LDM or AbstractReadOnlyModel to load your data on PageA.  i use LDMs
to load almost all data and about the only time I don't use an LDM is during
a wizard scenario, where the same object needs to be updated across request.  

2. disable caching of the page so that the server is requested when the user
hits the back button.  on PageA, override onBeforeRender and put a
breakpoint in it to make sure the page is getting called when you hit the
back button.  Wicket 1.4 and Wicket 1.5 have different ways of doing, but
here is an example in Wicket 1.4 about what I'm referring to: 
http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Rob

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Back-button-showing-a-page-with-stale-data-tp4233580p4233747.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: AjaxRequestTarget on page open

2011-11-28 Thread robert.mcguinness
you don't need ajax for this:

https://cwiki.apache.org/confluence/display/WICKET/Modal+Windows Opening a
modal window on page load (no AJAX involved) 




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-on-page-open-tp4110093p4115584.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 Gradle build

2011-11-18 Thread robert.mcguinness
just for giggles, i enjoy Wicket + Gradle and maintain both here, slightly
modified to fit my needs.  you can get the gradle build files as examples
for 1.5.

https://github.com/robmcguinness/wicket
https://github.com/robmcguinness/wicket 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Gradle-build-tp4084846p4085506.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: Apache Wicket is a Flawed Framework

2011-11-17 Thread robert.mcguinness
i'm baffled when people say the documentation is poor, the javadocs are
excellent and like igor said there are some great books (blogs too!).  books
and blogs get outdated fast since technlogy is rapidly advancing, so *use
the source luke!*.  Not only will you learn Wicket, but I guarantee your
Java skills will improve.  


awesome examples:



https://github.com/apache/wicket https://github.com/apache/wicket  (scan
over the unit test, best way to learn any framework not just wicket)

https://github.com/55minutes/fiftyfive-wicket
https://github.com/55minutes/fiftyfive-wicket  (fantastic)

https://github.com/42Lines https://github.com/42Lines 

https://github.com/wicketstuff/core https://github.com/wicketstuff/core  (a
gem, tons of examples on how to pretty much do anything)

http://code.google.com/p/wiquery/source/checkout
http://code.google.com/p/wiquery/source/checkout 

https://github.com/jolira/wicket-stateless
https://github.com/jolira/wicket-stateless  (wicket stateless is excellent,
even easier with wicket 1.5)

https://github.com/reaktor/oegyscroll https://github.com/reaktor/oegyscroll 
(endless pagination)

http://code.google.com/p/wiquery/source/browse/core
http://code.google.com/p/wiquery/source/browse/core  (jquery)

http://code.google.com/p/jqwicket/source/browse/
http://code.google.com/p/jqwicket/source/browse/  (jquery, learn from the
code and roll your own if it doesn't fit your needs, super easy

https://github.com/rjnichols/visural-wicket
https://github.com/rjnichols/visural-wicket  (great ui tools)

https://xaloon.googlecode.com/svn/ https://xaloon.googlecode.com/svn/ 
(excellent!)



rob

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-is-a-Flawed-Framework-tp4080411p4082034.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: Determine the latest page in multi tabbed browsing

2011-11-04 Thread robert.mcguinness
martin,

would be awesome if you could through up a github project of wicket + ajax +
history as an example of how to get all this to work.

rob

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Determine-the-latest-page-in-multi-tabbed-browsing-tp3947526p3991713.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: Username gets cached

2011-08-03 Thread robert.mcguinness
are you sharing the same model between pages?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Username-gets-cached-tp3715475p3715532.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 xml/doctype/html header: xhtml vs html5

2011-07-30 Thread robert.mcguinness
For Wicket *1.5* I've been using:



lt;!DOCTYPE htmlgt;
lt;html xmlns:wicket=http://wicket.apache.orggt;



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-xml-doctype-html-header-xhtml-vs-html5-tp3698608p3706667.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: Issues with HeaderResponseContainerFilteringHeaderResponse

2011-07-21 Thread robert.mcguinness
put your css string from db in:


new StringBufferResourceStream().add(yourCssFromDB) 


and then you can contribute to the header properly

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Issues-with-HeaderResponseContainerFilteringHeaderResponse-tp3678890p3685782.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 with TextField to Label readonly mode

2011-06-16 Thread robert.mcguinness
like so? http://wicket.visural.net/examples/app/view-or-edit

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Form-with-TextField-to-Label-readonly-mode-tp3603438p3603631.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.5-SNAPSHOT build repository

2011-06-01 Thread robert.mcguinness
https://github.com/apache/wicket

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/1-5-SNAPSHOT-build-repository-tp3565884p3566394.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: usage of JavascriptFilteredIntoFooterHeaderResponse

2011-05-19 Thread robert.mcguinness
Jeremy,


Great work on this BTW.  Quick question, any reason why
JavaScriptFilteredIntoFooterHeaderResponse is final?  Would like to:



JavaScriptFilteredIntoFooterHeaderResponse javaScriptFooterResponse = new
JavaScriptFilteredIntoFooterHeaderResponse(response, footerBucket) {

@Override
protected 
JavaScriptAcceptingHeaderResponseFilter createFooterFilter(
String 
footerBucketName) {
return new 
JavaScriptAcceptingHeaderResponseFilter(footerBucketName) {
@Override
public boolean 
acceptOtherJavaScript() {
return false;
}
};
}
};


My ultimate goal is to target the header/footer buckets with particular
scripts.  Maybe my approach is wrong.  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/usage-of-JavascriptFilteredIntoFooterHeaderResponse-tp3302046p3537524.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: Serve Json in request and response

2011-05-03 Thread robert.mcguinness
maybe this will help:

http://code.google.com/p/wicket-rest/


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Serve-Json-in-request-and-response-tp3491991p3492685.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: Repeating two tags at the same level (i.e. without a container)

2011-04-28 Thread robert.mcguinness
setRenderBodyOnly(true)  on div wicket:id=repeaterContainer_NOT_wanted 

or

wicket:container wicket:id=repeaterContainer_NOT_wanted

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Repeating-two-tags-at-the-same-level-i-e-without-a-container-tp3482548p3482566.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: link within modal window should reload parent page

2011-04-10 Thread robert.mcguinness
if I remember correctly:

 public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavascript(if (typeof Wicket != 'undefined' 
Wicket.Window) Wicket.Window.unloadConfirmation = false;);

  }

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3440115.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-04 Thread robert.mcguinness
http://apache-wicket.1842946.n4.nabble.com/After-1-minute-the-Pagemap-null-is-still-locked-by-Thread-ACTIVE-tp3047890p3049862.html

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

2011-03-25 Thread robert.mcguinness
purchased!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Apache-Wicket-Cookbook-Published-tp3406012p3406821.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 populate SortableDataProvider

2011-03-22 Thread robert.mcguinness
http://apache-wicket.1842946.n4.nabble.com/Storing-ArrayList-with-over-1-objects-td3343442.html#a3343499

Since then I followed Martijn's suggestion and cached the objects using the
Spring module @Cacheable annotation.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-populate-SortableDataProvider-tp3397372p3398102.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: Stateless Wicket and Ajax

2011-03-12 Thread robert.mcguinness
Martin,

With a custom StatelessRequestMapper and and a the change to
Behaviors.getBehaviorById(int id) below I was able to get stateless
components to work in 1.5 using a clone
https://github.com/martin-g/wicket-stateless.  This is probably not the best
approach but it was a fun exercise.

http://apache-wicket.1842946.n4.nabble.com/file/n3350821/Behaviors.java
Behaviors.java 
http://apache-wicket.1842946.n4.nabble.com/file/n3350821/StatelessRequestMapper.java
StatelessRequestMapper.java 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-Wicket-and-Ajax-tp3348266p3350821.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: Stateless Wicket and Ajax

2011-03-12 Thread robert.mcguinness
Serban,

If you make the change below in StatelessWebRequestCodingStrategy the
component should be found in the page.  It's a copy from
BookmarkableListenerInterfaceRequestTarget#processEvents.  Jolira noted this
might be needed in their comments.


private static Component getComponent(final Page page, final String
componentPath) {
final String pageRelativeComponentPath =
Strings.afterFirstPathComponent(componentPath, PATH_SEPARATOR);
 Component component = page.get(pageRelativeComponentPath);


if(component == null) {
page.prepareForRender(false);
component = page.get(pageRelativeComponentPath);

// See {@link
//
BookmarkableListenerInterfaceRequestTarget#processEvents(RequestCycle)}
// We make have to try to look for the component twice, 
if we hit the
// same condition.
if (component == null) {
throw new WicketRuntimeException(unable to 
find component with path  +
pageRelativeComponentPath +  on stateless page  + page
+  it could be that the 
component is inside a repeater make your
component return false in getStatelessHint());
}
}


return component;
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-Wicket-and-Ajax-tp3348266p3350985.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: Stateless Wicket and Ajax

2011-03-11 Thread robert.mcguinness
I built a stateless site using the 
http://code.google.com/p/jolira-tools/wiki/stateless Jolira Tools  and it
worked out great, you just have to get used to using PageParameters for
everything (contructors, pagination, etc).  



During development I had conditional breakpoints in locations that would
indicate statefulness (the Stateless annotation wasn't working as expected
at the time)



Component.isStateless
Session.isTemporary
Session.bind


I'm trying to convert the stateful components to Wicket 1.5 but I'm not too
familiar with the new Wicket version yet so it's a slow process.


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stateless-Wicket-and-Ajax-tp3348266p3348781.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: Storing ArrayList with over 10000 objects

2011-03-09 Thread robert.mcguinness
Martijn,

Wouldn't this be a safe way to cache a list at the expense of memory (using
transient)?   In a lot of my projects I have to do some aggregation of the
results from multiple data stores that are slow even with the caching layer. 


private class SomeDataProvider extends SortableDataProvider {

/* cache the page results but don't serialize them to session 
or disk */
private transient SearchResults searchResults;

private static final long serialVersionUID = 1L;
private SortParam sortParam;

public SomeDataProvider () {}

@Override
public int size() {

/*
 * if null (back button/forward button case) rebuild 
the results using
the search parmas that are stored with page
 */
if (searchResults == null) {

searchResults = 
searchService.findSomeStuff(serializableSearchParams);
}

return searchResults.size();;
}

@Override
public IModel model(Object object) {
return new 
SearchHitModel(object).setShouldDetach(false);
}

@Override
public Iterator iterator(int first, int count) {

SortParam sp = getSort();

// only sort results when the sort command changes
if (!sortParam.equals(sp)) {
Sorter sorter = new Sorter(sp.getProperty(), 
sp.isAscending());

Collections.sort(searchResults.getSearchResultList(), sorter);
sortParam = sp;
}

return searchResults.getPagedResults(first, 
count).iterator();
}

}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Storing-ArrayList-with-over-1-objects-tp3343442p3343499.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: Disable form prettyfier

2011-03-04 Thread robert.mcguinness
possibly: http://wicket.visural.net/examples/app/view-or-edit

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Disable-form-prettyfier-tp3334921p3335271.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: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread robert.mcguinness
Per,

Awesome summary.  Much obliged.

Rob

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Just-100K-per-session-That-would-be-my-dream-come-true-Anyone-here-who-has-tuned-session-size-before-tp3308014p3330455.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: Using StringResourceModel with BreadCrumbPanel constructor

2011-02-16 Thread robert.mcguinness

My breadcrumb panels are usually tied to some model object which provides the
titles.  For titles that are read from a localized file I use:


@Override
public String getTitle() {
return
Application.get().getResourceSettings().getLocalizer().getString(some.key.here,
(Component)null, (String) null);
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Using-StringResourceModel-with-BreadCrumbPanel-constructor-tp3309130p3309252.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-12-14 Thread robert.mcguinness

not sure if this would work, but create another pagemap for your large form
and submit to that (if you are trying to keep everything in the wicket
world).  keep the default pagemap (null) for your short lived requests.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Asynchronous-File-Uploads-tp2541855p3086723.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: Logout (Session destroy) on the last (stateful) page?

2010-12-04 Thread robert.mcguinness

maybe i misunderstood, but wouldn't removing the page from the page map be
sufficient?   we do this for our confirmation pages that show sensitive data
(like temporary passwords).  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Logout-Session-destroy-on-the-last-stateful-page-tp3067753p3072309.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: Multithreaded construction of pages

2010-12-04 Thread robert.mcguinness

Can you show some code?  I created something similar but I'm curious about
your implementation.  

https://gist.github.com/706011 https://gist.github.com/706011 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Multithreaded-construction-of-pages-tp3072354p3072948.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: Alert on ajax activity

2010-09-06 Thread robert.mcguinness


this snippet was handed to me long ago and I've slightly modified over time.



$().ready(function() {
$(document).click(clickFunc);

hideBusysign();

if (typeof Wicket == 'object'  typeof Wicket.Ajax == 'object') {
Wicket.Ajax.registerPreCallHandler(showBusysign);
Wicket.Ajax.registerPostCallHandler(hideBusysign);
Wicket.Ajax.registerFailureHandler(hideBusysign);
}

function hideBusysign() {
$(#ajaxLoader).hide();
}

function showBusysign() {
var ajaxLoader = $(#ajaxLoader);
var scrollPosition = $(window).scrollTop();
ajaxLoader.css('top', scrollPosition);
ajaxLoader.css('left', 20);
ajaxLoader.show();
}

function clickFunc(eventData) {

// IGNORE RIGHT CLICKS
if (window.event  event.button == 2) {
return;
}else if (eventData.which == 3) {
return;
}

var clickedElement = (window.event) ? event.srcElement :
eventData.target;
if ((clickedElement.tagName.toUpperCase() == 'A' 
((clickedElement.target == null) || (clickedElement.target.length = 0))
 (clickedElement.href.lastIndexOf('#') !=
(clickedElement.href.length - 1))  (!('nobusy' in clickedElement))
 (clickedElement.href.indexOf('mailto')  0)
 (clickedElement.href.indexOf('WicketAjaxDebug')  0) 
(clickedElement.href.lastIndexOf('.doc') != (clickedElement.href.length -
4))
 (clickedElement.href.lastIndexOf('.csv') !=
(clickedElement.href.length - 4))
 (clickedElement.href.lastIndexOf('.xls') !=
(clickedElement.href.length - 4))  ((clickedElement.onclick == null) ||
(clickedElement.onclick
.toString().indexOf('window.open') = 0))
|| (clickedElement.parentNode != 'undefined' 
clickedElement.parentNode.tagName != null 
clickedElement.parentNode.tagName.toUpperCase() == 'A'
 ((clickedElement.parentNode.target == null) ||
(clickedElement.parentNode.target.length = 0))
 (clickedElement.parentNode.href.indexOf('mailto')
 0)
 (clickedElement.parentNode.href.lastIndexOf('#')
!= (clickedElement.parentNode.href.length - 1))

(clickedElement.parentNode.href.lastIndexOf('.doc') !=
(clickedElement.parentNode.href.length - 4))

(clickedElement.parentNode.href.lastIndexOf('.csv') !=
(clickedElement.parentNode.href.length - 4))

(clickedElement.parentNode.href.lastIndexOf('.xls') !=
(clickedElement.parentNode.href.length - 4)) 
((clickedElement.parentNode.onclick == null) ||
(clickedElement.parentNode.onclick
.toString().indexOf('window.open') = 0)))
|| (((clickedElement.onclick == null) ||
((clickedElement.onclick.toString().indexOf('confirm') = 0)

(clickedElement.onclick.toString().indexOf('alert') = 0) 
(clickedElement.onclick.toString().indexOf('Wicket.Palette') = 0) 
clickedElement.onclick.toString().indexOf(window.print) = 0) )) 
(clickedElement.tagName
.toUpperCase() == 'INPUT' 
(clickedElement.type.toUpperCase() == 'BUTTON' ||
clickedElement.type.toUpperCase() == 'SUBMIT' || clickedElement.type
.toUpperCase() == 'IMAGE' {
showBusysign();
}
}

});


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Alert-on-ajax-activity-tp2527887p2528293.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Lambdas in Java Preview - Part 5: Apache Wicket

2010-07-21 Thread robert.mcguinness

very cool:

http://stronglytypedblog.blogspot.com/2010/07/lambdas-in-java-preview-part-5-apache.html
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Lambdas-in-Java-Preview-Part-5-Apache-Wicket-tp2297512p2297512.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



Re: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness

i need to see more code but try constructing your panels like:



@Override
protected void onBeforeRender() {
if (!hasBeenRendered()) {
// call some function that builds/add components here
}
super.onBeforeRender();
}


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293306.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: action on an old versioned page

2010-07-18 Thread robert.mcguinness

i think this is what you are experiencing:

http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/action-on-an-old-versioned-page-tp2293075p2293308.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



Re: getPage() and getParentPage() returns null

2010-07-18 Thread robert.mcguinness

FYI in version 1.4.10 the API gets more clean:

http://apache-wicket.1842946.n4.nabble.com/new-feature-in-trunk-and-branch-Component-onInitialize-td2286924.html#a2286924
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/getPage-and-getParentPage-returns-null-tp2293003p2293437.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



Re: Panel update with Ajax

2010-07-11 Thread robert.mcguinness

couple of suggestions:


check the ajax response using the wicket debugger on the client side and see
what it returns
 is the panel hidden during page render?  maybe setting
setOutputMarkupPlaceholderTag(true) will help.  if you are panel swapping
then try using Panel.replaceWith(new Panel())
make sure you detach the model that is tied to the ProductDetails.  I try to
pass models across components instead of objects and let Wicket handle the
detaching.



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Panel-update-with-Ajax-tp2284929p2285251.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: StackOverFlowError

2010-07-02 Thread robert.mcguinness

this happened to me the other day.  turned out to be a coding error.  i
wrapped a compoundpropertymodel in a propertylistview (which already wraps a
model into a compoundpropertymodel).  once the code was fix the problem went
away.  

my data set was also large.  about 1000 rows in a table being displayed on
screen.  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/StackOverFlowError-tp2276618p2276655.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



Re: modalWindow can not be closed

2010-06-17 Thread robert.mcguinness

What does your ajax return? are you using HTTPSessionStore?  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/modalWindow-can-not-be-closed-tp2258304p2258336.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



Re: jqery not getting called after ajax refresh

2010-05-04 Thread robert.mcguinness

print out some unique attribute of the element that last regains focus to
console.debug, maybe http://api.jquery.com/focusin/ will help.  

- roberto
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p2126168.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



Re: mexico.com

2010-04-30 Thread robert.mcguinness

site looks great.  i'm curious, how did you approach the stateless pages
using Wicket? 

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



Re: jqery not getting called after ajax refresh

2010-04-15 Thread robert.mcguinness

have you tried using jQuery 1.4 live/delegate handlers?  they will attach
events to elements even after initial dom load.  
-- 
View this message in context: 
http://n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p1896790.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



Re: jqery not getting called after ajax refresh

2010-04-15 Thread robert.mcguinness

hopefully this helps:

We can bind a simple click handler to this element:



$('.clickme').bind('click', function() {
  // Bound handler called.
});


When the element is clicked, the handler is called. However, suppose that
after this, another element is added:


$('body').append('lt;div class=clickmegt;Another targetlt;/divgt;');


This new element also matches the selector .clickme, but since it was added
after the call to .bind(), clicks on it will do nothing.

The .live() method provides an alternative to this behavior. If we bind a
click handler to the target element using this method:



$('.clickme').live('click', function() {
// Live handler called.
});


And then later add a new element:


$('body').append('lt;div class=clickmegt;Another targetlt;/divgt;');


Then clicks on the new element will also trigger the handler.


http://api.jquery.com/live/ jQuery Live 
-- 
View this message in context: 
http://n4.nabble.com/jqery-not-getting-called-after-ajax-refresh-tp1872270p1906384.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: automatic palette sorting

2010-04-13 Thread robert.mcguinness


sorry for the late response.  in the middle of huge Wicket rewrite of old
JSP app.  Below is the example usage we use.  I doesn't sort onload since
that is done in the backend. Tested this in IE 8/7/6.  



Wicket.Palette.sortOptions=function(box) {
var data = new Array();
for(i = 0; i  box.options.length; i++) {   
data[i] = new Array();
data[i][0] = box.options[i].text;
data[i][1] = box.options[i].value; 
}

data.sort(function(a, b) {
var aa = a[0].toLowerCase();
var bb = b[0].toLowerCase();
return ((aa  bb) ? -1 : ((aa  bb) ? 1 : 0));  
}); 

for(i = 0; i  data.length; i++) {  
var op = new Option(data[i][0], data[i][1]);
box.options[i] = null;
box.options[i] = op;
}   

}

Wicket.Palette.remove=function(choicesId, selectionId, recorderId) {
var choices=Wicket.Palette.$(choicesId);
var selection=Wicket.Palette.$(selectionId);
if (Wicket.Palette.moveHelper(selection, choices)) {
var recorder=Wicket.Palette.$(recorderId);
Wicket.Palette.updateRecorder(selection, recorder); 

$(choices).change();
}
Wicket.Palette.sortOptions(choices);
}

Wicket.Palette.updateRecorder=function(selection, recorder) {   
recorder.value=;  
Wicket.Palette.sortOptions(selection);
for (var i=0;i
-- 
View this message in context: 
http://old.nabble.com/automatic-palette-sorting-tp28096974p28238166.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: automatic palette sorting

2010-03-31 Thread robert.mcguinness

not sure if this is the best solution but this is how we solved it (basically
customized the Palette component to fit our needs).


in palette.js include the following function and call in
Wicket.Palette.updateRecorder and Wicket.Palette.remove

Wicket.Palette.sortOptions=function(box) {
var data = new Array();
for(i = 0; i  box.options.length; i++) {   
data[i] = new Array();
data[i][0] = box.options[i].text;
data[i][1] = box.options[i].value; 
}

data.sort(function(a, b) {
var aa = a[0].toLowerCase();
var bb = b[0].toLowerCase();
return ((aa  bb) ? -1 : ((aa  bb) ? 1 : 0));  
}); 

for(i = 0; i  data.length; i++) {  
var op = new Option(data[i][0], data[i][1]);
box.options[i] = null;
box.options[i] = op;
}   


}
-- 
View this message in context: 
http://old.nabble.com/automatic-palette-sorting-tp28096974p28097306.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



Re: Wicket merchandise?

2008-08-20 Thread robert.mcguinness

I would dig a t-shirt.  The logo is wicked :) and I would get a couple for my
bosses.

- rob

-- 
View this message in context: 
http://www.nabble.com/Wicket-merchandise--tp19066811p19068428.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ModificationWatcher - Cannot track modifications to resource

2008-02-29 Thread robert.mcguinness

I have a class = public class WorkspaceResourceStream extends
org.apache.wicket.util.resource.AbstractResourceStream

and wicket throws info message =15:58:03.004 [http-8080-3] INFO 
o.a.w.util.watch.ModificationWatcher - Cannot track modifications to
resource

I understand its just informational, but what exactly is Wicket trying to
track?  How can I suppress the message (besides changing the log level).  

Any help would be appreciated.

- rob
-- 
View this message in context: 
http://www.nabble.com/ModificationWatcher---Cannot-track-modifications-to-resource-tp15767480p15767480.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wicket for beginners?

2008-02-21 Thread robert.mcguinness


tdope21 wrote:
 
 
 I am a fairly new developer and I'm going to be using Wicket on and
 upcoming project. Are there any materials for beginners out there covering
 Wicket? 
 
 
 Tony
 

http://www.manning.com/dashorst/ Wicket in Action  - Excellent Book.  Also,
download the examples of the Apache site and you can get will get a good
feel for the framework.
-- 
View this message in context: 
http://www.nabble.com/Wicket-for-beginners--tp15618724p15618951.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where to find the Wicket DTD file?

2008-02-21 Thread robert.mcguinness


MYoung wrote:
 
 Is it available somewhere?  I need it for validation in the Eclipse
 Amsteras HTML editor and to get rid of all its warning about wicket tags
 in html file.
 

...place the following in your HTML template...

html xmlns:wicket=http://wicket.sourceforge.net/;
xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en

...this should remove the warnings in Eclipse.  

-- 
View this message in context: 
http://www.nabble.com/Where-to-find-the-Wicket-DTD-file--tp15618525p15619562.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness

As I've stated before in a previous post, I work a for a company that
develops software for the health care industry.  It was a battle between
JSF/Seam and Wicket as the framework of choice for the rewrite of the
company's portal.  After a whitepaper written by a colleague of mine that
compared the two implementations, Wicket was the clear winner. (I also
presented a demo of the Wicket framework to the team a couple months back).

I'd like to thank the authors of the framework for building such a fine
tool.  After years of struts development, developing web applications with
Wicket is a breath of fresh air.  Keep up the fine work.

I'll update this forum with our experience in developing/deploying web apps
using Wicket.

- rm3 
-- 
View this message in context: 
http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14988751.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: We are adopting Wicket in our Organization

2008-01-20 Thread robert.mcguinness


igor.vaynberg wrote:
 
 it would be great if we could see the whitepaper :)
 
 -igor
 

I'll see what I can do.

- rm3
-- 
View this message in context: 
http://www.nabble.com/We-are-adopting-Wicket-in-our-Organization-tp14988751p14989916.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: New MEAP content for Wicket in Action available

2007-11-07 Thread robert.mcguinness

Just bought the pdf book and it has been an excellent read so far.  Kudos for
the good work.  Can't wait for the rest of the chapters.

- rm3


Martijn Dashorst wrote:
 
 Last friday two new chapters of the upcoming Wicket in Action have
 been released through  the Manning early access program.
 
 This release concludes the first part of the book: Getting started
 with Wicket. The chapters now available are:
 
  1. What is Wicket? (FREE!)
  2. The architecture of Wicket (new)
  3. Setting up a Wicket project
  4. Building a cheesy Wicket application (new)
 
 We hope you will enjoy these additional chapters and we are working
 hard to get the other chapters available asap.
 
 MEAP subscribers for Wicket in Action should have recieved a message
 with the download link for their personal copy. If you have not
 subscribed to the MEAP, and are anxious to see what this book is
 about, you can download chapter 1 at no cost, nor any form of
 registration. Just visit:
 
 http://manning.com/dashorst
 
 Best regards,
 
 Martijn Dashorst
 
 -- 
 Wicket joins the Apache Software Foundation as Apache Wicket
 Apache Wicket 1.3.0-beta2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/New-MEAP-content-for-Wicket-in-Action-available-tf4335090.html#a13640388
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Presented Wicket to my Company...

2007-09-28 Thread robert.mcguinness

Thanks you and everybody for all the responses.  I will be referencing these
emails when I argue my point.  I'm pushing Wicket as the framework of choice
and have already convinced the developers and two of the architects.  I just
got to get the managers on my side.  I will keep everyone posted.  Thanks
again, much obliged.

- rm3


gumnaam wrote:
 
 Well here's our story, if it helps you.
 
 Traditionally we had a JSP+Struts+EJB2 model for all our projects.
 
 For our current project we decided to jump on the JEE5 bandwagon, and
 started out with JSF+EJB3 (SLSB)+ JPA,
 
 Now JSF and JSPs don't mix well, so we choose Facelets, and instead of 
 struts we
 decided to use Seam, as that was the only available glue between the Web 
 and EJB tier.
 
 So we had to learn JSF, Seam, Facelets, EJB3 and JPA. Now seam is no 
 good without
 Stateful Session Beans so we had to change our SLSBs to Stateful Session 
 Beans, and
 we had all sort of problems with Extended Persistence Context, not to 
 mention, most developers
 hated Seam as it was very buggy in those days (late 2006, early 2007).
 We also had a remote EJB3 API layer, and JPA managed entities 
 (especially the ones with
 lazy loading relationships) don't mix too well with remoting.
 
 And even after learning all these new technologies, our web pages, were 
 still lacking all the
 fancy AJAX stuff. Now we had to learn Icefaces or ajax4jsf .
 
 Every body hated every aspect of this development model.
 
 Now we have a much saner development environment. Wicket + EJB3 (bcoz we 
 still need remoting) +
 Spring + iBatis. If we didn't need that EJB remoting layer I would drop 
 EJB3 like a hot potato.
 
 My advice, don't worry about the industry standard thing, if you have 
 good developers ,
 then go with Wicket.
 
 The first time I hooked up AjaxFallBackDefaultDataTable with my Spring 
 DAO + iBatis, It nearly
 brought tears to my eyes. Using iBaits I am able to do 
 sorting,filtering,paginating all in the Database,
 (as it should be done, instead of storing huge datasets in memory and 
 doing it in code), and the
 DataTable Component gives me all the hooks to plug this in so smoothly. 
 Can't think how I would
 have managed this with JSF and JPA.
 
 So use Wicket for Web and iBatis for ORM. :)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 robert.mcguinness wrote:
 ...to tell you the truth, it impressed the developers but I didn't get
 that
 feeling from the top brass.  I am pretty sure we will move towards
 Seam/JSF/Facelets (we have a presentation on that tech next week given by
 another developer) since it is standard.

 Has anyone here worked with the Seam tech?  All the examples I have seen
 (including Facelets) is nothing but tag soup with scriptlets in the page
 (albeit small).  The configuration for a Seam project seems like a pain
 and
 was also told that the JSF/Seam/Faclets jsp pages can be previewed in a
 browser (something I thought was so clever about Wicket html pages...and
 I
 was under the impression that Wicket was the only tech that allowed true
 separation of concerns; allowing the web designer to work independenly of
 the programmer with no duplication of work between the two).  Maybe I'm
 blind to Wicket and I'm overlooking Seam and the techs related to it?  

 I've worked with Freemarker and Struts before and Wicket feels like
 natural web development.  I thought I covered all the great concepts
 about
 Wicket: Ajax, Templating, Inheritance, Reusable Components, OO
 Concepts…etc…

 Bah…just venting.  I’m going to have to win the votes of the developers. 
 I’ll keep everyone posted.  Thanks amigos!

 - rm3

   
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Presented-Wicket-to-my-Company...-tf4532130.html#a12951135
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Presented Wicket to my Company...

2007-09-27 Thread robert.mcguinness

...to tell you the truth, it impressed the developers but I didn't get that
feeling from the top brass.  I am pretty sure we will move towards
Seam/JSF/Facelets (we have a presentation on that tech next week given by
another developer) since it is standard.

Has anyone here worked with the Seam tech?  All the examples I have seen
(including Facelets) is nothing but tag soup with scriptlets in the page
(albeit small).  The configuration for a Seam project seems like a pain and
was also told that the JSF/Seam/Faclets jsp pages can be previewed in a
browser (something I thought was so clever about Wicket html pages...and I
was under the impression that Wicket was the only tech that allowed true
separation of concerns; allowing the web designer to work independenly of
the programmer with no duplication of work between the two).  Maybe I'm
blind to Wicket and I'm overlooking Seam and the techs related to it?  

I've worked with Freemarker and Struts before and Wicket feels like
natural web development.  I thought I covered all the great concepts about
Wicket: Ajax, Templating, Inheritance, Reusable Components, OO Concepts…etc…

Bah…just venting.  I’m going to have to win the votes of the developers. 
I’ll keep everyone posted.  Thanks amigos!

- rm3

-- 
View this message in context: 
http://www.nabble.com/Presented-Wicket-to-my-Company...-tf4532130.html#a12933638
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reference to Image in CSS

2007-09-26 Thread robert.mcguinness

Amigos:

I know this questions has been asked before, but maybe with Wicket 1.3 there
is a different solution (or maybe someone can dumb down the explanation).  I
have implemented a custom resource locator for the html files in Wicket a la
Wiki example.  Basically, I strip the prefix com.company.web from the
package of the java file and then reference the html using the remaining
string ex: /common/BaseLayoutPage.html.  My web application structure is
below.  In my css, I have a reference to a background image ex:
background-image: url(images/background.gif) for one of my div elements in
the BaseLayoutPage.html markup.  I load the css from within the
BaseLayoutPage.java using the command
add(HeaderContributor.forCSS(css/poc.sss));, but the background image does
not show.  If I preview the page with the browser I see the the page
rendered just fine, but when the page is rendered via Wicket the background
image does not show (yet the rest of the css is applied).  Any suggestions
on how to reference an image not found in the src directory of the java
files?  Gracias!

Rob

/***Web App Structure***/

src
- com.company.web.common.BaseLayoutPage.java
web
- js
- css
- poc.css
- images
- background.gif
- WEB-INF
- html
- common
BaseLayoutPage.html

-- 
View this message in context: 
http://www.nabble.com/Reference-to-Image-in-CSS-tf4523606.html#a12905253
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reference to Image in CSS

2007-09-26 Thread robert.mcguinness

Nevermind.  Eclipse was not publishing the image to the exploded web app in
Apache.  Once I manually added the image the program worked accordingly.

- rm3



robert.mcguinness wrote:
 
 Amigos:
 
 I know this questions has been asked before, but maybe with Wicket 1.3
 there is a different solution (or maybe someone can dumb down the
 explanation).  I have implemented a custom resource locator for the html
 files in Wicket a la Wiki example.  Basically, I strip the prefix
 com.company.web from the package of the java file and then reference the
 html using the remaining string ex: /common/BaseLayoutPage.html.  My web
 application structure is below.  In my css, I have a reference to a
 background image ex: background-image: url(images/background.gif) for one
 of my div elements in the BaseLayoutPage.html markup.  I load the css from
 within the BaseLayoutPage.java using the command
 add(HeaderContributor.forCSS(css/poc.sss));, but the background image
 does not show.  If I preview the page with the browser I see the the page
 rendered just fine, but when the page is rendered via Wicket the
 background image does not show (yet the rest of the css is applied).  Any
 suggestions on how to reference an image not found in the src directory of
 the java files?  Gracias!
 
 Rob
 
 /***Web App Structure***/
 
 src
 - com.company.web.common.BaseLayoutPage.java
 web
 - js
 - css
 - poc.css
 - images
 - background.gif
 - WEB-INF
 - html
 - common
 BaseLayoutPage.html
 
 

-- 
View this message in context: 
http://www.nabble.com/Reference-to-Image-in-CSS-tf4523606.html#a12906017
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm giving a Wicket Lunch 'n Learn at my company on the 27th

2007-09-13 Thread robert.mcguinness

I have never used JSF/Seam, but some of my colleagues have and we have had
compare/contrast conversations about Wicket and Seam.  Point being, both
parties agreed the Wicket approach felt like a natural way to program web
applications.

- rm3


Korbinian Bachl wrote:
 
 Short non-wicket question: you mentioned JSF/ SEAM package - what are 
 the pros and cons for you for this?
 
 Regards,
 
 Korbinian
 
 robert.mcguinness schrieb:
 I finally got a confirmation from my manager to go ahead with the
 presentation.  I'm far from a Wicket expert, but I really like the
 framework
 and hopefully I will do a good enough job to do the framework some
 justice. 
 I'll probably be on this board often to get assistance while I build my
 demo
 so please excuse any rookie questions I may ask.
 
 If the presentation goes well, the company is willing to build its
 flagship
 web application using Wicket.  If not, we (developers) are stuck going
 with
 JSF/Seam ugh!.  Let's hope for the best!
 
 - rm3
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/I%27m-giving-a-Wicket-Lunch-%27n-Learn-at-my-company-on-the-27th-tf4433047.html#a12654367
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I'm giving a Wicket Lunch 'n Learn at my company on the 27th

2007-09-12 Thread robert.mcguinness

I finally got a confirmation from my manager to go ahead with the
presentation.  I'm far from a Wicket expert, but I really like the framework
and hopefully I will do a good enough job to do the framework some justice. 
I'll probably be on this board often to get assistance while I build my demo
so please excuse any rookie questions I may ask.

If the presentation goes well, the company is willing to build its flagship
web application using Wicket.  If not, we (developers) are stuck going with
JSF/Seam ugh!.  Let's hope for the best!

- rm3
-- 
View this message in context: 
http://www.nabble.com/I%27m-giving-a-Wicket-Lunch-%27n-Learn-at-my-company-on-the-27th-tf4433047.html#a12647254
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]