Hi Josh,
Answers inline
>
> On WiQuery, how do i set component configuration parameters? How do modify
> the CSS?
Many "components" have setters and getter for their properties. E.g.
public DialogPanel(String id) {
super(id);
Dialog dialog = new Dialog("dialog");
dialog.setAutoOpen(true);
dialog.setWidth(500);
dialog.setHeight(500);
dialog.setResizeStopEvent(new JsScopeUiEvent(){
private static final long serialVersionUID = 1L;
@Override
protected void execute(JsScopeContext scopeContext) {
scopeContext.append(DialogPanel.this.layout.statement().render(true));
}
});
dialog.setModal(true);
add(dialog);
.................
}
<wicket:panel>
<div wicket:id="dialog" title="Modal Dialog!">
<div wicket:id="layout" style="width: auto; height: auto;">
</div>
</div>
</wicket:panel>
In the example above: what is stopping you from adding your own CSS
class to dialog div and on DialogPanel add a references to the CSS
file adding the custom CSS properties you want? Or even overriding
JQuery UI CSS...
>If i find an nice jquery component elsewhere eg the tooltip or the
> grid or even the jquery UI Layout, how do i integrate it? I have a feeling
> that i will have more control and have access to more jquery features if i
> use Jquery directly. I only wish i could add jquery event as behaviours the
> way i do with native javascript events.
IMHO it is very easy to integrate third party jquery plugins as
WiQuery plugins. That's not very much different from integrating other
JS libraries as Wicket components. Do you need examples on how to
integrate new components and provide server side handling of events?
Take a look at [1]-[4]....
In my opinion there is no need to duplicate the Job already done by
wiQuery developers: I think that's what you will end up doing if you
start implementing all those things on your own;-). As said: if you
have concrete examples of things you want to do and not know how to
achieve them, ask on jquery forum that for sure someone will answer
with a concrete proposal... and if it a feature the integrations
misses it will for sure make it somehow into their implementation.
Best,
Ernesto
References,
1-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/wijqgrid/component/Grid.java
2-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/AjaxSlider.java
3-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/com/jquery/slider/test/SliderPanel.java
4-http://code.google.com/p/wijqgrid/source/browse/trunk/wijqgrid/src/main/java/org/odlabs/wiquery/plugin/layout/Layout.java
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]