A difficult problem with php code and sql code
it's good place to visit(Paged Result Sets with PHP and Oracle)
http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_paged.html
maybe below part php code could not be used in above address's php code.
if((isset($l_company) and $l_company != $rows['COMPANY']) or empty($stmt) and empty($total_pages) ) {
echo "<tr bgcolor='#CCFFCC'>";
echo "<td colspan= 3 align='center'>".$l_company."</td>";
echo "<td >".$totalcomany." </td>";
$totalcomany = 0;
echo "<td > </td>";
echo "</tr>";
$l_company = $rows['COMPANY'];
because the same company in one page could calculate sum while if
the same company in two pages could not do that.
and what do you think of ?
thanks !
Hi,
this is because your sql-statement selects only the rows, you need to build this one page.
Neither php nor the given result from your query knows about data wich will be part of the result of another page.
Greetings from Hamburg
Thorsten Körner
Similar Messages
-
Problem with JPA Implementations and SQL BIGINT in primary keys
I have a general Question about the mapping of the SQL datatype BIGINT. I discovered, that there are some different behaviour depending on the JPA implementation. I tested with TopLink Essentials (working) and with Hibernate (not working).
Here is the case:
Table definition:
/*==============================================================*/
/* Table: CmdQueueIn */
/*==============================================================*/
create table MTRACKER.CmdQueueIn
CmdQueueInId bigint not null global autoincrement,
Type int,
Cmd varchar(2048),
CmdState int,
MLUser bigint not null,
ExecutionTime timestamp,
FinishTime timestamp,
ExecutionServer varchar(64),
ScheduleString varchar(64),
RetryCount int,
ResultMessage varchar(256),
RecordState int not null default 1,
CDate timestamp not null default current timestamp,
MDate timestamp not null default current timestamp,
constraint PK_CMDQUEUEIN primary key (CmdQueueInId)
The java class for this table has the following annotation for the primary key field:
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name = "CmdQueueInId", nullable = false)
private BigInteger cmdQueueInId;
When using hibernate 3.2.1 as JPA provider I get the following exception:
avax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short or string
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:176)
at $Proxy16.persist(Unknown Source)
at com.trixpert.dao.CmdQueueInDAO.save(CmdQueueInDAO.java:46)
at com.trixpert.test.dao.CmdQueueInDAOTest.testCreateNewCmd(CmdQueueInDAOTest.java:50)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at
Caused by: org.hibernate.id.IdentifierGenerationException: this id generator generates long, integer, short or string
at org.hibernate.id.IdentifierGeneratorFactory.get(IdentifierGeneratorFactory.java:59)
at org.hibernate.id.IdentifierGeneratorFactory.getGeneratedIdentity(IdentifierGeneratorFactory.java:35)
at org.hibernate.id.IdentityGenerator$BasicDelegate.getResult(IdentityGenerator.java:157)
at org.hibernate.id.insert.AbstractSelectingDelegate.performInsert(AbstractSelectingDelegate.java:57)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2108)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2588)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:212)
... 34 more
This means, that their ID generator does not support java.math.BigInteger as datatype.
But the code works if I take TopLink essentials as JPA Provider.
Looking at the spec shows the following:
In chapter 2.1.4 "If generated primary keys are used, only integral types will be portable." Integral datatypes are byte, short, int, long and char. This would mean, that the Hibernate implementation fits the spec but there seem to be a problem in general with BIGINT datatypes.
I use a SYBASE database. There it is possible to declare a UNSIGNED BIGINT. The range of numbers is therefore 0 - 2^64 - 1. Since in Java a long is always signed it would mean its range is from -2^63 -1 to 2^63 -1. So a mapping of BIGINT to java.lang.long could result in an overflow.
The interesting thing is, that I used NetBeans to reverse engineer an existing database schema. It generated for all Primary Keys of Type BIGINT automatically a java.math.BigInteger. But for other fields (not being keys) it mapped BIGINTs to java.lang.long.
It looks like there are some problems with either the spec itself or the implementation of it. While TopLink seems to handle the problem correctly, Hibernate doesn't. But Hibernate seems to fulfill the spec.
Is anybody familiar with the Spec reading this and can elaborate a little about this situation?
Many thanks for your input and feedback.
TomNot sure if I clearly understand your issue, would be good if you can explain it a bit more clearly.
"I select a value from LOV and this value don't refresh in the view"
If you mean ViewObject, check if autoSubmit property is set to true.
Amit -
Problem with business place and section code in miro screen
hi experts,
i have done the following config. for validate the b/place and section code at the time of invoice and payment.
in prerequisite-com.code=l001 and (posting key=31 or posting key=29 or posting key=21
in check-business place=1001 and section code=1001
by this config. in t code fv60 and f-48 b/place and section code showing mandatory but in miro screen w/o b/place and section code system alowing to save the entry.
please suggest me where i am wrong and what to do next?
thanks and regards
konishkohi
i have written the condition as follows
in prerequisite:bseg-bukrs=l001 and (bseg-bschl=31 or bseg-bschl=29 or bseg-bschl=21)
in check:bseg-bupla=1001 and bseg-secco=1001
by doing this in fv60 and f-48 screen is not allowing to post w/o b/place and section code but in miro screen system allow me to post w/o b/place . if i validate the miro screen then after giving the b/place it is not allowing me to post the same and giving the error message which i have created.
how to solve this problem?
please suggest me and please give me the steps.
regards
konishko -
Problem with Cold Fusion and SQL Express
I can connect to this database with EMS but have this error
when I try to connect through ColdFusion. Any ideas?
Connection verification failed for data source: SEAN
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver][Macromedia][SQLServer JDBC Driver]The requested instance is
either invalid or not running.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC
Driver]The requested instance is either invalid or not running.
Best Wishes,
DaveThanks CJ and TSB,
I did find that the TCP/IP was disabled but still have an
error when I try to connect.
Connection verification failed for data source: K
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver][Macromedia][SQLServer JDBC Driver]The requested instance is
either invalid or not running.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC
Driver]The requested instance is either invalid or not running.
Any other ideas?
Thanks,
Dave -
Help with search within pl/sql code
Hi All,
Can you please help me to find all the objects with a database link.
I have some procedures,function and packages which uses database link. I need to fetch all the objects that uses a database link. Is there any way to get the list of object names using any database link?
Thanks in advance
Apppreciate your help!
Thanks
Bobhi there,
the problem with dba_source is that the code might be wrapped.
another possibility is to query dba_dependencies, column referenced_link
Also you can have pl/sql routines that create dynamically code and might use dblinks in their dynamic code.
So you might not be able to be 100 percent complete.
HTH Mathias -
Using the Auth pear package with php 4 and oracle
Hi all.
I was wondering if anybody out there has had any success (or else) using the Auth Pear package with php 4 and Oracle.
I'm trying to do just that but can't get it to work.
I've found lots of examples on the web for mysql but none for oracle...
Feedback on your experiences with this would be most appreciated.
Thanks in advance.
RobHi cj.
Thanks for your advice. I came across those documents but discarded them as they didn't deal with the Auth pear package I was intending on using. I didn't want to look at other alternatives as the focus of my project was primarily on migrating existing data from a mysql setup to an oracle setup. And quickly.
I hadn't found any documentation out there on using Auth with Oracle. All examples available on the web were mysql specific.
I eventually got round to gutting the code from the package and finding the fix to my problem.
Just for info, Auth expects by default an auth table containing two fields username and password. That's lowercase table and field names.
If the table name or field names to be used differ from these then they must be explicitly defined when calling Auth. Doing so resolved my problem.
My mysql db had all lowercase naming, while my oracle db has all uppercase naming throughout.
It is important to note that the Auth package uses the table and field names quoted, thus referring to the table and fields in a case sensitive way.
So for an uppercase table and fields setup the call has to be :
$options = array(
'dsn' => "$dsn_for_my_oracledb",
'table' => 'AUTH',
'usernamecol' => 'USERNAME',
'passwordcol' => 'PASSWORD',
'db_fields' => '*',
$a = new Auth("DB", $options , "loginFunction");I hope this helps anybody trying to use this package with oracle. It worked great for me.
Pear Auth package documentation:
http://www.pear.php.net/manual/en/package.authentication.auth.intro.php
Regards,
Robert -
Problems with ListViews Drag and Drop
I'm surprised that there isn't an Active X control that can do this more
easily? Would
be curious to find out if there is - although we aren't really embracing the
use of
them within Forte because it locks you into the Microsoft arena.
---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 02/03/98 01:33
PM ---------------------------
"Stokesbary, Michael" <[email protected]> on 02/03/98 12:19:52 PM
Please respond to "Stokesbary, Michael" <[email protected]>
To: "'[email protected]'" <[email protected]>
cc:
Subject: Problems with ListViews Drag and Drop
I am just curious as to other people's experiences with the ListView
widget when elements in it are set to be draggable. In particular, I am
currently trying to design an interface that looks a lot like Windows
Explorer where a TreeView resides on the left side of the window and a
ListView resides on the right side. Upon double clicking on the
ListView, if the current node that was clicked on was a folder, then the
TreeView expands this folder and the contents are then displayed in the
ListView, otherwise, it was a file and it is brought up in Microsoft
Word. All this works great if I don't have the elements in the ListView
widget set to be draggable. If they are set to be draggable, then I am
finding that the DoubleClick event seems to get registered twice along
with the ObjectDrop event. This is not good because if I double click
and the current node is a folder, then it will expand this folder in the
TreeView, display the contents in the ListView, grab the node that is
now displayed where that node used to be displayed and run the events
for that as well. What this means, is that if this is a file, then Word
is just launched and no big deal. Unfortunately, if this happens to be
another directory, then the previous directory is dropped into this
current directory and a recursive copy gets performed, giving me one
heck of a deep directory tree for that folder.
Has anybody else seen this, or am I the only lucky one to experience.
If need be, I do have this exported in a .pex file if anybody needs to
look at it more closely.
Thanks in advance.
Michael Stokesbary
Software Engineer
GTE Government Systems Corporation
tel: (650) 966-2975
e-mail: [email protected]here is the required code....
private static class TreeDragGestureListener implements DragGestureListener {
public void dragGestureRecognized(DragGestureEvent dragGestureEvent) {
// Can only drag leafs
JTree tree = (JTree) dragGestureEvent.getComponent();
TreePath path = tree.getSelectionPath();
if (path == null) {
// Nothing selected, nothing to drag
System.out.println("Nothing selected - beep");
tree.getToolkit().beep();
} else {
DefaultMutableTreeNode selection = (DefaultMutableTreeNode) path
.getLastPathComponent();
if (selection.isLeaf()) {
TransferableTreeNode node = new TransferableTreeNode(
selection);
dragGestureEvent.startDrag(DragSource.DefaultCopyDrop,
node, new MyDragSourceListener());
} else {
System.out.println("Not a leaf - beep");
tree.getToolkit().beep();
} -
Problems with Mail, Safari and iTunes after updating to 10.5.6
Hi all,
after installing 10.5.6 I have problems with Mail, Safari and iTunes.
The time to open mails, websides and iTunes store is increasing dramatically since the update. If I open a webside parallel with Safari and Firefox, Safari needs minimum 15 times longer to open the complete side. Mails containing HTML-code also needs a long time to be opened. Tha same Problem with iTunes store. Connecting to the Store costs at least 30 - 40 seconds. And unfortunately for every iTunes store side I open. Its terrible
Any idea or workaroung to solve that problem?
Regards
MichaelFirst, run Disk Utility and repair permissions and then restart.
I installed the 10.5.6 Combo update. Sometimes things get "lost in the translation" when you use Software Update depending on your installation. Perhaps you can download 10.5.6 Combo from the website and install it from your desktop. -
Problems with captivate 8 and windows 8
I´m using captivate 8 and windows 8, and I am having problems with the visualization and publication of my projects. For visualization, there is a message of an error with syntax of the files ou directory, and nothing happens. For publication, I can´t see the project published in the browser. It opens only a text file, with the codes. Is there anyone thar can help me with that?
Acrobat 8 is not certified for Win7, particularly the x64 version. If you got the installation to go, the first step is to update AA8 to at least AA8.2. The x64 with XP required at least AA8.2 and I suspect that has not changed. I would suggest updating to the latest, either from the help menu (until no more updates are available) or by downloading the updates from the adobe.com>downloads page. For the latter, download ALL updates after your current version and install them in ORDER. They are not cummulative in most cases. You only need to reboot after the final update. The updates may get you going. If not, you may simply have to upgrade to AA9 or search for what others have been able to do in your situation.
-
Region.addObserver Problem with PHP Files
Hi,
I try to load a Dynamic XML via PHP Files.
everything works fine. but when i use a Region.addObserver
the callback function dont trigger.
It only happen with php Files.
My code is
quote:
<script language="JavaScript" type="text/javascript"
src="{{server}}/includes/xpath.js"></script>
<script language="JavaScript" type="text/javascript"
src="{{server}}/includes/SpryData.js"></script>
<script language="JavaScript" type="text/javascript">
var lastSharing = new
Spry.Data.XMLDataSet("{{server}}/lastSharing.xml", "lastSharing");
var categories = new
Spry.Data.XMLDataSet("{{server}}/getCategories.php?user={{user}}",
"categories/category");
var tags = new
Spry.Data.XMLDataSet("{{server}}/getTags.php?user={{user}}",
"tags/tag");
var posts = new
Spry.Data.XMLDataSet("{{server}}/getLastUserPosts.php?user={{user}}",
"data/fav");
function onComplete(notificationType, notifier, data)
if (notificationType == "onPostUpdate")
div = document.getElementById(data['regionID'])
div.style.visibility = "visible";
Spry.Data.Region.addObserver("usertags", onComplete);
Spry.Data.Region.addObserver("links", onComplete);
Spry.Data.Region.addObserver("links2", onComplete);
Spry.Data.Region.addObserver("posts", onComplete);
</script>
{{server}} and {{user}) obvious are fake. here the callback
function is trigger when the file
var lastSharing = new
Spry.Data.XMLDataSet("{{server}}/lastSharing.xml", "lastSharing");
is loaded but nothing happens with the other, the 4 DIVS
exist.
in the php file i use something like that:
quote:
private function doXml($data)
header('Content-Type: text/xml');
echo "<categories>\n";
foreach($data as $catego)
echo
"<category><![CDATA[".$catego['nombre']."]]></category>\n";
echo "</categories>\n";
Any idea??
thanks.That is really strange that it works when things are flat XML
files and not in the case where it's PHP, the code paths are the
same, and the Spry code is unaware of the source of the XML.
Perhaps you can enable region debugging and see what's going
on. Add this above all your data sets:
Spry.Data.Region.debug = true;
Do you see any messages like:
"Generated region markup for usertags ..."
"Generated region markup for links ..."
If not, then something is choking Spry before the
notification is fired.
--== Kin ==-- -
Q since upgrade to iOS6 l have been having problem with wifi connection and getting into App Store and itunes
Saw this on another post.
Applecare Senior Advisor Txx Bxxx (I have his contact info in an email he just sent) just confirmed with me that the problem people are having with the App Store not loading is an apple issue with there servers, ITS NOT YOUR IPAD so don't go restoring it! It's not happening to everyone however but they are looking into it, its really hit or miss.
In the meantime ...........
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
~~~~~~~~~~~~~~~~
iOS 6 Wifi Problems/Fixes
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting
http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet
http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
Problems with games server and client
Hi! I am making an MMORPG game and I have problems with the server and client connection.
I can connect to the server, but when a second player does, the server console tells me this:
java.net.SocketException: Connection reset
After that, all clients disconnect.
Which is the problem?
How can I solve it?
Thank you so muchHere is how my sever work. I took some of this code from a book called Killer Programming Games in Java. If you google for it, you will find it for sure.
TourGroup tg = new TourGroup(); // this object stores information about all clients connected to the server
try {
ServerSocket serverSock = new ServerSocket(PORT);
Socket clientSock;
while (true) {
System.out.println("Waiting for a client...");
clientSock = serverSock.accept();
new TourServerHandler(clientSock, tg).start(); // this is the thread that monitors each client
catch(Exception e)
{ System.out.println(e); }
} This is some code of TourServerHandler
public TourServerHandler(Socket s, TourGroup tg)
this.tg = tg;
clientSock = s;
name= "?";
cliAddr = clientSock.getInetAddress().getHostAddress();
port = clientSock.getPort();
System.out.println("Client connection from (" +
cliAddr + ", " + port + ")");
public void run()
// process messages from the client
try {
// Get I/O streams from the socket
BufferedReader in = new BufferedReader(
new InputStreamReader( clientSock.getInputStream() ) );
PrintWriter out =
new PrintWriter( clientSock.getOutputStream(), true );
// and here goes the rest... The TourServerHandler thread uses this code to send messages:
tg.broadcast(msg); tg.broadcast works like this:
synchronized public void broadcast(String cliAddr, int port, String msg)
// broadcast to everyone but original msg sender
TouristInfo c; // this object stores info about the client
for(int i=0; i < tourPeople.size(); i++) {
c = (TouristInfo) tourPeople.get(i);
c.sendMessage(msg);
} This is the error part
public void sendMessage(String msg)
PrintWriter out;
out.println(msg);
System.out.println("OK");
} I can't find any error but I still get that Connection reset exception... -
Browser compatibility problem with t:selectOneMenu and JavaScript calendar
I'm having problem with <t:selectOneMenu> and JavaScript calendar on IE. It works fine on Firefox but doesn't work on IE.
The JSF code is as follows:
<tr>
<td align="right">
Archive Date
</td>
<td align="left" colspan="3">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<span class="tuny_text">After (Ex. Oct 18, 2007)</span>
<h:outputLabel for="txtArchiveDateAfter" value="Archive Date After" rendered="false"/>
<br/>
<t:inputText required="false" value="#{nonItemImageSearchPage.stringArchiveDateAfter}" name="txtArchiveDateAfter" id="txtArchiveDateAfter" forceId="true" styleClass="inp" style="width: 128px">
</t:inputText>
<t:graphicImage value="/images/calendar.png" id="dtpArchiveDateAfter" name="dtpArchiveDateAfter" forceId="true" style="border: 2px solid #EEE; cursor: pointer"></t:graphicImage>
<br/>
<t:message for="txtArchiveDateAfter" styleClass="form_error" replaceIdWithLabel="true"></t:message>
</td>
<td>
<span class="tuny_text">Before (Ex. Oct 18, 2007)</span>
<h:outputLabel for="txtArchiveDateBefore" value="Archive Date Before" rendered="false"/>
<br/>
<t:inputText value="#{nonItemImageSearchPage.stringArchiveDateBefore}" name="txtArchiveDateBefore" id="txtArchiveDateBefore" forceId="true" style="width:128px" styleClass="inp">
</t:inputText>
<t:graphicImage value="/images/calendar.png" id="dtpArchiveDateBefore" name="dtpArchiveDateBefore" forceId="true" style="border: 2px solid #EEE; cursor: pointer"></t:graphicImage>
<br/>
<t:message for="txtArchiveDateBefore" styleClass="form_error" replaceIdWithLabel="true"></t:message>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" >
<h:outputLabel for="drpBackground" value="Background"/>
</td>
<td align="left" class="right_separator">
<t:selectOneMenu id="drpBackground" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.backgroundId}" styleClass="inp" style="width: 150px">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.backgroundPrefsList}"
var="backgroundPrefs" itemValue="#{backgroundPrefs.id}" itemLabel="#{backgroundPrefs.description}" />
</t:selectOneMenu>
</td>
<td align="right" class="left_separator">
<h:outputLabel for="drpTheme" value="Theme"/>
</td>
<td align="left" >
<t:selectOneMenu id="drpTheme" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.themeId}" styleClass="inp WCHhider" style="width:150px;">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.themePrefsList}"
var="themePrefs" itemValue="#{themePrefs.id}" itemLabel="#{themePrefs.description}" />
</t:selectOneMenu>
</td>
</tr>
<tr>
<td align="right" >
<h:outputLabel for="drpSeason" value="Season"/>
</td>
<td align="left" class="right_separator">
<t:selectOneMenu id="drpSeason" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.seasonId}" styleClass="inp" style="width:150px">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.seasonPrefsList}"
var="seasonPrefs" itemValue="#{seasonPrefs.id}" itemLabel="#{seasonPrefs.description}" />
</t:selectOneMenu>
</td>
<td align="right" class="left_separator">
<h:outputLabel for="drpClothing" value="Clothing"/>
</td>
<td align="left" >
<t:selectOneMenu id="drpClothing" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.clothingId}" styleClass="inp" style="width:150px">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.clothingPrefsList}"
var="clothingPrefs" itemValue="#{clothingPrefs.id}" itemLabel="#{clothingPrefs.description}" />
</t:selectOneMenu>
</td>
</tr>
<tr>
<td align="right" >
<h:outputLabel for="drpToy" value="Toy"/>
</td>
<td align="left" class="right_separator">
<t:selectOneMenu id="drpToy" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.toyId}" styleClass="inp" style="width:150px">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.toyPrefsList}"
var="toyPrefs" itemValue="#{toyPrefs.id}" itemLabel="#{toyPrefs.description}" />
</t:selectOneMenu>
</td>
<td align="right" class="left_separator">
<h:outputLabel for="drpJuvenile" value="Juvenile"/>
</td>
<td align="left" >
<t:selectOneMenu id="drpJuvenile" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.juvenileId}" styleClass="inp" style="width:150px">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.juvenilePrefsList}"
var="juvenilePrefs" itemValue="#{juvenilePrefs.id}" itemLabel="#{juvenilePrefs.description}" />
</t:selectOneMenu>
</td>
</tr>
<tr>
<td align="right">
<h:outputLabel for="drpGroup" value="Grouping"/>
</td>
<td align="left" class="right_separator">
<t:selectOneMenu id="drpGroup" forceId="true" value="#{nonItemImageSearchPage.nonItemImageSearchModel.modelGroupingId}" styleClass="inp" style="width:150px;">
<f:selectItem itemLabel="--------" itemValue="-1"/>
<s:selectItems value="#{nonItemImageSearchPage.groupPrefsList}"
var="groupPrefs" itemValue="#{groupPrefs.id}" itemLabel="#{groupPrefs.description}" />
</t:selectOneMenu>
</td>
<td class="left_separator"> </td>
<td> </td>
</tr>
The JavaScript code is as follows:
<script type="text/javascript" language="javascript">
var dtpArchiveDateBefore = new MooCal("txtArchiveDateBefore");
var dtpArchiveDateAfter = new MooCal("txtArchiveDateAfter");
window.addEvent("domready", function(){
$("dtpArchiveDateBefore").addEvent("click", function(e){
var event = new Event(e).stop();
var x = (event.client.x)-150;
var y = event.client.y;
dtpArchiveDateBefore.show(x,y); // Display the calendar at the position of the mouse cursor
dtpArchiveDateBefore.minYear = 1800;
dtpArchiveDateBefore.maxYear = 2017;
/*$("txtArchiveDateBefore").addEvent("click", function(e){
e.target.blur();
var event = new Event(e).stop();
var x = (event.client.x)-150;
var y = event.client.y;
dtpArchiveDateBefore.show(x,y); // Display the calendar at the position of the mouse cursor
dtpArchiveDateBefore.minYear = 1800;
dtpArchiveDateBefore.maxYear = 2017;
$("dtpArchiveDateAfter").addEvent("click", function(e){
var event = new Event(e).stop();
var x = (event.client.x)-150;
var y = event.client.y;
dtpArchiveDateAfter.show(x,y); // Display the calendar at the position of the mouse cursor
dtpArchiveDateAfter.minYear = 1800;
dtpArchiveDateAfter.maxYear = 2017;
/* $("txtArchiveDateAfter").addEvent("click", function(e){
e.target.blur();
var event = new Event(e).stop();
var x = (event.client.x)-150;
var y = event.client.y;
dtpArchiveDateAfter.show(x,y); // Display the calendar at the position of the mouse cursor
dtpArchiveDateAfter.minYear = 1800;
dtpArchiveDateAfter.maxYear = 2017;
</script>When the calendar is above t:selectOneMenu, it doesn't show up on t:selectOneMenu area. Could anyone help me solve the issue?
Thanks
RashedThere are dozens of CSS attributes that can (and have to) be handwritten. Trouble with them is that, like text shadows, they don't appear in all browsers. I have nine different browsers installed and test pages in ALL of them before I "finish" building site or page for a template.
I try to build for Firefox, out of personal preference for it, but I have to do things that work with IE because it still holds the market share (46%IE to 42%FF), and I will only go with designs that work in IE, FF, NS, Opera, Safari, and Chrome.
As to your questions.
1. The compatibility check is most likely current with the time of the build. I don't know if that component updates as browsers do, but I'd tend to think it doesn't. I'm using CS4 and there haven't been any updates for it in nearly a year. Firefox has released 4.0, Opera released 11, and Safari released 5 since then. The updater would have found and downloaded something if it was available.
2. I could only guess. Text shadows DON'T show up in design view (or in IE) but they do in browser preview. It's just a UI quirk, and it means "trial and error" is the onyl way to get what you want.
3. The quick-selects which are in DW dropdowns or popouts are the ones most common to CSS designs and have been proven to work with all browsers at the time of release of your particular build of DW.
Hope that helps.. -
Flash Player 10, strange problem with emdedded fonts and movieclips
Hello, developers! I have a big problem with font embedding
and I can not debug it myself. So I need you help.
I' ve done a simple list of attached movieclips with
textfields inside them, with embedded fonts. I have no problem with
flash player 9 in order to see the list, but in flash player 10 I
can't see it. The font is very common, Arial actually so you can
test it very easily. I am using a font symbol in the library, a
class and an xml file for my data.
Also you can see it online in (if you have flash player 10
you can't see a thing)
http://www.forestonfire.com//research/flash/fontproblem/index.html
I have compiled the file as an exe projector in order to see
it as I do in flash player 9
http://www.forestonfire.com//research/flash/fontproblem/fontinflash9.zip
I have zipped also the source code in order to compile it
yourself.
http://www.forestonfire.com/research/flash/fontproblem/fontembedded.zip
and the same example without embedded fonts (I have the same
problem there so perchaps are not the fonts)
http://www.forestonfire.com/research/flash/fontproblem/fontnotembed.zip
Please, check it and tell me if there is a solution
available. Thank you in advance.I've included also a much more simple example without the xml
and the font symbol, only the class and a movieclip from the
library, but I can't still see it on flash player 10
http://www.forestonfire.com/research/flash/fontproblem/simplyfied.zip
I have no clue about this problem. -
Revision: 4836
Author: [email protected]
Date: 2009-02-04 11:07:52 -0800 (Wed, 04 Feb 2009)
Log Message:
Fix problems with asdoc comments and conditionally compiled definitions. Fixes bug http://bugs.adobe.com/jira/browse/ASC-3649
Ticket Links:
http://bugs.adobe.com/jira/browse/ASC-3649
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/Compiler.java
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/semantics/ConfigurationEvaluator.javaIn the default php.ini is set open_basedir which limits work with php only to few directories (and directories bellow them). There is set /srv/http, /home,/tmp and /usr/share/pear by default.
To allow your vhost you should add /data/www or set empty value.
Maybe you are looking for
-
I have several surveys/questionnaires in Adobe FormsCentral and when I log in -- it won't open. It just gives me an explanation mark in a circle. Help! Mary
-
Unsupported Data Type (migration from Access 2000)
Hi, I'm trying to convert an MS Access 2000 database, which contains a table with 2 'Binary' data type columns. The OMWB does not seem to know this Data Type, and the GUI does not allow me to add it. Is there any other way to add this Data Type ?? I
-
How to use earphones microphone (iMac late 2006)?
Hey, On the late 2006 iMac, there are two jacks, One microphone and one speaker/earphones.. How can I use my Klipsch S4i's microphone with my iMac? As I can't use both the jacks at the same time, which is what I need :/ Is there something I could buy
-
Issue after downloading excel file: SYLK format
Hi experts, I have downloaded an excel file through 'GUI_DOWNLOAD'. When I open the file, I get a pop up message which says: "Excel has detected that mg.xls is a SYLK file, but cannot load it. Either the file has error, or it is not a SYLK file forma
-
Security code for nokia arte 8800
whats the standard nokia arte 8800 security code im on orange but the phone was orginally on o2 ive tried 12345, 1234, 0000, 00000, ?