Re: Wicket for non Web/AJAX developers?

2009-08-03 Thread CrocodileShoes

I'm sure he was just using WTF as a reference to his own reaction when
digging down into the deeper classes and not as a criticism.  In fact I
think he has said this.

Using Google is fine but Google sometimes refers you forums and mailing
lists where experts can help.

Anyway, the wicket in action book is very good, I would definitely recommend
reading that.  I understand where you are coming from but like others have
said I don't think there is a single resource for getting you up to speed
with the foundations of web development.  The resources you are looking for
are just books on Javascript, dom, ajax, css etc.

If you have a requirement like I want to change style of my table you
should be able to find enough info in the wiki which would lead you to the
Attribute Modifier.  There is a How to.. section :)

Stick with it!



igor.vaynberg wrote:
 
 whenever i try to be courteous i also usually try to start by
 including at least one wtf in my question :)
 
 -igor
 
 On Sun, Aug 2, 2009 at 4:48 PM, Erik Posteriksen...@gmail.com wrote:
 Hi,

 I'm sorry to see a couple of somewhat uncourteous responses in this
 thread. The guy is just asking a question that might well benefit
 others who are interested in Wicket too. Coming from e.g. Swing, there
 is indeed quite a lot of stuff to grok, and things can seem
 overwhelming, so why not just try and help each other out?

 That said, I would agree that becoming familiar with some of the
 basics of web related work isn't going to hurt, especially given the
 ubiquity of the web as a UI platform these days. If you want to do
 without that, things like Flex, or perhaps even WebOnSwing and POJO
 Application Server come to mind.

 Cheers,
 Erik


 On Mon, Aug 3, 2009 at 1:33 AM, shetcsh...@bellsouth.net wrote:

 I guess the name LazyBoy says it all.
 --
 View this message in context:
 http://www.nabble.com/Wicket-for-non-Web-AJAX-developers--tp24780111p24783233.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



 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Wicket-for-non-Web-AJAX-developers--tp24780111p24787871.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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?

2009-07-24 Thread CrocodileShoes

Thanks Daniel,

I've just tried this and it's not worked.  Obviously it's a slightly
different use case, that is, changing tabs and popping up a modal window but
I'd hoped it would work.

It turns out that the stopped flag is not actually set to true.  That's why
your method doesn't work.  When I change tabs the timer is still running and
when it fires I get the following message:

INFO: Ajax GET stopped because of precondition check,
url:?wicket:interface=:0:tabs:panel:logOutput::IActivePageBehaviorListener:0:-1wicket:ignoreIfNotActive=true



dtoffe wrote:
 
 Hi,
 
 Also take a look at this thread:
 
  
 http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-ModalWindow-to22202102.html
 
 I don't mean it's a correct or better solution, but so far it works
 for me.
 
 Hth,
 
 Daniel
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24643947.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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?

2009-07-24 Thread CrocodileShoes

Hi,

No it's definitely not that.  I tried your class to be sure and it still
doesn't work.

I've done some more debugging with Firefox's Firebug and discovered that
when I switch back to the tab with the updating behaviour it does not
contain the evaluate part.

I'll print this, it's easier:

This is in the response after I switch to the self updating tab for the
first time:
/componentevaluate![CDATA[setTimeout(var
wcall=wicketAjaxGet('?wicket:interface=:5:tabs:panel:logOutput::IBehaviorListener:0:-1',null,null,
function() {var c = Wicket.$('logOutput611'); return typeof(c) !=
'undefined'  c != null}.bind(this));,
5000);]]/evaluate/ajax-response

Now, if I navigate away, and stay away (on another tab), until the timer
fires it fails the precondition check.  When I go back to the self updating
tab the response contains:
/component/ajax-response

There is no evaluate section.

The  renderHead() seems like it is responsible for this, as follows:

if (!stopped  (!headRendered || !request.isAjax())) {
headRendered = true;
response.renderOnLoadJavascript(getJsTimeoutCall(updateInterval));
}

Now, stopped is definitely false so one of the other if-conditions must be
responsible.  I'll do some more work on this now.

Thanks for the help so far.


dtoffe wrote:
 
 Hi,
 
 First, let's see if we are talking about the same code, here is the
 actual code I use:
 
 
 SNIP
 
 
 If I recall correctly, I had to make a small change in other method, I
 believe it's in renderHead() or in respond(), please check that, I'm in a
 hurry right now.
 
 hth,
 
 Daniel
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24645797.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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?

2009-07-24 Thread CrocodileShoes

Yeah, the headRendered flag is still set to true so the JsTimeout call is
never rendered.  I'm not sure why it's was removed in the first place,
perhaps it's something to do with the precondition?


CrocodileShoes wrote:
 
 Hi,
 
 No it's definitely not that.  I tried your class to be sure and it still
 doesn't work.
 
 I've done some more debugging with Firefox's Firebug and discovered that
 when I switch back to the tab with the updating behaviour it does not
 contain the evaluate part.
 
 I'll print this, it's easier:
 
 This is in the response after I switch to the self updating tab for the
 first time:
 /componentevaluate![CDATA[setTimeout(var
 wcall=wicketAjaxGet('?wicket:interface=:5:tabs:panel:logOutput::IBehaviorListener:0:-1',null,null,
 function() {var c = Wicket.$('logOutput611'); return typeof(c) !=
 'undefined'  c != null}.bind(this));,
 5000);]]/evaluate/ajax-response
 
 Now, if I navigate away, and stay away (on another tab), until the timer
 fires it fails the precondition check.  When I go back to the self
 updating tab the response contains:
 /component/ajax-response
 
 There is no evaluate section.
 
 The  renderHead() seems like it is responsible for this, as follows:
 
 if (!stopped  (!headRendered || !request.isAjax())) {
 headRendered = true;
 response.renderOnLoadJavascript(getJsTimeoutCall(updateInterval));
 }
 
 Now, stopped is definitely false so one of the other if-conditions must be
 responsible.  I'll do some more work on this now.
 
 Thanks for the help so far.
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24646324.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: Is it possible to restart an AjaxSelfUpdatingBehaviour after it has been stopped?

2009-07-23 Thread CrocodileShoes

Well I was adding this behaviour in the constructor of the Panel, i.e. 

this.add(new AjaxSelfUpdatingBehaviour(...));

which I assumed resulted in the same effect.

I have just changed it to the following (see below) and now get a null
pointer when the behaviour tries to update the panel after I switch to
another one, i.e. when the panel is no longer visible.

Note, I am storing the panels in a List (tabsList) to prevent them being
recreated every time a user switches tabs.  I did this to preserve the
state.  Perhaps this is causing some problems.

So to recap, this now throws a null pointer (at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96)
presumably because the panel isn't in the markup to update.

tabs.add(new AbstractTab(new Model(Administration)) {
  public Panel getPanel(String panelId) {
if (tabsList.containsKey(Administration)) {
  return tabsList.get(Administration);
}
else {
  AdminPanel adminPanel = new AdminPanel(panelId);
  adminPanel.setOutputMarkupPlaceholderTag(true);
  adminPanel.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
  tabsList.put(Administration, adminPanel);
  return adminPanel;
}
  }
});



igor.vaynberg wrote:
 
 cant you add the behavior directly to the panel?
 
 -igor
 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24627960.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: linking to a text ResourceReference

2009-07-13 Thread CrocodileShoes

I found the problem.  It seems the url must be encoded otherwise the OFC
cannot find the data file.  I don't have an account on apache yet so I can't
update the wiki.

private String getUrlForJson() {

CharSequence dataPath = 
RequestCycle.get().urlFor(OpenFlashChart.this,
IResourceListener.INTERFACE);

//# ADDED THIS ###
try {
dataPath = URLEncoder.encode(dataPath.toString(), 
UTF-8);
}
catch (UnsupportedEncodingException e) {
LOGGER.error(Error encoding dataPath for Chart Json 
data file.  Details:
 + e);
}
//

return RequestUtils.toAbsolutePath(dataPath.toString());
}
-- 
View this message in context: 
http://www.nabble.com/linking-to-a-text-ResourceReference-tp19753402p24458873.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: linking to a text ResourceReference

2009-07-10 Thread CrocodileShoes

Hello,

I'm trying to get SWFObject and Open Flash Charts running in my web app.

I'm receiving the following error where the chart should be:

Open Flash Chart

JSON Parse Error [Syntax Error]
Error at character 0, line 1:

-2: undefined-1: undefined0: !DOCTYP


I'm sure this is generated by the ofc.swf but i can't figure out why!  I'm
ruling out each component one at a time so my question is could this be
related to SWFObject or the OpenFlashChart classes?
-- 
View this message in context: 
http://www.nabble.com/linking-to-a-text-ResourceReference-tp19753402p24431195.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: LinkTree : when using a refreshing model, expanding/collapsing nodes not working anymore

2009-06-19 Thread CrocodileShoes

Did you ever get anywhere with this?  I have the same problem where I refresh
the tree from the source data each time getObject() is called, that is, when
a user selects a node.  It just feels wrong but I can't get it to work any
other way.

I am persisting selected nodes by implementing my own ITreeState then
overriding isNodeSelected(Object node) to check for the node in the source
data.

I think this methodology is what is preventing the expansion and collapsing
of node to fail (I think it's actually working but the tree rebuild is
refreshing it immediately)

Cheers,
Mark


LiveNono wrote:
 
 hi
 
 I didn't manage to sleep this night so I did a quickstart project with my
 issue and then... realised how stupid I've been : when refreshing the tree
 I
 loose the data about what to open/close, hence my issue.
 
 I don't know yet the solution I'll follow, hesitating between informing
 the
 user and refreshing the whole tree as soon as data behind change or keep
 track of the tree state in some wrappers around my data.
 
 Time'll tell, and hopefully my brain will be faster next time :)
 
 Side node : I'm once again amazed by the flexibility of wicket. It's
 really
 able to fit anyone needs.
 
 The only issue with this tree, in my case, is that I find the code is a
 bit clumsy. First I affect the data to the nodes (using recursion), and
 then, when the linkTree is created, I assign some state to it according to
 some specific nodes I've just added (like which one will be first the
 first
 one, or to expand some nodes in order to have one pre selected), being
 kind
 of required to keep track of them in between.
 
 thanks again
 nono
 
 NB : I hope it doesn't seem like the mailing list is my teddy bear, even
 if
 the fact is that I spend a lot of time before asking trying to figure out
 by
 myself...
 
 2009/4/15 Live Nono liven...@gmail.com
 
 Small extra precision : using
 tree.getTreeState().expandAll()/collapseAll()
 works fine...

 2009/4/15 Live Nono liven...@gmail.com

 Hi

 I've another issue with the LinkTree.

 Up to recently, it was working all fine. I was creating the LinkTree
 this
 way :
 new LinkTree(tree, getTreeModel())

 But then I wanted the model to be refreshed at each request.  I tried
 with
 many refreshing models like for example new LinkTree(tree, new
 LoadableTreeModel(rootId)) or new LinkTree(tree, new
 PropertyModel(this,
 TreeModel))...

 However, each time, the expanding/collapsing behavior doesn't work
 anymore. When I click on the + or - nothing happens.

 Any help regarding what to do/where to look is highly welcomed !

 thanks in advance
 nono



 
 

-- 
View this message in context: 
http://www.nabble.com/LinkTree-%3A-when-using-a-refreshing-model%2C-expanding-collapsing-nodes--not-working-anymore-tp23064351p24113088.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: Pimp your Wicket app!

2009-05-07 Thread CrocodileShoes


Name of your application: Knowledge management research project for ESA -
Name not yet decided!
Intranet or internet: [X] intranet [ ] internet 
Public or private site: [ ] public [X] private [ ] both 

Average number of concurrent users: Not sure yet - We are deploying for the
Rosetta mission soon (50 users) to get feedback.
Max number of concurrent users you have encountered: N/A - early days!
Average number of Wicket served requests per (business)day: N/A - early
days!

Number of servers running your Wicket frontend code: 1
Number of cores/CPUs per server: Virtual server
Number of JVMs running on your server for Wicket frontend code: 1
Do these JVMs run in a cluster? [ ] yes [X] no 

The project is a technical research project so it won't go live.  There are
possibilities for this down the line though depending upon the results.

The prototype was demonstrated at ESAW http://www.congrex.nl/09c25/
yesterday and the Wicket front-end generated a fair bit of interest!  It's a
testament to Wicket because I am completely new to web development (C++ java
app background) and have no real experience with Javascript/HTML/CSS.

Thanks for a great Framework!
-- 
View this message in context: 
http://www.nabble.com/Pimp-your-Wicket-app%21-tp23422714p23423309.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: Dynamically update TreeTable model

2009-04-24 Thread CrocodileShoes

Thanks for the info, James.  I've read through the api and the tutorial on
the sun site but am not much closer to finding a solution.

Perhaps if I explain the full case somebody might have some advice.  I'm
also considering whether a tree is the best structure.

I have a wicket model that wraps up a an object that has all the information
to be displayed in the tree.  It's easy enough to build a tree and display
this to the user from this model.

My problem is updating it after a user click.  When a node is selected it
triggers a data update from database which updates the object the wicket
model wraps and therefore means the tree is completely different.  It's
exactly what happens when you narrow down your searches on an online store
or ebay.  So it's not a case of inserting or removing a node or two because
typically the only node that stays the same is the selected one.



James McLaughlin-3 wrote:
 
 You should not recreate the TreeModel and for most cases DefaultTreeModel
 is
 what you want. If you are adding a node, add it with:
 
 http://java.sun.com/javase/6/docs/api/javax/swing/tree/DefaultTreeModel.html#insertNodeInto(javax.swing.tree.MutableTreeNode,%20javax.swing.tree.MutableTreeNode,%20int)
 
 which will notify all the listeners, such as the wicket tree
 
 On Wed, Apr 22, 2009 at 10:56 AM, CrocodileShoes
 mark.do...@logica.comwrote:
 

 I have the same problem but with a different tree use case.  I'm
 implementing
 a facet search which needs to update the tree after a user selects a tree
 node (facet).  If I recreate the tree model like you were doing it
 doesn't
 persistent the selection, obviously.

 I'm not experienced with Swings trees but I think I may have to implment
 my
 own TreeModel.

 Does anybody have the solution for this?


 jchappelle wrote:
 
  I have a TreeTable and I have links within it. When a user clicks a
 link
  they are presented with a modal window with a FileUpload component in
 it.
  When they upload a new file and click close on the modal window, the
  TreeTable is not updated. I tried to use a LoadableDetachableModel that
  returns a DefaultTreeModel but if I do that then every time I click to
  expand a folder node the tree refreshes the model and the tree state
 and
  the icon doesn't expand(i'm guessing it's because the treestate gets
  recreated?).
 
  I searched but couldn't find anyone with this specific problem in the
  forum. Can someone please help?
 
  I am using wicket 1.3.4.
 
  Thanks,
 
  Josh
 

 --
 View this message in context:
 http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p23175533.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


 
 
 -- 
 Jim McLaughlin
 Lead Software Engineer
 Stonewater Control Systems
 (o) 847.864.1060 x107
 (c) 773.416.0994
 
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p23213059.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: Dynamically update TreeTable model

2009-04-24 Thread CrocodileShoes

I've finally got this working by extending DefaultTreeState and overriding
the isNodeSelected to calculate the selection based upon the wicket model
containing the data.  This makes more sense since the tree's state is
representative of the actual data now!
-- 
View this message in context: 
http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p23220521.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: Dynamically update TreeTable model

2009-04-22 Thread CrocodileShoes

I have the same problem but with a different tree use case.  I'm implementing
a facet search which needs to update the tree after a user selects a tree
node (facet).  If I recreate the tree model like you were doing it doesn't
persistent the selection, obviously.

I'm not experienced with Swings trees but I think I may have to implment my
own TreeModel.

Does anybody have the solution for this?


jchappelle wrote:
 
 I have a TreeTable and I have links within it. When a user clicks a link
 they are presented with a modal window with a FileUpload component in it.
 When they upload a new file and click close on the modal window, the
 TreeTable is not updated. I tried to use a LoadableDetachableModel that
 returns a DefaultTreeModel but if I do that then every time I click to
 expand a folder node the tree refreshes the model and the tree state and
 the icon doesn't expand(i'm guessing it's because the treestate gets
 recreated?). 
 
 I searched but couldn't find anyone with this specific problem in the
 forum. Can someone please help?
 
 I am using wicket 1.3.4.
 
 Thanks,
 
 Josh
 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-update-TreeTable-model-tp21056846p23175533.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: Checkbox tree component

2009-04-17 Thread CrocodileShoes

Hi guys,

I've been fighting with trees for a week now and nearly have it doing what I
require.  However there is one thing I can't figure out.

-My tree is build using data from an external source.
-When I click a checkbox in the tree my tree model is completely
restructured based upon data from an external source.
-The tree is rebuilt from the root node downwards and the treemodel updated
via a call to it's setRoot() using the new root as the argument.

What I want is for the node that was checked to stay checked, that is,
persist across the tree update.  This obviously happens by default, that is,
without rebuilding the from the root node, but I don't know how to update
the tree without doing that.

Any ideas?



-- 
View this message in context: 
http://www.nabble.com/Checkbox-tree-component-tp13433102p23098936.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



AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread CrocodileShoes

Can I do this?

MarkupContainer facetNameLink = new AjaxLink(facetNameLink) {
  @Override
  public void onClick(AjaxRequestTarget target) {
// Get the dataprovider's query response
SolrQuery query = responseModel.getQuery();
// Set the query back to the beginning.
query.setStart(0);
// Add the clicked facet as a filter query on the solr query
query.addFilterQuery(ffcount.getAsFilterQuery());

this.add(new SimpleAttributeModifier(id, facetFieldTitleSelected));
target.addComponent(this);
this.setResponsePage(getPage());
  }
}.add(new Label(facetName, ffcount.getName()));

facetNameLink.setOutputMarkupId(true);


Nothing seems to change in the markup so i'm doing something stupid
somewhere.  Note everything else works as expected apart from the
AttributeModifier.

Cheers
-- 
View this message in context: 
http://www.nabble.com/AttributeModifier-in-AjaxLink%27s-onClick.--Possible--tp22697831p22697831.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: AttributeModifier in AjaxLink's onClick. Possible?

2009-03-25 Thread CrocodileShoes

Ah Ok.  After a quick search through the wiki I came up with this:

@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
  return new AjaxCallDecorator() {
public CharSequence decorateScript(CharSequence script) {
  // add Javascript to change id here
  return  + script;
}
  };
}

Now I have to look up the Javascript.

Thanks, Nino.
-- 
View this message in context: 
http://www.nabble.com/AttributeModifier-in-AjaxLink%27s-onClick.--Possible--tp22697831p22698229.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: best way to add tooltips in wicket

2009-03-25 Thread CrocodileShoes

I've basically followed the same route as you.  I think i'll try mootips as
well.

Looks like there is a Maven repo here:
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.3.0-SNAPSHOT/


RoyBatty wrote:
 
 Right, thanks. I did find that one, but decided to try Dojo out first (it
 looked pretty simple from the examples). Dojo, it seems, has no build for
 1.4 in their repository, and i can't build it myself for various reasons.
 
 So i guess i'll have a go at minis... cheers.
 

-- 
View this message in context: 
http://www.nabble.com/best-way-to-add-tooltips-in-wicket-tp22697930p22698603.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: best way to add tooltips in wicket

2009-03-25 Thread CrocodileShoes

Wow, it really is that easy!
-- 
View this message in context: 
http://www.nabble.com/best-way-to-add-tooltips-in-wicket-tp22697930p22699043.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: best way to add tooltips in wicket

2009-03-25 Thread CrocodileShoes

Does anybody have any thoughts or preferences with regards to Mootips and
Prototips?

I've briefly glanced at both and Prototip seems to offer more settings, e.g.
sticky tips, close buttons etc
-- 
View this message in context: 
http://www.nabble.com/best-way-to-add-tooltips-in-wicket-tp22697930p22703439.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: best way to add tooltips in wicket

2009-03-25 Thread CrocodileShoes

I know on mootips you can create a Moosettings object where you can specify
the css class.  You can then add those settings to the mootip.

I did a quick experiment before and it seemed change the style to the new
class defined in my apps css file.

Surely Prototips has something similar?
-- 
View this message in context: 
http://www.nabble.com/best-way-to-add-tooltips-in-wicket-tp22697930p22704804.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



Wicket stuff Dojo and Wicket 1.4rc2 compatibilty

2009-03-23 Thread CrocodileShoes

Am I correct in thinking that there isn't a maven release for Dojo that is
compatible with Wicket 1.4?

From my quick searches and the wicket-stuff wiki it looks like you have to
download the Dojo source and build it yourself in order to use it. 
Unfortunately my work proxy prevents this so I thought it was worth double
checking since this information can become quickly out of date.
-- 
View this message in context: 
http://www.nabble.com/Wicket-stuff-Dojo-and-Wicket-1.4rc2-compatibilty-tp22663191p22663191.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: How can I injecting a Springbean into a custom session.

2009-03-06 Thread CrocodileShoes

By the way is this safe to use in any Wicket component, for example, a Panel?

I can't think of any reason why not, but this is my first foray into web
development.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-inject-a-Springbean-into-a-custom-session.-tp22340379p22377028.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: How can I injecting a Springbean into a custom session.

2009-03-05 Thread CrocodileShoes

Thanks, Igor; this worked perfectly.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-injecting-a-Springbean-into-a-custom-session.-tp22340379p22350445.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



How can I injecting a Springbean into a custom session.

2009-03-04 Thread CrocodileShoes

Apologies if this is more of a Spring question than a Wicket question, I'm
just not sure.

Anyway, the problem.  

I have a custom session class which inherits form WebSession.  I've
overridden the WebApplication's newSession() method in order to return a new
instance of my custom session.  However I want my custom session to use a
Springbean but because the Spring container didn't create the custom session
object it can't inject the dependency.

Does anybody know how to get around this or if it's possible.  It could be
that my design is flawed ;D
-- 
View this message in context: 
http://www.nabble.com/How-can-I-injecting-a-Springbean-into-a-custom-session.-tp22340379p22340379.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



New Wicket user needs help working with models and displaying results

2009-01-30 Thread CrocodileShoes

Hello,

I've just started using Wicket and have managed to convince the management
that we should use it for our new project!  However, it's proving more
difficult for me to wrap my head around some of the concepts...yep the
models are one of them!

I have an object that is able to query a data source using a member field
and  then save the results in another member field.

The difficulty i'm having is getting this functionality to the user; I have
tried about 10 different methods so far and abandoned all of them.

Currently I have created a POJO that can talk to a server, query with a
keyword and store the results from the server.  I have also created a
CompoundProperyModel wrapped around the query object in my Panel.
i.e.
 this.queryModel = new
CompoundPropertyModelQueryService(this.queryService);

Implementing the query keyword was easy.  I created a Form on the panel and
then added a simple Wicket TextField bound to the objects member field via
the queryModel shown above.

The bit i'm struggling with is displaying the results.  I can't seem to use
a List view because the results aren't present when the page first loads up
because there hasn't been a query yet.  I think I need to look at
DataProviders but i'm really not sure.

Basically i'm looking for some pointers to set me off in the right
direction.  I have bought the Wicket in Action book if anybody want's to
point me at a specific section, my first read through didn't turn anything
up.

I feel like my understanding of Wicket is about to click into place but i'm
missing something.  Hopefully any pointers I get on here will help me over
the wall so to speak.

Cheers.
-- 
View this message in context: 
http://www.nabble.com/New-Wicket-user-needs-help-working-with-models-and-displaying-results-tp21750497p21750497.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: New Wicket user needs help working with models and displaying results

2009-01-30 Thread CrocodileShoes

I've figured it out.  I don't think it's very elegant but i'm sure I can
develop it as I learn more about Wicket.

I simply created a new property model around a results variable and created
a ListView with that model.  When the form is submitted it calls the service
to update the query.



-- 
View this message in context: 
http://www.nabble.com/New-Wicket-user-needs-help-working-with-models-and-displaying-results-tp21750497p21752333.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