I have been poking around and manage to get the slider out in the examples, however, it now slides out of the bar :P ... I hope to add more options though...
I am new to oss and scm in general so not sure how to apply a patch and don't want to break things. so I am attaching them in this email. hope it can find its way to the right position....
joshua
On 3/29/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
ok I will take a lookOn 3/29/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:Ok, just checked in some improvements. Slider still doesn't work for
me however. Joshua, if you are interested, please take a look at what
is in SVN now, and see if you can find what the problem is.
Thanks and have fun,
Eelco
On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> I didn't choose for that set implemention because I thought it would
> be useful to have an insertAt option.
>
> Eelco
>
>
> On 3/28/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
> > Use a LinkedHashSet to filter out double entries and keep order.
> >
> > Martijn
> >
> >
> > On 3/29/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:
> > >
> > Erm, actually I'm not there yet. I'll check in more in half an hour.
> >
> > Eelco
> >
> > On 3/28/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:
> > > That was because I used a set to filter double contributions. I
> > > changed this to list to guarantee order and added an additional method
> > > with an index argument to enable further tweaking if needed.
> > >
> > > Eelco
> > >
> > > On 3/28/06, Joshua Lim <[EMAIL PROTECTED]> wrote:
> > > > It seems that the slider is loading the *.js in some random order...
> > > > so YAHOO.js is loaded _after_ dom.js etc...which caused a YAHOO not
> > found
> > > >
> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class));
> > > >
> > > > I am not sure but I will attempt to get this going since I need this...
> > > >
> > > > 1/ is there a way to force the order in which which .js file is loaded
> > ... I
> > > > am
> > > > trying to load them manually ... seems too does not gaurantee the
> > order...
> > > >
> > > > add(HeaderContributor.forJavaScript(AbstractYuiPanel.class,
> > "YAHOO.js"));
> > > > add(HeaderContributor.forJavaScript (AbstractYuiPanel.class, "dom.js"));
> > > > ....
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> > --
> > Wicket 1.2 is coming! Write Ajax applications without touching _javascript_!
> > -- http://wicketframework.org
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
Index:
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
===================================================================
---
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
(revision 5159)
+++
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.java
(working copy)
@@ -32,6 +32,7 @@
import wicket.markup.html.WebMarkupContainer;
import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;
+import wicket.markup.html.image.Image;
import wicket.markup.html.internal.HtmlHeaderContainer;
import wicket.model.AbstractReadOnlyModel;
import wicket.model.IModel;
@@ -121,6 +122,10 @@
imageElement.add(new AttributeModifier("id", true,
new PropertyModel(this, "imageElementId")));
backgroundElement.add(imageElement);
+
+ /* add the thumb img resoruce */
+ imageElement.add(new Image("thumb",
PackageResource.get(Slider.class, "img/horizSlider.png")));
+
}
/**
Index:
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.html
===================================================================
---
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.html
(revision 5159)
+++
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/Slider.html
(working copy)
@@ -1,6 +1,20 @@
<wicket:panel>
-<script wicket:id="initialization" type="text/javascript"></script>
-<div wicket:id="backgroundElement" id="sliderbg">
- <div wicket:id="imageElement" id="sliderthumb"><img src="sliderthumbimg"
/></div>
-</div>
+
+ <script wicket:id="initialization" type="text/javascript"></script>
+
+ <div class="horizWrapper">
+ <div class="horizBGDiv"
+ tabindex="0"
+ x2:role="role:slider"
+ state:valuenow="0"
+ state:valuemin="-100"
+ state:valuemax="100"
+ wicket:id="backgroundElement" id="sliderbg">
+ <div class="horizHandleDiv" wicket:id="imageElement"
id="sliderthumb"
+ onkeypress="return handleHorizSliderKey(this,
YAHOO.util.Event.getEvent(event))">
+ <img src="sliderthumbimg" wicket:id="thumb" />
+ </div>
+ </div>
+ </div>
+
</wicket:panel>
\ No newline at end of file
Index:
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/css/screen.css
===================================================================
---
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/css/screen.css
(revision 5159)
+++
F:/development/svn/wicket-extensions/src/java/wicket/extensions/markup/html/yui/slider/css/screen.css
(working copy)
@@ -258,7 +258,7 @@
}
/* standard horizontal and vertical sliders */
-#horizHandleDiv {
+.horizHandleDiv {
position:absolute;
left: 100px; /* the default position is the center of the bg */
top: 8px; /* force the image down a bit */
@@ -267,9 +267,9 @@
height:18px;
}
-#horizWrapper {position:relative; margin-left:60px;width:218px;float:left;}
-#horizBGDiv {position:relative; top:60px; background:url(../img/horizBg.png)
no-repeat; height:26px; width:218px;zindex:5 }
-#horizValueDiv { position:relative; top: 70px; left:66px; }
+.horizWrapper {position:relative; margin-left:60px;width:218px;float:left;}
+.horizBGDiv {position:relative; top:60px; background:url(../img/horizbg.png)
no-repeat; height:26px; width:218px;z-index:5; }
+.horizValueDiv { position:relative; top: 70px; left:66px; }
#vertWrapper {position:relative; width:90px;float:left}
#vertHandleDiv { cursor:default; width:20px; height:18px; position:absolute; }Index:
F:/development/svn/wicket/src/java/wicket/markup/html/PackageResource.java
===================================================================
--- F:/development/svn/wicket/src/java/wicket/markup/html/PackageResource.java
(revision 5159)
+++ F:/development/svn/wicket/src/java/wicket/markup/html/PackageResource.java
(working copy)
@@ -413,7 +413,7 @@
{
if (recurse)
{
- addResources(scope, pattern, resources,
relativePath.append(file.getName())
+ addResources(scope, pattern, resources,
new StringBuffer(relativePath).append(file.getName())
.append('/'), file,
recurse);
}
}
