I am new to ZK framework and i am using its latest version.I am trying to use tablelayout in zul but its giving error.tried importing zkmax.jar but it did not work for me.can somebody help?
here is the sample code:
<tablelayout columns="2">
<tablechildren>
<panel title="Table 1" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 2" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 3" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
<tablechildren>
<panel title="Table 4" border="normal" maximizable="true"
collapsible="true" width="200px" height="200px">
<panelchildren>Panel Content</panelchildren>
</panel>
</tablechildren>
</tablelayout>
Error:
java.lang.ClassNotFoundException: org.zkoss.zul.impl.api.XulElement
XulElement is normally under zul-x.x.x.jar.
Example :
zul.6.5.3.jar contains org.zkoss.zul.impl.XulElement.
As you can see its on another path.
Same for zk 7.x.x => http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/impl/XulElement.html
Now you have clashing dependencies, where a version of zul is to high for another dependencie.
For further help I need to know what zk jars you all use.
As you can see in this fiddle, there is nothing wrong with your code.
that is true, i checked it later.but i found that suggestion in zk forum and so i tried.I have found the solution. I am actually using free edition and those components are available in PE & EE not in CE. :) For reference http://www.zkoss.org/whyzk/Features .
Thanks Anyway..!!
Related
I have upgraded a TYPO3 project from v6 to v10.
Some content of DCE elements aren't working anymore, this is the code there:
TCA:
<config>
<type>group</type>
<internal_type>db</internal_type>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,jpeg,gif,png</elementBrowserAllowed>
</appearance>
<allowed>sys_file</allowed>
<size>1</size>
<minitems>0</minitems>
<maxitems>1</maxitems>
<show_thumbs>1</show_thumbs>
<dce_load_schema>1</dce_load_schema>
<dce_get_fal_objects>1</dce_get_fal_objects>
</config>
Fluid template:
<f:for each="{field.slide}" as="slide">
<div class="slide">
<div class="img-holder">
<f:image src="uploads/pics/{slide.bild}" alt="{slide.titel}" />
</div>
How can I fix it to make work again, i have even changed the image to FAL but make error too.
Thanks #Julian! I have fixed this issue with change:
<f:image src="uploads/pics/{slide.bild}" alt="{slide.titel}" />
to
<f:image image="{slide.bild.0}" alt="{slide.titel}" />
I'm creating an add-in for VS, how to add icon getting from VS icon pack for the menu command button?
Getting icon from resource code example
<GuidSymbol name="testIcon" value="{00000000-0000-0000-0000-0000}">
<IDSymbol name="testIcon1" value="1" />
</GuidSymbol>
<Bitmap guid="testIcon" href="Resources\Icon.png" usedList="testIcon1"/>
<Button guid="guidAddIconCmdSet" id="cmdidMyCommand" priority="0x0100" type="Button">
<Parent guid="guidAddIconCmdSet" id="MyMenuGroup" />
<Icon guid="testIcon" id="testIcon1" />
<Strings>
<ButtonText>My Command name</ButtonText>
</Strings>
</Button>
Known Monikers - The set of image monikers contained in the Visual Studio Image Catalog and publicly consumable by any Visual Studio component or extension. This one is a good choice, let's try.
Firstly, include this library KnownImageIds.vsct in you .vsct file
Modify the code to add what icon you need around <Icon> tag
Add flag <CommandFlag>IconIsMoniker</CommandFlag>
For example, add VS "open folder" icon to your menu command
<Include href="KnownImageIds.vsct"/>
<Extern href="stdidcmd.h"/>
<Extern href="vsshlids.h"/>
<GuidSymbol name="testIcon" value="{00000000-0000-0000-0000-0000}">
<IDSymbol name="testIcon1" value="1" />
</GuidSymbol>
<Bitmap guid="testIcon" href="Resources\Icon.png" usedList="testIcon1"/>
<Button guid="guidAddIconCmdSet" id="cmdidMyCommand" priority="0x0100" type="Button">
<Parent guid="guidAddIconCmdSet" id="MyMenuGroup" />
<Icon guid="ImageCatalogGuid" id="OpenFolder" /> // icon id
<CommandFlag>IconIsMoniker</CommandFlag> // enable moniker
<Strings>
<ButtonText>My Command name</ButtonText>
</Strings>
</Button>
Browse Monkier icon id from here KnownMoniker id text
For more visualization, just install this VS add-in Moniker Browser
Aargh! My TYPO3 6.2.11 worked fine! Then I was updated all of my FLUIDTYPO3-Extensions and now I'll get an error:
Could not analyse class:FluidTYPO3\Flux\ViewHelpers\Flexform\SheetViewHelper maybe not loaded or no autoloader?
Here's the changelog, but there is no obvious problem for me? FluidTYPO3:
flux 7.1.2 => 7.2.0
fluidcontent_core 1.0.3 => 1.1.0
fluidcontent 4.1.1 => 4.1.2
fluidpages 3.1.2 => 3.2.0
vhs 2.3.0 => 2.3.1
I change my namespaces at all templates and FLUX-FCEs xmlns:f but that won't help. From
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
to
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd">
Nothing.
It's a disaster ... my Website is crashed with that error.
I hope someone can help me ... (Never update later then 10pm ;)
There is no longer a Flexform Namespace in Flux.
Change your ViewHelper to
<flux:form.sheet .... >
...
</flux:form.sheet .... >
This has to be done for all ViewHelpers that use the old <flux:flexform... namespace.
On my 6.2 system with
fluidpages 3.2.3
flux 7.2.1
vhs 2.3.3
it finally worked with:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
I got this out of the extension built with the builder extension - the code given in the documentation did not work. (I only used Fluid pages, no Fluid content)
Some additional example to the above for the whole template:
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers">
<f:layout name="Default" />
<f:section name="Configuration">
<flux:form id="default">
<!-- Input field for Fluid variable 'pageClass' -->
<flux:field.input name="settings.pageClass" default="onecol"/>
<!-- Backend layout grid (TYPO3 6.x and greater only) -->
<flux:grid>
<flux:grid.row>
<flux:grid.column colPos="0" name="Main" style="width: 75%" colspan="4" />
</flux:grid.row>
</flux:grid>
</flux:form>
</f:section>
<f:section name="Body">
<div class="container content">
<div class="col-full">
<!-- Render colPos=0 in this section -->
<v:content.render column="0"/>
</div>
</div>
</f:section>
</div>
I don't wanna know how many hours of developer time these changes in conventions burn every time...
Good luck!
You know when you click new in Eclipse and choose other. From there you can add css file. However, for some reason I can't. I have nowhere to choose css for the file. Please help.
This code works for me in this situation
scene.getStylesheets().add(YourMainClass.class.getResource("YourCSS.css").toExternalForm());
Some downloads of Eclipse don't have the Web Developer Tools included - these are what include the CSS support.
You can install these in 'Install New Software...', 'Work with' the main Eclipse repository and look in the 'Web, XML, Java EE and OSGi Enterprise Development' section.
Alternatively for JavaFX development you should look at the e(fx)clipse build of Eclipse which has many JavaFX tools.
Try this on the fxml document
<?xml version="1.0" encoding="UTF-8"?>
<?import java.net.URL?>
<?import javafx.scene.effect.Reflection?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<StackPane id="StackPane" fx:id="stackpane" prefHeight="200" prefWidth="400" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1" fx:controller="myrectanglefxapp.MyRectangleFxController">
<stylesheets>
<URL value="#MyCSS.css" />
</stylesheets>
<children>
<Rectangle id="myrectangle" fx:id="rectangle" arcHeight="30" arcWidth="30" height="100" onMouseClicked="#handleMouseClick" width="200" />
<Text text="My Rectangle">
<effect>
<Reflection />
</effect>
<font>
<Font name="Verdana Bold" size="18.0" />
</font>
</Text>
</children>
</StackPane>
Import java.net.URL
put stylesheets
URL value="#MyCSS.css"
I am using Jenkins for our Maven/Tycho project and I am using Email-ext plugin to get the build reports in email. I am using a jelly script that I found here.
What I am looking for is to be able to add module build results (failed, successful, etc) instead of the build artifacts. Basically I'd like to include the table in the middle of the maven project build in my email. I looked in many places but all I found is test results or artifacts. But I'd like to get the module build result instead.
The problem was solved by modifying the artifacts table section like this:
<!-- MAVEN ARTIFACTS -->
<j:set var="mbuilds" value="${build.moduleBuilds}" />
<j:if test="${mbuilds!=null}">
<div class="content">
<h1>Module Builds</h1>
<TABLE>
<TR><TD class="bg1"><B>Bundle Name</B></TD>
<TD class="bg1"><B>Build Result</B></TD></TR>
<j:forEach var="m" items="${mbuilds}">
<tr>
<TD>${m.key.displayName}</TD>
<j:if test="${m.value==null or m.value.size()==0 }">
<td>didn't run</td>
</j:if>
<j:forEach var="mvnbld" items="${m.value}">
<td>${mvnbld.result}</td>
<td align="left">
<j:choose>
<j:when test="${mvnbld.result=='SUCCESS'}">
<img src="${rooturl}static/e59dfe28/images/16x16/blue.gif" />
</j:when>
<j:when test="${mvnbld.result=='FAILURE'}">
<img src="${rooturl}static/e59dfe28/images/16x16/red.gif" />
</j:when>
<j:when test="${mvnbld.result=='NOT_BUILT'}">
<img src="${rooturl}static/e59dfe28/images/16x16/grey.gif" />
</j:when>
<j:when test="${mvnbld.result=='UNSTABLE'}">
<img src="${rooturl}static/e59dfe28/images/16x16/yellow.gif" />
</j:when>
<j:otherwise>
<img src="${rooturl}static/e59dfe28/images/16x16/grey.gif" />
</j:otherwise>
</j:choose>
</td>
</j:forEach>
</tr>
</j:forEach>
</TABLE>
<br />
</div>
</j:if>
The main issue is however, the java docs are not good enough for jelly script or groovy implementation. I had to randomly try things because for instance you cannot find getModuleBuilds in the AbstractBuild api.