Re: CSS reference order

2013-11-19 Thread mac
I have created my own reference and added this inside getDependencies method:

ListHeaderItem dependencies = new ArrayList();
dependencies.add( CssHeaderItem.forReference(
BootstrapCssReference.instance() ) );
return dependencies;

and it works.

Thanks for advice.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-reference-order-tp4662495p4662524.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



CSS reference order

2013-11-18 Thread mac
I have integrated in my application wicket-bootstrap library. I also have my
own bootstrap-override.css which is added in renderHead method as a
CssHeaderItem.
Wicket renders bootstrap-override reference first in a head section. How can
I change the reference order that my file will be loaded as the last one?

Thanks,
mac



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CSS-reference-order-tp4662495.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



gmap3 inside modal window

2013-03-26 Thread mac
Hi,
I'm showing google map component from wicketstuff gmap3 lib inside modal
window but map is only partially loaded and rest space is grey color.
I'tried calling resize event (no success):
google.maps.event.trigger(Wicket.maps[' + map.getMapId() + '], 'resize');

Thanks,
mac

P.S. My app is integtated with wicket bootsrap.






--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/gmap3-inside-modal-window-tp4657507.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 panel - call jQuery

2013-03-21 Thread mac
Hi,
I have a panel component containing
org.apache.wicket.extensions.markup.html.tabs.TabbedPanel(s):

Java (my component constructor):
ListTab tabs = new ArrayList();
...
add( new AjaxTabbedPanel( menu, tabs ) );

HTML:
div id=menu
   div class=tab-row
  ...
   /div
   div class=tab-panel
  ...
   /div
   ...
/div

I need to add a css class to tab-row and tab-panel selectors (by jQuery
I suppouse). 
I tried calling 
response.render( JavaScriptHeaderItem.forScript( $(#menu 
.tab-row).addClass(myClass);, someId ) );
inside myComponent#renderHead but without any success.

Maybe my way is not correct? Thanks for any help.

mac



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-call-jQuery-tp4657401.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 panel - call jQuery

2013-03-21 Thread mac
Thanks, it workes perfectly.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-panel-call-jQuery-tp4657401p4657404.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



Proper models approach

2013-03-13 Thread mac
Hi,
I have a wizard-like panel for gathering user input data. Panel is built
with base panel and replaceable steps panels (every step panel gathers
different data, last step stores it to DB).
What is best approach for using Wicket models? Should I create big wrapper
object containig all data, set it as default model (LDM) in base panel and
pass it to steps panels?

Thanks,
mac



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Proper-models-approach-tp4657211.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